[xep-support] Re: How to integrate otf-fonts in XEP 3.x

From: Kevin Brown <kevin@renderx.com>
Date: Thu Nov 06 2014 - 12:36:32 PST

I think Terry is correct here. I can take a clue from the XSL that tries to
convert old version 3 files to the version 4 format. The test document has
the structure below. This leads me to the conclusion that you only have one
font entry for every font. You would need to create a unique name for the
font and use that exact font name.

   <!-- ====== UNCOMMENT ME ======
   <font name="ArialMT"
         ttf="C:\WINDOWS\Fonts\arial.ttf"
         embed="true">
     <alias name="Arial"/>
   </font>
   ====== UNCOMMENT ME ====== -->

   <!-- ====== UNCOMMENT ME ======
   <font name="Arial-BoldMT"
         ttf="C:\WINDOWS\Fonts\arialbd.ttf"
         embed="true">
     <alias name="Arial-Bold"/>
     <alias name="ArialMT-Bold"/>
   </font>
   ====== UNCOMMENT ME ====== -->

   <!-- ====== UNCOMMENT ME ======
   <font name="Arial-ItalicMT"
         ttf="C:\WINDOWS\Fonts\ariali.ttf"
         embed="true">
     <alias name="Arial-Italic"/>
     <alias name="ArialMT-Italic"/>
   </font>
   ====== UNCOMMENT ME ====== -->

   <!-- ====== UNCOMMENT ME ======
   <font name="Arial-BoldItalicMT"
         ttf="C:\WINDOWS\Fonts\arialbi.ttf"
         embed="true">
     <alias name="Arial-BoldItalic"/>
     <alias name="ArialMT-BoldItalic"/>
   </font>
   ====== UNCOMMENT ME ====== -->

-----Original Message-----
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of
Terrance Bockhol
Sent: Thursday, November 06, 2014 12:26 PM
To: RenderX Community Support List
Subject: [xep-support] Re: How to integrate otf-fonts in XEP 3.x

version 3 had a fonts.xml file, entries looked like.

<fonts>

<font name="TheSerifB-W4SemiLightItalic"
          ttf="TheSerifB-W4SemiLightItalic.ttf">
</font>
...
</fonts>

You may have to create a separate <font> entry for each style, and reference
them from the FO as such, eg.
font-family="TheSerifB-W4SemiLightItalic".

On 11/06/2014 04:11 AM, Szabo, Patrick (LNG-VIE) wrote:
> Okay...converting to ttf with a different converter did work.
> However I can't get the Italic Version to work. From what I found on the
web I have to adapt fonts.xml like this:
>
> <font-group>
> <font-family name="TheSerifB W4 SemiLight" embed="true"
subset="true">
> <font>
> <font-data
ttf="TheSerifB-W4SemiLight.ttf"/>
> </font>
> <font style="italic">
> <font-data
ttf="TheSerifB-W4SemiLightItalic.ttf"/>
> </font>
> </font-family>
> </font-group>
>
> However now the font doesn't get displayed at all. Not italic and not
regular.
>
> Any suggestions ?
>
> cheers
>
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
> Ing. Patrick Szabo
> Developer
> LexisNexis
> A-1030 Wien, Marxergasse 25
>
> mailto:Patrick.Szabo@lexisnexis.at
> Tel.: +43 1 53452 1514
> Fax.: +43 1 534 52 146
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
>
> -----Ursprüngliche Nachricht-----
> Von: Xep-support [mailto:xep-support-bounces@renderx.com] Im Auftrag von
Szabo, Patrick (LNG-VIE)
> Gesendet: Donnerstag, 06. November 2014 10:39
> An: RenderX Community Support List
> Betreff: [xep-support] How to integrate otf-fonts in XEP 3.x
>
> Hi,
>
> I have XEP 3.x running here and updating is not an option because it's
running on some legacy system and ripping that version out breaks a whole
lot of things.
>
> I need to integrate some otf-fonts so I put this in font.xml:
>
> <font name="TheSerifB-W4SemiLightItalic"
otf="../afm/TheSerifB-W4SemiLightItalic.otf" embed="true">
> <alias name="TheSerifB - W4 SemiLight Italic"/> </font>
>
> The file really does exist under ../afm/TheSerifB-W4SemiLightItalic.otf
and font-name is correct as well.
>
> I also tried converting it to ttf and using that but that didn't work
either.
>
> Any ideas ?
>
> cheers
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . .
> Ing. Patrick Szabo
> Developer
> LexisNexis
> A-1030 Wien, Marxergasse 25
>
> mailto:Patrick.Szabo@lexisnexis.at
> Tel.: +43 1 53452 1514
> Fax.: +43 1 534 52 146
>
> . . . . . . . . . . . . . . . . . . . . . . . . .
>
>
>
>
>
> _______________________________________________
> (*) 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
>

-- 
Terrance Bockhol
Sebis Direct, Inc.
Data Processing
312-243-9300 ext.16
312-841-1979 (mobile)
!DSPAM:87,545bd96c10103948912153!
_______________________________________________
(*) 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 Nov 6 12:35:43 2014

This archive was generated by hypermail 2.1.8 : Thu Nov 06 2014 - 12:35:44 PST