[xep-support] Re: error: could not find any font family matching...

From: H. Andrew Black <blackhandrew_at_ADDRESS_REMOVED>
Date: Tue Aug 10 2021 - 09:22:13 PDT
Maybe try this for the font-group element:

font-group xml:base="file:/C:/Windows/Fonts/" label="Windows TrueType" embed="true" subset="true">

--Andy

On 8/10/2021 6:17 AM, Jean-Paul Rehr wrote:
Dear RenderX members,

In XEP I've relied on the default afm fonts until now, but they don't support Greek characters that I now need to output to PDF. I am trying to add a set of .ttf fonts. I've tried following the user guide (as well as similar instructions on a few sites), but XEP keeps returning: "[warning] could not find any font family matching "AlegreyaSans"; replaced by Helvetica"

My configuration in XEP.xml looks like this (I've put the .ttf fonts in the same directory as the default .afm):

<fonts xml:base="fonts/" default-family="Helvetica">
....
<font-group label="Windows TrueType" embed="true" subset="true">
    <font-family name="AlegreyaSans">
       <font><font-data ttf="alegreyasans-regular.ttf"/></font>
       <font style="oblique"><font-data ttf="alegreyasans-italic.ttf"/></font>
       <font weight="bold"><font-data ttf="alegreyasans-bold.ttf"/></font>
       <font weight="bold" style="oblique"><font-data ttf="alegreyasans-bolditalic.ttf"/></font>
    </font-family>
</font-group>
...
</fonts>

And in the fo file the reference is:

<fo:flow flow-name="xsl-region-body" font-family="AlegreyaSans" font-weight="normal" font-size="10pt" space-before="10pt" space-after="10pt">

Am I missing a configuration somewhere?

Many thanks in advance,
JPR


_______________________________________________
(*) 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 Tue Aug 10 09:20:24 2021

This archive was generated by hypermail 2.1.8 : Tue Aug 10 2021 - 09:20:29 PDT