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/11 20:39:22 UTC

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: is there any way to reference fonts, not embedding them

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Safa Hussain wrote:

> [ERROR] unknown font OCR,normal,normal so defaulted font to any
> [ERROR] unknown font OCR,normal,normal so defaulted font to any
> [ERROR] unknown font OCR,normal,normal so defaulted font to any
Probably you've mistyped in font definition (wrong case?).

-- 
Oleg Tkachenko
Multiconn International, Israel


Re: is there any way to reference fonts, not embedding them

Posted by Safa Hussain <sm...@ucdavis.edu>.
 Hello everyone,



I used the following step to import an OCR font



1. took an OCR ttf font that I downloaded and installed into the Windows fonts library

2. generated the font metrics file

3. described new font in userconfig.xml



When I run fop online it does not recognize the existence of the OCR font. I get the following error message. Any help is greatly appreciated.




C:\FOP\fop-0.20.4rc>fop -c conf/userconfig.xml docs\examples\fo\fonts.fo test.pd
f

C:\FOP\fop-0.20.4rc>java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib
\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib
\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -c conf/userconfig.xml
docs\examples\fo\fonts.fo test.pdf
[INFO] FOP 0.20.4rc
[INFO] building formatting object tree
[INFO] [1]
[ERROR] unknown font OCR,normal,normal so defaulted font to any
[ERROR] unknown font OCR,normal,normal so defaulted font to any
[ERROR] unknown font OCR,normal,normal so defaulted font to any
[INFO] Parsing of document complete, stopping renderer




_______________________________________________
Safa Hussain - Lead Application Developer
Applications Development, IET-Communication Resources
University of California, Davis
Voice: (530) 754-7285
email: smhussain@ucdavis.edu
_______________________________________________


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


referenced fonts in non Latin alphabet don't look properly

Posted by Leonid Kleiner <mt...@fibimail.co.il>.
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: is there any way to reference fonts, not embedding them

Posted by Mark Peterson <ma...@ssglimited.com>.
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