You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jo...@kbcsecurities.be on 2002/01/28 09:10:24 UTC

bugger fonts still won't work desperate...

Ok here is the deal. I           adapted the userconfigfile like this:

<fonts>
    <font metrics-file="d:\fop\codegen\arial.xml" kerning="yes" embed-file
="d:\fop\codegen\Arial.ttf">
      <font-triplet name="Arial" style="normal" weight="normal"/>
    </font>
    <font metrics-file="d:\fop\codegen\arialb.xml" kerning="yes" embed-file
="d:\fop\codegen\Arialb.ttf">
      <font-triplet name="Arial" style="normal" weight="bold"/>
    </font>
    <font metrics-file="d:\fop\codegen\ariali.xml" kerning="yes" embed-file
="d:\fop\codegen\Ariali.ttf">
      <font-triplet name="Arial" style="italic" weight="normal"/>
    </font>
    <font metrics-file="d:\fop\codegen\arialbi.xml" kerning="yes"
embed-file="d:\fop\codegen\Arialbi.ttf">
      <font-triplet name="Arial" style="italic" weight="bold"/>
    </font>
    <font metrics-file="d:\fop\codegen\arialn.xml" kerning="yes" embed-file
="d:\fop\codegen\Arianl.ttf">
      <font-triplet name="Arialn" style="normal" weight="normal"/>
    </font>
  </fonts>


in the dir "d:\fop\codegen" i pasted the the generated xml-files and the
ttf files....

but he still doesn't recognize the fonts when i render to pdf...

what do i do wrong?

how can i resolve it?



Jochen Maes
EDP departement
Programmeur

KBC-Securities
Havenlaan 16
1080 Brussel

Tel : 02/429.96.81
Fax : 02/429.17.48
E-mail : Jochen.Maes@kbcsecurities.be

**********************************************************************************************************************************************************

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. KBC Securities
reserves the right to monitor all e-mail communications through its
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of any such entity.
**********************************************************************************************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: bugger fonts still won't work desperate...

Posted by Thierry Gounelle <th...@cgey.com>.
Hi Jochen,
The metrics files are loaded using URI syntax, so either you specify a relative path like
    <font metrics-file="codegen/arial.xml" ...>
or a fully qualified path like
    <font metrics-file="file:///d:/fop/codegen/arial.xml" ...>

It's a bit confusing because you can specify "d:/fop/codegen/Arial.ttf" for the font but you are obliged to put the "file:///" in front of the metrics file
path.

Hope it helps.
regards, thierry

Jochen.Maes@kbcsecurities.be wrote:

> Ok here is the deal. I           adapted the userconfigfile like this:
>
> <fonts>
>     <font metrics-file="d:\fop\codegen\arial.xml" kerning="yes" embed-file
> ="d:\fop\codegen\Arial.ttf">
>       <font-triplet name="Arial" style="normal" weight="normal"/>
>     </font>
>     <font metrics-file="d:\fop\codegen\arialb.xml" kerning="yes" embed-file
> ="d:\fop\codegen\Arialb.ttf">
>       <font-triplet name="Arial" style="normal" weight="bold"/>
>     </font>
>     <font metrics-file="d:\fop\codegen\ariali.xml" kerning="yes" embed-file
> ="d:\fop\codegen\Ariali.ttf">
>       <font-triplet name="Arial" style="italic" weight="normal"/>
>     </font>
>     <font metrics-file="d:\fop\codegen\arialbi.xml" kerning="yes"
> embed-file="d:\fop\codegen\Arialbi.ttf">
>       <font-triplet name="Arial" style="italic" weight="bold"/>
>     </font>
>     <font metrics-file="d:\fop\codegen\arialn.xml" kerning="yes" embed-file
> ="d:\fop\codegen\Arianl.ttf">
>       <font-triplet name="Arialn" style="normal" weight="normal"/>
>     </font>
>   </fonts>
>
> in the dir "d:\fop\codegen" i pasted the the generated xml-files and the
> ttf files....
>
> but he still doesn't recognize the fonts when i render to pdf...
>
> what do i do wrong?
>
> how can i resolve it?
>
> Jochen Maes
> EDP departement
> Programmeur
>
> KBC-Securities
> Havenlaan 16
> 1080 Brussel
>
> Tel : 02/429.96.81
> Fax : 02/429.17.48
> E-mail : Jochen.Maes@kbcsecurities.be
>
> **********************************************************************************************************************************************************
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. You must not,
> directly or indirectly, use, disclose, distribute, print, or copy any part
> of this message if you are not the intended recipient. KBC Securities
> reserves the right to monitor all e-mail communications through its
> networks. Any views expressed in this message are those of the individual
> sender, except where the message states otherwise and the sender is
> authorised to state them to be the views of any such entity.
> **********************************************************************************************************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org