Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 252929 Details for
Bug 173570
media-gfx/mscgen (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Rounded BBOX coordinates and whitebox behind text in EPS output
ps_out.c-white-box-and-rounded-bbox.patch (text/plain), 2.23 KB, created by
Walter
on 2010-11-02 18:32:26 UTC
(
hide
)
Description:
Rounded BBOX coordinates and whitebox behind text in EPS output
Filename:
MIME Type:
Creator:
Walter
Created:
2010-11-02 18:32:26 UTC
Size:
2.23 KB
patch
obsolete
>*** ps_out_orig.c Tue Nov 2 10:34:58 2010 >--- ps_out.c Tue Nov 2 11:08:36 2010 >*************** >*** 226,231 **** >--- 226,256 ---- > const char *string) > { > fprintf(getPsFile(ctx), >+ "%% white box behind '"); >+ writeEscaped(ctx, string); >+ fprintf(getPsFile(ctx), >+ "'\n" >+ "gsave\n" >+ "("); >+ writeEscaped(ctx, string); >+ fprintf(getPsFile(ctx), >+ ") stringwidth pop dup\n" >+ "newpath\n" >+ "1 setgray\n" >+ "%d %d 2 sub moveto\n" >+ "0 fontheight rlineto\n" >+ "0 rlineto\n" >+ "0 fontheight neg 1 add rlineto\n" >+ "neg 0 rlineto\n" >+ "fill\n" >+ "closepath\n" >+ "grestore\n", >+ x, -y - getSpace(ctx, PsHelvetica.descender)); >+ fprintf(getPsFile(ctx), >+ "%% string '"); >+ writeEscaped(ctx, string); >+ fprintf(getPsFile(ctx), "'\n"); >+ fprintf(getPsFile(ctx), > "%d %d moveto (", > x, -y - getSpace(ctx, PsHelvetica.descender)); > writeEscaped(ctx, string); >*************** >*** 393,401 **** > default: > assert(0); > } >! > fprintf(context->of, "/Helvetica findfont\n"); >! fprintf(context->of, "%d scalefont\n", getPsCtx(ctx)->fontPoints); > fprintf(context->of, "setfont\n"); > } > >--- 418,426 ---- > default: > assert(0); > } >! fprintf(context->of, "/fontheight %d def\n", getPsCtx(ctx)->fontPoints); > fprintf(context->of, "/Helvetica findfont\n"); >! fprintf(context->of, "fontheight scalefont\n"); > fprintf(context->of, "setfont\n"); > } > >*************** >*** 441,447 **** > > /* Write the header */ > fprintf(context->of, "%%!PS-Adobe-3.0 EPSF-2.0\n" >! "%%%%BoundingBox: 0 0 %f %f\n", w * PS_OUT_SCALE, h * PS_OUT_SCALE); > fprintf(context->of, "%%%%Creator: mscgen %s\n", PACKAGE_VERSION); > fprintf(context->of, "%%%%EndComments\n"); > >--- 466,472 ---- > > /* Write the header */ > fprintf(context->of, "%%!PS-Adobe-3.0 EPSF-2.0\n" >! "%%%%BoundingBox: 0 0 %d %d\n", w * PS_OUT_SCALE, h * PS_OUT_SCALE); > fprintf(context->of, "%%%%Creator: mscgen %s\n", PACKAGE_VERSION); > fprintf(context->of, "%%%%EndComments\n"); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 173570
:
115580
|
126374
|
140820
|
142644
|
142646
|
143137
|
144499
|
151362
|
175022
|
210704
|
246578
| 252929