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.

  -- Steve

-- 
Steven Bonneville <[email protected]>
Manager, Linux Curriculum Team
Red Hat | Global Learning Services               Phone: +1-612-638-0507
gpg: 1024D/221D06FF  68B1 3E66 A351 6485 B9AF  24D8 3DF5 B50B 221D 06FF
--- fop-ttc-metric.pl.orig      2010-12-02 18:33:33.000000000 -0600
+++ fop-ttc-metric.pl   2011-02-17 17:45:56.259119880 -0600
@@ -64,12 +64,12 @@
         weight => [ 'normal', 'bold' ],
     },
     'IPAGothic' => {
-        path   => '/usr/share/fonts/ipa-gothic/ipag.otf',
+        path   => '/usr/share/fonts/ipa-gothic/ipag.ttf',
         style  => [ 'normal', 'italic' ],
         weight => [ 'normal', 'bold' ],
     },
     'IPAPGothic' => {
-        path   => '/usr/share/fonts/ipa-pgothic/ipagp.otf',
+        path   => '/usr/share/fonts/ipa-pgothic/ipagp.ttf',
         style  => [ 'normal', 'italic' ],
         weight => [ 'normal', 'bold' ],
     },
@@ -91,7 +91,7 @@
     },
     'Sazanami Gothic' => {
         path =>
-            '/usr/share/fonts/japanese/TrueType/sazanami-gothic.ttf',
+            '/usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf',
         style  => [ 'normal', 'italic' ],
         weight => [ 'normal', 'bold' ],
     },
_______________________________________________
publican-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican

Reply via email to