You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Leonid Kleiner <mt...@fibimail.co.il> on 2002/07/14 12:00:00 UTC

referenced fonts in non Latin alphabet don't look properly

Hi, 
thanks for reply

When I use the following configuration, having Courier font installed I'm still getting rubbish instead of hebrew letters :
<font metrics-file=".../cour.xml" kerning="yes" >
    <font-triplet name="Courier" style="normal" weight="normal"/>
 </font>

<fo:block font-size="12pt" font-family="Courier" font-style="normal" font-weight="normal" line-height="15pt" >Text in Hebrew here</fo:block>

I've tried using default font e.g. Helvetiva in my fo file, but got ### instead of Hebrew letters.

What is procedure of referencing non Latin font in fo stylesheet.

Thanks,
Leonid Kleiner


  ----- Original Message ----- 
  From: Mark Peterson 
  To: fop-user@xml.apache.org 
  Sent: Thursday, July 11, 2002 8:54 PM
  Subject: RE: is there any way to reference fonts, not embedding them


  If you do not want the font embedded in the PDF then remove the "embed-file" attribute. The PDF will then contain text using the font with the font metrics and to view it properly the font will need to be installed where it is being viewed. 

   

  <fonts>

   

   <font metrics-file="./fonts/Verdana.xml" kerning="yes" embed-file="./fonts/Verdana.ttf">

      <font-triplet name="Verdana" style="normal" weight="normal"/>

      <font-triplet name="VerdanaMT" style="normal" weight="normal"/>

   </font>

   

  …

  </fonts>

   

  -----Original Message-----
  From: Leonid Kleiner [mailto:mtfleonid@fibimail.co.il]
  Sent: Thursday, July 11, 2002 1:39 PM
  To: fop-user@xml.apache.org
  Subject: is there any way to reference fonts, not embedding them

   

  Hi, everybody

   

  When I want my PDF to contain Hebrew letters I perform following steps:

   

  1. taking some ttf font (e.g. Arial ) from Windows fonts library

  2. generating the font metrics file with the tool supplied with FOP

  3. describing new font in userconfig.xml

  4. using it in my stylesheets (requires loading userconfig.xml).

   

  The process is well described in cid-fonts.pdf, BUT

   

  As far as I understand, FOP doing some kind of embedding thus enlarging file size. Is there any way to just reference fonts, not embedding them.

   

  Thanks for the help

   


Re: referenced fonts in non Latin alphabet don't look properly

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Leonid Kleiner wrote:

> I've tried using default font e.g. Helvetiva in my fo file, but got ### 
> instead of Hebrew letters.
>  
> What is procedure of referencing non Latin font in fo stylesheet.

A '#' means there is no glyph fo the character in the font.
For the standard PDF fonts, AFAIK they don't have glyphs
for hebrew characters (they have glyph mostly for Latin-1
characters and only a few others). For you user font, you
can use a font viewer to theck whether they contain glyphs
for hebrew characters .

>     ----- Original Message -----
You are supposed to snip old unnecessary quotes. Also,
please do not post HTML mails. Check your mail client.

J.Pietschmann