[xep-support] Re: Trouble getting AFM font installed

Kevin Brown kevin at renderx.com
Thu Jul 26 14:06:54 PDT 2012


Betty:

You must have a pathing problem. Here is what I did:

Put the two font files you sent me in C:\Program Files
(x86)\RenderX\XEP\fonts which is the installed directory for the XEP I am
running.

I added this to my xep.xml:

   <font-group label="BettyHarvey" embed="false" subset="true" initial
encoding="standard">
      <font-family name="SansStone">
        <font><font-data afm="SansStone.afm" pfb="SansStone.pfb"/></font>
      </font-family>
      </font-group>

This is inside the <fonts> tag which has a base of "fonts/" so that the
relative paths above are resolved from that directory.

Ran this FO:

<?xml version="1.0" encoding="ISO-8859-1"?>
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
      <fo:simple-page-master master-name="all-pages">
        <fo:region-body region-name="xsl-region-body" margin="0.7in"
column-gap="0.25in" border="0.25pt solid gray" padding="6pt"/>
        <fo:region-before region-name="xsl-region-before" extent="0.7in"
display-align="after" padding="6pt 0.7in"/>
        <fo:region-after region-name="xsl-region-after" extent="0.7in"
display-align="before" padding="6pt 0.7in"/>
      </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="all-pages">
  
    
    <fo:flow flow-name="xsl-region-body">
      <fo:block font-family="SansStone">This is text in SansStone
font</fo:block>
      </fo:flow></fo:page-sequence></fo:root>

Worked perfectly.

PDF attached.

Check your paths or send me the xep.xml you have --- also be sure that you
are not editing one installation of XEP and have multiple on the machine
(happens to me a lot). Like you are running XEPWin and editing the xep.xml
inside of a different directory? XEPWin has its own install as a child
folder to XEPWin.

Kevin Brown
RenderX

-----Original Message-----
From: Betty Harvey [mailto:harvey at eccnet.com] 
Sent: Thursday, July 26, 2012 12:26 PM
To: kevin at renderx.com
Subject: Re: [xep-support] Re: Trouble getting AFM font installed

Here it is!

Thanks!

Betty

> Betty, send me AFM and matching PFB for just one of the fonts, your 
> xep.xml file and let me test.
>
> Something is not right in config because this error is not a corrupt 
> file, it means XEP cannot find the file or the family named SansStone
>
> [warning] could not find any font family matching "SansStone"; 
> replaced by Helvetica
>
> Kevin Brown
> RenderX
>
> -----Original Message-----
> From: xep-support-bounces at renderx.com
> [mailto:xep-support-bounces at renderx.com] On Behalf Of Betty Harvey
> Sent: Thursday, July 26, 2012 11:55 AM
> To: RenderX Community Support List
> Subject: [xep-support] Re: Trouble getting AFM font installed
>
> The files are in the font directory.  The original filename was 
> SS______.AFM and I was having problems so renamed the .afm and .pfb 
> files.
>
> I have tried putting the full path in afm and pfb attributes:
>
>  <font-family name="SansStone">
>         <font><font-data afm="C:\XEP\fonts\SansStone.afm"
> pfb="C:\XEP\fonts\SansStone.pfb"/></font>
>         <font weight="bold"><font-data 
> afm="C:\XEP\fonts\SansStone-Bold.afm"
> pfb="C:\XEP\fonts\SansStone-Bold.pfb"/></font>
>         <font style="italic"><font-data 
> afm="C:\XEP\fonts\SansStone-Italic.afm"
> pfb="C:\XEP\fonts\SansStone-Italic.pfb"/></font>
>         <font weight="bold" style="italic"><font-data 
> afm="C:\XEP\fonts\SansStone-BoldItalic.afm"
> pfb="C:\XEP\fonts\SansStone-BoldItalic.pfb"/></font>
>       </font-family>
>
> I also thought maybe the font files were corrupted but they installed 
> in Windows fine.
>
> The name is correct because this is the error that XEP gives:
>
>   [warning] could not find any font family matching "SansStone"; 
> replaced by Helvetica
>
> I am baffled!
>
> Betty
>
>> Betty:
>>
>> OK a few things here:
>>
>> 1) I assume you are using the font-family="SansStone" in your XML
>> 2) Look at the parent element to where you placed this in xep.xml, it 
>> has a base (likely "fonts/", this means you should be placing those 
>> AFM files in the fonts/ subdirectory under the RenderX install. If 
>> you have them installed on Windows, then they are likely not in that 
>> directory (they would be in Windows\Fonts). Either copy them to the 
>> fonts/ dir or change in xep.xml to explicit paths to the font file 
>> locations.
>> 3) The other line you edited (AFPFont,SansStone )is for AFP output 
>> only, you only need that if you are using AFP
>>
>> The afm="" attribute should point at the actual file. If this is 
>> relative as it is in yours, then look up the chain to see if you have 
>> a parent element with a base. Optionally, just put an explicit path 
>> to the file in that attribute,
>>
>> Kevin Brown
>> RenderX
>>
>> -----Original Message-----
>> From: xep-support-bounces at renderx.com 
>> [mailto:xep-support-bounces at renderx.com] On Behalf Of Betty Harvey
>> Sent: Thursday, July 26, 2012 11:02 AM
>> To: xep-support at renderx.com
>> Subject: [xep-support] Trouble getting AFM font installed
>>
>> I am having trouble getting an AFM font recognized.  I have placed 
>> the following in the xep.xml file under <fonts><font-group label="Base
14"
>> embed="false">
>>
>> I am using 4.19 version of RenderX.
>>
>>   <font-family name="SansStone">
>>         <font>
>>           <font-data afm="SansStone.AFM" pfb="SansStone.pfb"/>
>>         </font>
>>         <font weight="bold">
>>           <font-data afm="SansStone-Bold.afm" pfb="SansStone-Bold.pfb"/>
>>          </font>
>>         <font style="italic">
>>            <font-data afm="SansStone-Italic.afm"
>> pfb="SansStone-Italic.pfb"/>
>>         </font>
>>         <font weight="bold" style="italic">
>>            <font-data afm="SansStone-BoldItalic.afm"
>> pfb="SansStone-BoldItalic.pfb"/>
>>       </font>
>>         <font-alias name="Stone" value="SansStone"/>
>>
>> I also added the following line in the options section:
>>
>> <option name="AFPFont,SansStone" value="C0H200.0, C0H300.0, C0H400.0, 
>> C0H500.0, C0H201.0, C0H301.0, C0H401.0, C0H501.0, 278"/>
>>
>> The font is defaulting to 'Helvetica'.  Is there something I am 
>> overlooking?
>>
>> Thanks!
>>
>> Betty
>>
>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
>> Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
>> Electronic Commerce Connection, Inc. |
>> harvey at eccnet.com                    | Washington,DC XML Users Grp
>> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
>> Member of XML Guild (www.xmlguild.org)
>>
>>
>>
>>
>> _______________________________________________
>> (*) To unsubscribe, please visit
>> http://lists.renderx.com/mailman/options/xep-support
>> (*) By using the Service, you expressly agree to these Terms of 
>> Service http://w ww.renderx.com/terms-of-service.html
>>
>> _______________________________________________
>> (*) To unsubscribe, please visit
>> http://lists.renderx.com/mailman/options/xep-support
>> (*) By using the Service, you expressly agree to these Terms of 
>> Service http://w ww.renderx.com/terms-of-service.html
>>
>
>
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
> Electronic Commerce Connection, Inc. |
> harvey at eccnet.com                    | Washington,DC XML Users Grp
> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
> Member of XML Guild (www.xmlguild.org)
>
> !DSPAM:87,5011920363732020338212!
>
>
> _______________________________________________
> (*) To unsubscribe, please visit
> http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of 
> Service http://w ww.renderx.com/terms-of-service.html
>
> _______________________________________________
> (*) To unsubscribe, please visit
> http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of 
> Service http://w ww.renderx.com/terms-of-service.html
>


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
harvey at eccnet.com                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SansStone.pdf
Type: application/pdf
Size: 4137 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20120726/4b5082a6/attachment.pdf>


More information about the Xep-support mailing list