Hi,I am trying to generate a PDF document with some japanese characters in it. I am using the FOP Trunk version on Windows environment.
My Font configuration listed below... <font kerning="yes" embed-url="file:///C:/Windows/Fonts/msgothic.ttc"><font-triplet name="MSGothic" style="normal" weight="normal" encoding-mode=”auto”/>
</font>And the font is installed on my windows font list. I am attaching my test file and the output file with this mail.
And the console is showing the following information...C:\Source\FOPLatest>fop -fo C:\mywork\JavaXSLTSamples\XSLFOSamples\test-font-selection-strategy.fo -pdf C:\mywork\JavaXSLTSamples\XSLFOSamples\test-font-selection-strategy.pdf
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEventWARNING: Font "Times New Roman,normal,400" not found. Substituting with "any,normal,400".
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x8a00) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x8a9e) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x304a, ohiragana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x3088, yohiragana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x3073, bihiragana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x6587) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x5b57) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x30b3, kokatakana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEventWARNING: Font "Sazanami Mincho,normal,400" not found. Substituting with "any,normal,400".
please help me in resolving this issue... Thanks, Venkat.
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4"> <fo:flow flow-name="xsl-region-body"> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Times New Roman" font-selection-strategy="character-by-character"</fo:inline>: Times New Roman does not have the Japanese characters:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Times New Roman">è¨èªããã³æåã³ã¼ãã®å¤å¥ã¯ããã¼ã¿ã¦ã¨ã¢ãã¦ã¸ã³ã°ãæ å ±æ¤ç´¢ãCRMãªã©ãããã¹ããå¹ åºãã½ã¼ã¹ããéã¾ãã¢ããªã±ã¼ã·ã§ã³ã§éè¦ã¨ãªãã¾ãã</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Sazanami Mincho" font-selection-strategy="character-by-character"</fo:inline>: Sazanami Mincho has ASCII and Japanese characters:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Sazanami Mincho">è¨èªããã³æåã³ã¼ãã®å¤å¥ã¯ããã¼ã¿ã¦ã¨ã¢ãã¦ã¸ã³ã°ãæ å ±æ¤ç´¢ãCRMãªã©ãããã¹ããå¹ åºãã½ã¼ã¹ããéã¾ãã¢ããªã±ã¼ã·ã§ã³ã§éè¦ã¨ãªãã¾ãã</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Times New Roman,Sazanami Mincho" font-selection-strategy="character-by-character"</fo:inline>: <fo:inline color="red">CRM is not taken from Times New Roman</fo:inline>:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Times New Roman,Sazanami Mincho">è¨èªããã³æåã³ã¼ãã®å¤å¥ã¯ããã¼ã¿ã¦ã¨ã¢ãã¦ã¸ã³ã°ãæ å ±æ¤ç´¢ãCRMãªã©ãããã¹ããå¹ åºãã½ã¼ã¹ããéã¾ãã¢ããªã±ã¼ã·ã§ã³ã§éè¦ã¨ãªãã¾ãã</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Times New Roman,Sazanami Mincho" font-selection-strategy="character-by-character"</fo:inline>: CRM is taken from Times New Roman:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Times New Roman,Sazanami Mincho">CRMãª</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Times New Roman,Sazanami Mincho" font-selection-strategy="character-by-character"</fo:inline>: CRM is taken from Times New Roman:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Times New Roman,Sazanami Mincho">ç´¢CRMãª</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Times New Roman,Sazanami Mincho" font-selection-strategy="character-by-character"</fo:inline>: <fo:inline color="red">CRM is not taken from Times New Roman</fo:inline>:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Times New Roman,Sazanami Mincho">ç´¢ãCRMãª</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Sazanami Mincho,Times New Roman" font-selection-strategy="character-by-character"</fo:inline>: CRM is taken from Sazanami Mincho:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Sazanami Mincho,Times New Roman">è¨èªããã³æåã³ã¼ãã®å¤å¥ã¯ããã¼ã¿ã¦ã¨ã¢ãã¦ã¸ã³ã°ãæ å ±æ¤ç´¢ãCRMãªã©ãããã¹ããå¹ åºãã½ã¼ã¹ããéã¾ãã¢ããªã±ã¼ã·ã§ã³ã§éè¦ã¨ãªãã¾ãã</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Sazanami Mincho,Times New Roman" font-selection-strategy="character-by-character"</fo:inline>: CRM is taken from Sazanami Mincho:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Sazanami Mincho,Times New Roman">CRMãª</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Sazanami Mincho,Times New Roman" font-selection-strategy="character-by-character"</fo:inline>: CRM is taken from Sazanami Mincho:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Sazanami Mincho,Times New Roman">ç´¢CRMãª</fo:block> <fo:block font-family="Times New Roman"><fo:inline font-family="Monospaced">font-family="Sazanami Mincho,Times New Roman" font-selection-strategy="character-by-character"</fo:inline>: CRM is taken from Sazanami Mincho:</fo:block> <fo:block font-selection-strategy="character-by-character" space-before="6pt" space-after="6pt" font-family="Sazanami Mincho,Times New Roman">ç´¢ãCRMãª</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
test-font-selection-strategy.pdf
Description: Adobe PDF document
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
