freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] PDF text rendering error


From: suzuki toshiya
Subject: Re: [ft-devel] PDF text rendering error
Date: Mon, 11 Jun 2012 18:19:12 +0900
User-agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080406)

It seems that some truncation occurs when the fonts are embedded.
In the case of FA families, all family names are truncated as
"XXXXXX+FA". It is not only FA family, but also found for MS Gothic too.
The string after the first ASCII space (0x20) is removed.
Yet I'm not sure if it is related with the production softwares;
Acrobat Elements, or DocuWorks Desk.

It seems that non-family-names (e.g. full name, PostScript name etc)
are not truncated. Should I add an extra check to compare these
non-familyname strings with the blacklist of tricky fonts?

Regards,
mpsuzuki


There is 1 face in this file.

----- Face number: 0 -----

font name entries
   family:     BKLJKG+FA
   style:      Regular
   postscript: BKLJKG+FA-Gothic

font type entries
   FreeType driver: truetype
   sfnt wrapped:    yes
   type:            scalable
   direction:       horizontal
   fixed width:     no
   glyph names:     no
   EM size:         1000
   global BBox:     (0,-120):(999,879)
   ascent:          879
   descent:         -120
   text height:     999
   glyph count: 9290

font string entries
   unique ID       [Macintosh]:
      "BKLJKG+FA-Gothic"
   full name       [Macintosh]:
      "BKLJKG+FA-Gothic"
   PostScript name [Macintosh]:
      "BKLJKG+FA-Gothic"
   font family     [Microsoft]:
      "BKLJKG+FA"
   font subfamily  [Microsoft]:
      "Regular"
   unique ID       [Microsoft]:
      "BKLJKG+FA-Gothic"
   full name       [Microsoft]:
      "BKLJKG+FA-Gothic"
   PostScript name [Microsoft]:
      "BKLJKG+FA-Gothic"
   copyright       [Microsoft] (language=0x0411):
      "Copyright (C) 1995-1998 NEC Office Systems,Ltd."
   trademark       [Microsoft] (language=0x0411):
      "\U+FF26\U+FF21 \U+30B4\U+30B7\U+30C3\U+30AF and FA-Gothic are trademarks 
of NEC Office Systems,Ltd."

------------------------------------------------------------------------------------------------




There is 1 face in this file.

----- Face number: 0 -----

font name entries
   family:     BKLICI+MS
   style:      Regular
   postscript: BKLICI+MS-Gothic

font type entries
   FreeType driver: truetype
   sfnt wrapped:    yes
   type:            scalable
   direction:       horizontal
   fixed width:     no
   glyph names:     no
   EM size:         256
   global BBox:     (-31,-35):(255,220)
   ascent:          220
   descent:         -36
   text height:     256
   glyph count: 22213

font string entries
   unique ID       [Macintosh]:
      "BKLICI+MS-Gothic"
   full name       [Macintosh]:
      "BKLICI+MS-Gothic"
   PostScript name [Macintosh]:
      "BKLICI+MS-Gothic"
   font family     [Microsoft]:
      "BKLICI+MS"
   font subfamily  [Microsoft]:
      "Regular"
   unique ID       [Microsoft]:
      "BKLICI+MS-Gothic"
   full name       [Microsoft]:
      "BKLICI+MS-Gothic"
   PostScript name [Microsoft]:
      "BKLICI+MS-Gothic"
   copyright       [Microsoft]:
      "(C)2006 data:RICOH Co.,Ltd. typeface:RYOBI IMAGIX CO."
   trademark       [Microsoft]:
      "MS Gothic is a registered trademark of the Microsoft Corporation."
   copyright       [Microsoft] (language=0x0411):
      "(C)2006 data:\U+682A\U+5F0F\U+4F1A\U+793E\U+30EA\U+30B3\U+30FC 
typeface:\U+30EA\U+30E7\U+30FC\U+30D3\U+30A4\U+30DE\U+30B8\U+30AF\U+30B9(\U+682A)"
   trademark       [Microsoft] (language=0x0411):
      "\U+FF2D\U+FF33 \U+30B4\U+30B7\U+30C3\U+30AF\U+306F\U+7C73\U+56FD 
Microsoft Corporation 
\U+306E\U+7C73\U+56FD\U+53CA\U+3073\U+305D\U+306E\U+4ED6\U+306E\U+56FD\U+306E\U+767B\U+9332\U+5546\U+6A19\U+307E\U+305F\U+306F\U+5546\U+6A19\U+3067\U+3059\U+3002"
   copyright       [Microsoft]:
{unsupported encoding 10}
   trademark       [Microsoft]:
{unsupported encoding 10}
   copyright       [Microsoft] (language=0x0411):
{unsupported encoding 10}
   trademark       [Microsoft] (language=0x0411):
{unsupported encoding 10}


Werner LEMBERG wrote:
> [Please *don't* send images in BMP format!  They are extremely large
> for no good reason.  Use PNG or JPG instead.]
> 
>>   "BKLGIB+FA"     ---------- this is the embeded font in th document.
> 
> As Toshiya has mentioned, it should be rather
> 
>    FA-RoundGothicB
> 
>> I opened the embeded font use font lab, found the gid = 2134 is like
>> this, please see the attach bitmap, some of lines form a 0 area
>> areas, then fill the area(have no area), Does freetype made special
>> processing?
> 
> If you open the font with FontLab (and the same is true for FontForge,
> BTW), you see how the glyph looks like *unscaled* and *unhinted*.
> Obviously, this doesn't work for this font.  You need a special editor
> (which I don't have) for those fonts which always applies hints, this
> is, which always display the font rasterized at a certain PPEM value.
> 
> 
>     Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]