You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/03/11 10:30:44 UTC

DO NOT REPLY [Bug 41810] New: - FOP Custom Font Embedding problem

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41810>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41810

           Summary: FOP Custom Font Embedding problem
           Product: Fop
           Version: 0.93
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: russ.taylor@nifty.com
                CC: russ.taylor@nifty.com


I have been trying to get Japanese fonts to display in a PDF generated with FOP
0.93 for almost 24 hours straight.  I have followed the instructions to the
letter, and I had a working version previously in FOP 0.20.5 a couple years ago,
I can't find my old code now.

After trying every possible iteration I could possibly come up with, I have
determined it must be a problem in FOP 0.93.

I built the metrics file with the included TTFReader using the exact command on
the FOP Fonts website, for TTFReader -ttcname "MS Mincho" msmincho.ttc
msmincho.xml  The file is created fine.

I tried to add the <font> tags in the fop.xconf file, and I tried to add it
,separately to a userconfig.xml file.  Neither way worked.

I ran FOP from the command line using...  java org.apache.fop.cli.Main -d -c
userconfig.xml temp.xml out.pdf  the PDF is created, the English text is fine,
but the Japanese text, which is in <block> elements with font-family="MSMincho"
set...  only show as pound signs, #.

I have tried, as I said, every iteration I could think of to tweak the situation
but FOP just complains, it can't find the font "MSMincho, normal, 400" and
replaces it with "any, normal, 400"

If this is user error, I apologize.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41810] - FOP Custom Font Embedding problem

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41810>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41810


a_l.delmelle@pandora.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From a_l.delmelle@pandora.be  2007-03-11 01:51 -------
Hi,

This is indeed more a question that belongs on fop-users@... but no bad this once, just try to keep it in 
mind for the future. Thanks!

OK, as to your particular problem:
Have you taken into account that the <fonts> elements in the userconfig in 0.93 must be specified as 
child of the <renderer>? (should be visible in the example fop.xconf)
Are you using absolute or relative URIs for the metrics-url/embed-url? If they're relative, you can add a 
<font-base> element to the configuration file to specify the base-url to which relative urls should be 
appended before resolving.

I'm closing this bug, and marking it as invalid. Please post any follow-up to fop-users@. Thanks!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 41810] - FOP Custom Font Embedding problem

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41810>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41810





------- Additional Comments From russ.taylor@nifty.com  2007-03-11 01:50 -------
Forget it, I seem to have come across the solution just moments after I logged
the bug.

Though I am not sure what I did differently yet.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.