[xep-support] Type 1 fonts

Alexander Peshkov peshkov at renderx.com
Wed Jan 14 01:07:15 PST 2004


Hello Ryan,

XEP cannot parse PFMs so first of all you'll need to obtain AFM metric
for your font. Usually you can request it from your font vendor. You
can also try to produce AFM using GhostScript, that has a special
script pf2afm (note however that our clients reported problems with
this approach). 
In the fonts.xml configuration record you have to use 'pfb' parameter
instead of 'pfa'. So when you finally get an AFM for the font its
configuration will be something like this:

  <font name="NewBrunswick Normal"
        afm="C:\WINNT\Fonts\BRUNSWIN.afm"
        pfb="C:\WINNT\Fonts\BRUNSWIN.pfb"
        embed="true">
    <alias name="NewBrunswick"/>
  </font>

For more details regarding font configuration in XEP please refer to
the section "5.2. PostScript Type 1 Fonts" of "XEP 3.7 User Guide" (userguide.pdf)

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX


RG> Hi,

RG> XEP's documentation mentions .afm Type 1 fonts.  Is there a proper way to
RG> use .pfm/.pfb type 1 fonts and embed them?  My declaration in fonts.xml is
RG> below:

RG> <font name="NewBrunswick Normal" afm="C:\WINNT\Fonts\BRUNSWIN.pfm"
embed="true">>
RG>         <alias name="NewBrunswick"/>
RG> </font>

RG> I get an error telling me that a proper .ttf or .pfb outline file is needed
RG> in order to embed the font.

RG> I tried:

RG> <font name="NewBrunswick Normal" afm="C:\WINNT\Fonts\BRUNSWIN.pfm"
RG> pfa="C:\WINNT\Fonts\BRUNSWIN.pfb" embed="true">         <alias
RG> name="NewBrunswick"/>
RG> </font>

RG> But the process just hung.  Any suggestions are greatly appreciated. 

RG> Not sure if it is relevant, but I am using XEP 3.6.2.

RG> Thank you!

RG> Ryan Graham
RG> -------------------
RG> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
RG> in the body of the message to majordomo at renderx.com from the address
RG> you are subscribed from.
RG> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list