W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

Re: Type 1 font problem

From: Harm Kok <h.kok@diderottrack.nl>
Date: Fri, 28 Jun 2002 16:51:36 +0200
Message-ID: <3D1C77F8.1000005@diderottrack.nl>
To: www-xsl-fo@w3.org

Hi Jörgen,

Just to be sure, did you also generate the font metrics file? using:

|java -cp build\fop.jar;lib\xerces.jar;lib\xalan.jar;lib\batik.jar 
org.apache.fop.fonts.apps.PFMReader pfm-file xml-file|

Two difference with my userconfig.xml file are:
1. metrics-file="conf\myr12.xml"  (So I added conf\ befor the font 
metrics file.) Don't know why I did that in the first place, but it 
works fine for me:-)

2. the embed-file="C:\winnt\fonts\*.pfb", So I added the complete path 
to the font, normally somewhere in a central directory. Don't know where 
you exactly put your fonts.

Hope this helps,

Harm


Jörgen Karlsson wrote:

> I have a Type 1 multiple master font which I would like to use with 
> FOP. I have managed to edit the userconfig.xml so that it contains all 
> variants of my font.
>  
> Here is a snippet:
> <font metrics-file="myr12.xml" kerning="yes" embed-file="_MRG____.PFB">
>     <font-triplet name="MyriadMM_700_BD_600_NO" style="normal" 
> weight="bold"/>
>  
> In my stylesheet I have the following code:
> <fo:table table-layout="fixed" width="100%" border-width="0.5pt" 
> border-style="solid" id="{@exportIndex}">
>       <fo:table-column column-width="10mm"/>
>        <fo:table-column column-width="112mm"/>
>              <fo:table-header>
>                     <fo:table-row>
>                          <fo:table-cell display-align="center" 
> border-width="0.5pt" border-style="solid" >
>                                 <fo:block 
> font-family="MyriadMM_700_BD_600_NO" font-weight="bold" 
> font-size="8pt" text-align="center" margin="1mm" padding="1mm">Step</fo:block>
>                          </fo:table-cell>
>                          <fo:table-cell display-align="center" 
> border-width="0.5pt" border-style="solid" >
>                                   <fo:block 
> font-family="MyriadMM_700_BD_600_NO" font-weight="bold" 
> font-size="8pt" text-align="center" margin="1mm" padding="1mm">Action</fo:block>
>                           </fo:table-cell>
>                       </fo:table-row>
>                   </fo:table-header>
>                    <fo:table-body>
>                                 .
>                                 .
>                    </fo:table-body>
>                       
> </fo:table>
>  
> The PDF generates without errors but the words "Step" and "Action" 
> still is not in bold. What am I doing wrong.
>  
> Regards 
>  
> Jörgen Karlsson          
Received on Friday, 28 June 2002 10:49:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT