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

Betty Harvey harvey at eccnet.com
Thu Jul 26 11:54:31 PDT 2012


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!




More information about the Xep-support mailing list