[publican-list] CJK fonts and italics

Jeff Fearn jfearn at redhat.com
Fri Feb 18 00:08:14 UTC 2011


On Thu, 2011-02-17 at 17:49 -0600, Steve Bonneville wrote:
> Further followup on the CJK font issue.  The context, again --
> 
> On Fri, Feb 04, 2011 at 10:03:22AM +1000, Jeffrey Fearn wrote:
> > Steve Bonneville wrote:
> > >On Fri, Feb 04, 2011 at 08:39:32AM +1000, Jeffrey Fearn wrote:
> > >>Steve Bonneville wrote:
> > >>>I'm working with some rendering of material to PDF in Publican
> > >>>that uses CJK fonts (zh-CN, zh-TW, ko-KR, and ja-JP translations).
> > >>>I'm
> > >>>noticing that any string tagged in such a way as to set font-style to
> > >>>italic is getting each Unicode character rendered as missing
> > >>>character boxes.  (In fact, it looks like it may be the
> > >>>non-character U+FFFF.) In particular this affects <emphasis> and
> > >>><firstterm>, but I think this is a general issue with anything the
> > >>>brand marks as italic.
> > >>>
> > >>>I know these fonts don't have a normal italic or oblique style.  So,
> > >>>is there something I can do to fix this?  I'd be reasonably happy if
> > >>>they just rendered as normal-style fonts rather than as missing
> > >>>characters.  I've tested with publican 2.2 and 2.5,
> > >>>docbook-style-xsl 1.75.2-6, with the Fedora brand and our custom
> > >>>brand, on Fedora 14.
> > >>>Um, fop-0.95-5 also.
> 
>  [...]
>  
> > Thanks Steve, looks like the font file names changed between F12 and
> > F13 so a bunch of the metrics files aren't being created :(
> > 
> > We will need to do a font audit and see what is going on.
> 
> Okay, it looks like the fop-ttc-metric.pl script in the source tree
> has a bunch of incorrect font paths hardcoded into it for ja-JP.
> Attaching a patch to fix paths that have clear corrections.
> 
> It looks like we don't ship "ZYSong18030" or "AR PL ShanHeiSun Uni" 
> anymore, I think the "AR PL UMing *" fonts replace them.  Left those
> alone anyway.

That script runs for RHEL5, RHEL6, and 3 Fedora versions. The Fedora
font paths keep changing. :(

At some time some of the fonts switched to/from being font collections,
so we need to figure out when that happened and handle it appropriately.

Ugly stuff eh :)

Cheers, Jeff.





More information about the publican-list mailing list