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

From: Kevin Brown <kevin@renderx.com>
Date: Thu Jul 26 2012 - 12:19:46 PDT

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@renderx.com
[mailto:xep-support-bounces@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@renderx.com
> [mailto:xep-support-bounces@renderx.com] On Behalf Of Betty Harvey
> Sent: Thursday, July 26, 2012 11:02 AM
> To: xep-support@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@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@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
Received on Thu Jul 26 12:10:08 2012

This archive was generated by hypermail 2.1.8 : Thu Jul 26 2012 - 12:10:09 PDT