Re: [xep-support] Configuring fonts from an otf file

From: Alexei Gagarinov <agagarinov@renderx.com>
Date: Fri Feb 18 2005 - 09:08:14 PST

Hi Chris,

> I believe the 4.x version of XEP relies on the
> presence of the font-weight attribute on FOs to determine which font
element
> to use inside the font-family.

Yes, you are right.

> Unfortunately there doesnt appear to be any way to map this approach into
the
> new file format.

Just define 'font-family' element for each font name:

      <font-family name="Arial">
        <font><font-data ttf="Arial.ttf"/></font>
      </font-family>
      <font-family name="Arial-Bold">
        <font><font-data ttf="Arialbd.ttf"/></font>
      </font-family>

Note that you had to use a real font-family name (maybe expressed through
aliases) in XEP 3.x. But it was not always trivial to find this out.
In XEP 4.x you can use any name as a value for the 'font-family' element.

> I realise its probably bad practise to omit the font-weight attribute...

I agree with this. :)

Best regards,
  Alexei Gagarinov
RenderX

----- Original Message -----
From: "Chris Bowditch" <bowditch_chris@hotmail.com>
To: <xep-support@renderx.com>
Cc: <gniven@thunderhead.com>
Sent: Thursday, February 17, 2005 8:24 PM
Subject: Re: [xep-support] Configuring fonts from an otf file

> Christopher Wong wrote:
>
> > I'm having trouble translating the old XEP 3.8 fonts.xml definitions of
> > Asian languages to the new 4.2 xep.xml file. The reference manual is too
> > sketchy to be of much help. Here's an example of the old style:
> >
> > <font name="STSong-Light-Acro,Bold"
> > ttf="CIDFont/STSong-Light-Acro"
> > adobe-encoding="UniGB-UCS2-H"
> > adobe-ordering="GB1"
> > adobe-supplement="2"
> > embed="false">
> > <alias name="STSong-Bold"/>
> > <alias name="STSong-Light-Acro-Bold"/>
> > </font>
> >
> > I don't see how this can be configured in the new style. Specifically,
> > you cannot do something like:
> >
> > <font-family name="AdobeSongStd-Light,Bold">
> > <font><font-data otf="CIDFont/AdobeSongStd-Light.otf"/></font>
> > </font-family> <font-alias name="STSongStd-Bold"
> > value="AdobeSongStd-Light,Bold"/>
> >
> > XEP will interpret the font-alias as naming two fonts
> > "AdobeSongStd-Light" and "Bold", treating the comma as a separator. How
> > does one configure XEP to use fonts from Adobe's font packs?
>
> We have a very similar problem. I believe the 4.x version of XEP relies on
the
> presence of the font-weight attribute on FOs to determine which font
element
> to use inside the font-family.
>
> In 3.x, it was possible to set up different fonts with different weights
and
> rely on just the font-family name to select the correct one. For example;
>
> <font name="Arial" ttf="Arial.ttf">
> </font>
> <font name="Arial-Bold" ttf="Arialbd.ttf">
> </font>
>
> Unfortunately there doesnt appear to be any way to map this approach into
the
> new file format. I realise its probably bad practise to omit the
font-weight
> attribute, but some of our customers have done this! And we really need an
> automatic process to upgrade the old font configuration files.
>
> Chris
>
>
>
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Fri Feb 18 10:24:58 2005

This archive was generated by hypermail 2.1.8 : Fri Feb 18 2005 - 10:24:58 PST