Hi,

I’ve just managed to produce a working PDF file using your sample FO
file and the IPAGothic font, so FOP (both 0.95 and Trunk) is definitely
able to handle that font.
Since we always miss the most obvious, maybe you can double-check the
following points:
- are you sure you use the right configuration file?
- are you sure the font is at the right place, and that it is accessible
  (read rights enabled for the file and the directory)?

If you’re stuck you can try manually configuring the font and see how it
goes:
    <font embed-url="file:///the/path/to/ipag.ttf">
      <font-triplet name="IPAGothic" style="normal" weight="normal"/>
    </font>

You may want to attach your complete configuration file so that we can
have a look.


HTH,
Vincent


Moriguchi Akihiro wrote:
> Good morning all,
> 
>> I'm just start using fop 0.95 to generate Japanese PDF on Mac OS 10.5.6.
>> But I can't generate Japanese included PDF.
>> I now know using configuration file without generating font metrics.
>> Does I need some font specification on fo file or something?
>> Or some Mac specific modification?
>>
> I have a little progress.
> 
> I got following errors.
> catch22:manual catch22$ fop -c ~/.fop/cfg.xml -fo japanese2.fo -pdf
> japanese2.pdf
> May 5, 2009 10:05:44 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
> WARNING: Font 'IPAGothic,normal,400' not found. Substituting with
> 'any,normal,400'.
> May 5, 2009 10:05:44 AM org.apache.fop.hyphenation.Hyphenator 
> getHyphenationTree
> SEVERE: Couldn't find hyphenation pattern ja
> 
> I think IPAGothic font doesn't correctly identified by fop but I don't
> know how to do.
> I changed my config to following.
>  <renderer mime="application/pdf">
>          <fonts>
>                  <directory
> recursive="true">/opt/local/share/fonts/mixfont/fonts</directory>
>                  <auto-detect/>
>          </fonts>
> </renderer>
> 
> The directory /opt/local/share/fonts/mixfont/fonts is the place
> ipag.ttf reside which downloaded from
> http://mix-mplus-ipa.sourceforge.jp/download.html and unpucked and
> copyed to the place.
> 
> And I changed my font-family and font-weight of my fo file I attached
> with this mail into "IPAGothic" and "normal."
> 
> I also used svn version but got same warning.
> 
> My fo file is generated by xsltproc from a XML edited by XXE.


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

Reply via email to