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 processEvent
WARNING: 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 processEvent
WARNING: 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>

				          

Attachment: test-font-selection-strategy.pdf
Description: Adobe PDF document

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to