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

From: Kevin Brown <kevin_at_ADDRESS_REMOVED>
Date: Tue Aug 10 2021 - 10:34:22 PDT

I did not have any issue using the font from Google:

 

From: Xep-support <xep-support-bounces@renderx.com> On Behalf Of Kevin Brown
Sent: Tuesday, August 10, 2021 10:21 AM
To: 'RenderX Community Support List' <xep-support@renderx.com>; 'Jean-Paul Rehr' <rehrjb@gmail.com>
Subject: [xep-support] Re: error: could not find any font family matching...

 

Not if Jean-Paul put them where he says:

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

 

Can you send me the exact TTF file and a simple FO?

 

There are times where the font name is “strange” like “Alegreya Sans” .

 

Kevin Brown

(650) 327-1000 Direct

(650) 328-8008 Fax

(925) 395-1772 Mobile

skype:kbrown01

 <mailto:kevin@renderx.com> kevin@renderx.com

 <mailto:sales@renderx.com> sales@renderx.com

 <http://www.renderx.com/> http://www.renderx.com

 

 

 

 

 

From: Xep-support <xep-support-bounces@renderx.com <mailto:xep-support-bounces@renderx.com> > On Behalf Of H. Andrew Black
Sent: Tuesday, August 10, 2021 9:22 AM
To: RenderX Community Support List <xep-support@renderx.com <mailto:xep-support@renderx.com> >; Jean-Paul Rehr <rehrjb@gmail.com <mailto:rehrjb@gmail.com> >
Subject: [xep-support] Re: error: could not find any font family matching...

 

Maybe try this for the font-group element:

font-group xml:base= <file:///C:/Windows/Fonts/> "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

image002.jpg
Received on Tue Aug 10 10:32:19 2021

This archive was generated by hypermail 2.1.8 : Tue Aug 10 2021 - 10:32:24 PDT