diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2007-02-06 23:01:42 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2007-02-06 23:01:42 +0000 |
| commit | b5a4f7b65579a789743e5c039c7286cc9d8e24a1 (patch) | |
| tree | b075bcd73b319d0055ac1f82ee28eb8f73663942 /in_sfnt.c | |
| parent | 6c294ec3bd944320be32cfd1d93397c2f64350e8 (diff) | |
| download | halibut-b5a4f7b65579a789743e5c039c7286cc9d8e24a1.zip halibut-b5a4f7b65579a789743e5c039c7286cc9d8e24a1.tar.gz halibut-b5a4f7b65579a789743e5c039c7286cc9d8e24a1.tar.bz2 halibut-b5a4f7b65579a789743e5c039c7286cc9d8e24a1.tar.xz | |
Make ps_token() more generally available and use it to improve the formatting
of Type 42 fonts.
[originally from svn r7245]
Diffstat (limited to 'in_sfnt.c')
| -rw-r--r-- | in_sfnt.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -656,6 +656,7 @@ void sfnt_writeps(font_info const *fi, FILE *ofp) { size_t *breaks, glyfoff, glyflen; void *glyfptr, *glyfend, *locaptr, *locaend; unsigned *loca; + int cc = 0; /* XXX Unclear that this is the correct format. */ fprintf(ofp, "%%!PS-TrueTypeFont-%u-%u\n", sf->osd.scaler_type, @@ -686,8 +687,8 @@ void sfnt_writeps(font_info const *fi, FILE *ofp) { fprintf(ofp, "0 1 %u{currentfile token pop exch def}bind for\n", sf->nglyphs - 1); for (i = 0; i < sf->nglyphs; i++) - fprintf(ofp, "/%s\n", glyph_extern(sfnt_indextoglyph(sf, i))); - fprintf(ofp, "end readonly def\n"); + ps_token(ofp, &cc, "/%s", glyph_extern(sfnt_indextoglyph(sf, i))); + fprintf(ofp, "\nend readonly def\n"); fprintf(ofp, "/sfnts [<"); breaks = snewn(sf->osd.numTables + sf->nglyphs, size_t); for (i = 0; i < sf->osd.numTables; i++) { |