Re: [xep-support] Font Alias Problem

From: Alexei Gagarinov <agagarinov@renderx.com>
Date: Fri Feb 25 2005 - 02:05:04 PST

Hi Chris,

> Why does XEP insist on removing spaces from font aliases?

XEP removes spaces from all the font definitions it encounters -- from
'font' attributes in an input FO source, from 'font-family' and 'font-alias'
elements in the configuration file.
Consequently, a font alias with 'StoneBold' name will match both 'StoneBold'
and 'Stone Bold' font family names. So you need to use only one font alias,
with or without spaces, in the XEP configuration file.

> And if it encounters two identical font aliases,
> why does it ignore all font aliases defined afterwards?

I agree that XEP 'overreacts' in this case. We'll reconsider the processing
of font aliases.
Thank you for pointing this out.

Best regards,
  Alexei Gagarinov
RenderX

----- Original Message -----
From: "Chris Bowditch" <bowditch_chris@hotmail.com>
To: <xep-support@renderx.com>
Sent: Tuesday, February 22, 2005 5:17 PM
Subject: [xep-support] Font Alias Problem

> Hi,
>
> we are currently in the process of translating font configurations from
XEP
> 3.x to 4.x formats for some of our customers.
>
> Some of our customers have used font aliases that contains spaces, e.g.
"Stone
> Bold" XEP 3.x handled this ok, but under 4.x, the space is ignored and the
> alias becomes "StoneBold" Now, consider the following snippet from
xep.xml:
>
> <font-alias name="StoneItalic" value="StoneSans-Italic"/>
> <font-alias name="Stone Bold" value="StoneSans-Bold"/>
> <font-alias name="StoneBold" value="StoneSans-Bold"/>
> <font-alias name="StoneSemiBold" value="StoneSans-SemiBold"/>
>
> When XEP encounters the third alias "StoneBold" an error is issued:
>
> [error] file:/C:/xep420/xep.xml: Alias 'StoneBold' redefined; the first
> definition is kept
>
> However, all aliases defined after this has occurred are then ignored and
> later on in the processing XEP issues the warning;
>
> [warning] could not find any font family matching "StoneSemiBold";
replaced by
> Helvetica
>
>
> but clearly a font alias has been defined for "StoneSemiBold"
>
> Why does XEP insist on removing spaces from font aliases? And if it
encounters
> two identical font aliases, why does it ignore all font aliases defined
> afterwards?
>
> 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 25 02:25:29 2005

This archive was generated by hypermail 2.1.8 : Fri Feb 25 2005 - 02:25:29 PST