Bug 443362
Summary: | SazanamiMincho fails to display in PDF | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Jeff Fearn ๐ <jfearn> | ||||||||
Component: | fonts-japanese | Assignee: | Akira TAGOH <tagoh> | ||||||||
Status: | CLOSED WONTFIX | QA Contact: | QE Internationalization Bugs <qe-i18n-bugs> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 5.1 | CC: | eng-i18n-bugs, jfearn, petersen | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2014-03-09 22:10:23 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Jeff Fearn ๐
2008-04-21 06:26:20 UTC
Created attachment 303109 [details]
PDF exhibiting problem
Which version did you try with? I can see "some font thing failed" error on both with: sazanami-fonts-mincho-0.20040629-4.20061016.fc8 evince-2.20.2-1.fc8 poppler-0.6.2-1.fc8 and fonts-japanese-0.20061016-4.el5 evince-0.6.0-8.el5 poppler-0.5.4-4.4.el5_1 And there was no changes in the font itself between RHEL5 and F-8. so if you are saying it's a RHEL5 specific issue, the real problem may be in other place. Created attachment 303236 [details]
Example without an embedded font
Bah! Sorry, I attached the wrong PDF. This one works on FC8 and not on RHEL5.
RHEL5:
fonts-japanese-0.20061016-4.el5
evince-0.6.0-8.el5
poppler-0.5.4-4.3.el5_1
FC8:
sazanami-fonts-mincho-0.20040629-4.20061016.fc8
evince-2.20.2-1.fc8
poppler-0.6.2-1.fc8
Any change on this? (In reply to comment #4) > Any change on this? FYI we switched to sazanami-gothic on RHEL 5 and Fedora 9 as sazanami-mincho causes some problems when trying to create a font metric file for FOP. e.g (assuming you have FOP setup) on RHEL 5: java -cp /usr/share/java/fop.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar org.apache.fop.fonts.apps.TTFReader -fn SazanamiMincho /usr/share/fonts/japanese/TrueType/sazanami-mincho.ttf SazanamiMincho.xml or on Fedora 9: java -cp /usr/share/java/fop.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar org.apache.fop.fonts.apps.TTFReader -fn SazanamiMincho /usr/share/fonts/sazanami-fonts-mincho/sazanami-mincho.ttf SazanamiMincho.xml You end up with: TTF Reader for Apache FOP 0.95beta Parsing font... Reading /usr/share/fonts/sazanami-fonts-mincho/sazanami-mincho.ttf... Font Family: [Sazanami Mincho, 0U0V0j0fยฑ] Cโผโโโโโผยฑ โโโ ยฐโบโผโ ยฐโโโ... Cโผโโโโโผยฑ CID โโผโโบโโโ โโโโผโโโฝ... Wโผโโโโผยฑ โโโ ยฐโบโผโ ยฐโโโ SโโฅโโผโโโMโโผโโคโบ.โโโ... Tโคโโฝ ยฐโบโผโ โโบโผโโโโผโฝ โผโบ โโโโโโโโผยฑ โโโโโผโฝโ โผโโฝโโผโโโโโบโผโฝ. XML ยฐโบโผโ โโโโผโโโฝ ยฐโโโ โฝโคโโโโฝโฝยฐโคโโโค โโผโโโโโ. Gothic works correctly on both: java -cp /usr/share/java/fop.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar org.apache.fop.fonts.apps.TTFReader -fn SazanamiGothic /usr/share/fonts/sazanami-fonts-gothic/sazanami-gothic.ttf SazanamiGothic.xml TTF Reader for Apache FOP 0.95beta Parsing font... Reading /usr/share/fonts/sazanami-fonts-gothic/sazanami-gothic.ttf... Font Family: [0U0V0j00ยด0ยท0ร0ยฏ, Sazanami Gothic] Creating xml font file... Creating CID encoded metrics... Writing xml font file SazanamiGothic.xml... This font contains no embedding license restrictions. XML font metrics file successfully created. Additionally after creating SazanamiMincho.xml, as per #5, you get the following error when trying to use SazanamiMincho in FOP: SEVERE: Failed to read font metrics file /usr/share/publican/fop/font-metrics/SazanamiMincho.xml org.xml.sax.SAXParseException: Character reference "" is an invalid XML character. at org.apache.fop.fonts.FontReader.createFont(FontReader.java:92) The family name is: <family-name>0U0V0j0fg</family-name> Deleteing  leads to: SEVERE: Failed to read font metrics file /usr/share/publican/fop/font-metrics/SazanamiMincho.xml org.xml.sax.SAXParseException: Character reference "" is an invalid XML character. Deleting  allows you to build a PDF using SazanamiMincho. Could you attach SazanamiMincho.xml? Created attachment 320158 [details]
Font metric file
font metric file
(In reply to comment #6) > <family-name>0U0V0j0fg</family-name> > > Deleting  leads to: : > Deleting  allows you to build a PDF using SazanamiMincho. As a workaround could you just remove those for now? Or replace the name with something like "Sazanami Mincho". I looked at the ttf files with fontforge and fontmatrix and could not see any decrepancy between Mincho and Gothic for the naming, so I really don't understand what is going on when generating the xml files. (In reply to comment #9) > (In reply to comment #6) > > <family-name>0U0V0j0fg</family-name> > > > > Deleting  leads to: > : > > Deleting  allows you to build a PDF using SazanamiMincho. > > As a workaround could you just remove those for now? Or replace the name with > something like "Sazanami Mincho". The output gets corrupted after this is run, making it difficult to debug errors in the build process. > I looked at the ttf files with fontforge and fontmatrix and could not see any > decrepancy between Mincho and Gothic for the naming, so I really don't > understand what is going on when generating the xml files. Not sure if this helps, this is the output on RHEL5: Font Family: [0U0V0j0fยฑ, Sโโฅโโผโโโ Mโโผโโคโบ] This is the output on FC9 (which works properly): Font Family: [Sazanami Mincho, 0U0V0j0fg] I believe I will disable Mincho and go with Gothic for now. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug. We moved to RHEL6, so this fix is no longer required by us. |