[cairo] Strange problem with PDF generation
Eugeniy Meshcheryakov
eugen at debian.org
Wed Jan 31 08:25:05 PST 2007
31 січня 2007 о 16:50 +0100 Franz Schmid написав(-ла):
> Umberto Allievi wrote
> >Here is pdffonts output:
> >
> >[umbi at keops src]$ pdffonts test.pdf
> >name type emb sub uni object ID
> >------------------------------------ ------------ --- --- --- ---------
> >ArialBold TrueType yes no no 7 0
> >[umbi at keops src]$
> >
> >
> >Attached the original pdf file: test.pdf
> Found 2 things that are not correct in the attached pdf:
>
> 1) there is a typo in the main font descriptor:
> /FontName /7ArialBold
> should be for sure:
> /FontName /ArialBold
>
After changing this, document still cannot be printed.
> 2) in the font descripor (object 7 in this pdf) you need to add
> an encoding entry to make printing working correctly. This
> encoding entry maps glyph numbers to postscript glyph names.
>
According to PDF reference, this field is optional. Also form the
reference:
• A font that is used to display glyphs that do not use MacRomanEncoding or
WinAnsiEncoding should not specify an Encoding entry. The font descriptor’s
Symbolic flag (see Table 5.20) should be set, and its font program’s “cmap” table
should contain a (1, 0) subtable. It may also contain a (3, 0) subtable; if present,
this subtable should map from character codes in the range 0xF000 to 0xF0FF
by prepending the single-byte codes in the (1, 0) subtable with 0xF0 and map-
ping to the corresponding glyph descriptions.
--
Eugeniy Meshcheryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070131/fb3f7fd7/attachment.pgp
More information about the cairo
mailing list