<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'm afraid you got our two emails mixed up. My problem is unlike Chris
Bowditch's, where he can map a font family to a specific ttf. My
problem is that there is only one font file (OTF), and specifying font
weight within that font file is problematic because XEP is using the
comma as a separator. So I can specify "AdobeSongStd-Light" as a font
family name, but I cannot set an alias to point to
"AdobeSongStd-Light,Bold" because XEP uses the comma as separator. I
cannot rely on XEP to select a bold font either, apparently, because:<br>
<br>
&lt;fo:inline font-weight="bold"
font-family="AdobeSongStd-Light"&gt;&egrave;&iexcl;&uml;&aelig;&nbsp;&frac14;&aelig;&cedil;&sup2;&aelig;&#376;$(C&lt;/fo:inline&gt;<br>
<br>
Does not display the text as bold. I know that Adobe Reader can display
this font in bold: document properties dialog shows
"AdobeSongStd-Light,BoldItalic" in use. How can I get XEP to output
similar text? Have you ever gotten bold Chinese characters to display?
Thanks.<br>
<br>
Chris<br>
<br>
Alexei Gagarinov wrote:<br>
<blockquote cite="mid00f001c515dc$732944c0$0f00a8c0@renderx.com"
 type="cite">
  <pre wrap="">Just define  'font-family' element for each font name:

      &lt;font-family name="Arial"&gt;
        &lt;font&gt;&lt;font-data ttf="Arial.ttf"/&gt;&lt;/font&gt;
      &lt;/font-family&gt;
      &lt;font-family name="Arial-Bold"&gt;
        &lt;font&gt;&lt;font-data ttf="Arialbd.ttf"/&gt;&lt;/font&gt;
      &lt;/font-family&gt;

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.

  </pre>
  <blockquote type="cite">
    <pre wrap="">I realise its probably bad practise to omit the font-weight attribute...
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I agree with this. :)

Best regards,
  Alexei Gagarinov
RenderX

----- Original Message ----- 
From: "Chris Bowditch" <a class="moz-txt-link-rfc2396E" href="mailto:bowditch_chris@hotmail.com">&lt;bowditch_chris@hotmail.com&gt;</a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:xep-support@renderx.com">&lt;xep-support@renderx.com&gt;</a>
Cc: <a class="moz-txt-link-rfc2396E" href="mailto:gniven@thunderhead.com">&lt;gniven@thunderhead.com&gt;</a>
Sent: Thursday, February 17, 2005 8:24 PM
Subject: Re: [xep-support] Configuring fonts from an otf file


  </pre>
  <blockquote type="cite">
    <pre wrap="">Christopher Wong wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">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:

  &lt;font name="STSong-Light-Acro,Bold"
        ttf="CIDFont/STSong-Light-Acro"
        adobe-encoding="UniGB-UCS2-H"
        adobe-ordering="GB1"
        adobe-supplement="2"
        embed="false"&gt;
    &lt;alias name="STSong-Bold"/&gt;
    &lt;alias name="STSong-Light-Acro-Bold"/&gt;
  &lt;/font&gt;

I don't see how this can be configured in the new style. Specifically,
you cannot do something like:

   &lt;font-family name="AdobeSongStd-Light,Bold"&gt;
       &lt;font&gt;&lt;font-data otf="CIDFont/AdobeSongStd-Light.otf"/&gt;&lt;/font&gt;
   &lt;/font-family&gt;       &lt;font-alias name="STSongStd-Bold"
value="AdobeSongStd-Light,Bold"/&gt;

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?
      </pre>
    </blockquote>
    <pre wrap="">We have a very similar problem. I believe the 4.x version of XEP relies on
    </pre>
  </blockquote>
  <pre wrap=""><!---->the
  </pre>
  <blockquote type="cite">
    <pre wrap="">presence of the font-weight attribute on FOs to determine which font
    </pre>
  </blockquote>
  <pre wrap=""><!---->element
  </pre>
  <blockquote type="cite">
    <pre wrap="">to use inside the font-family.

In 3.x, it was possible to set up different fonts with different weights
    </pre>
  </blockquote>
  <pre wrap=""><!---->and
  </pre>
  <blockquote type="cite">
    <pre wrap="">rely on just the font-family name to select the correct one. For example;

&lt;font name="Arial" ttf="Arial.ttf"&gt;
&lt;/font&gt;
&lt;font name="Arial-Bold" ttf="Arialbd.ttf"&gt;
&lt;/font&gt;

Unfortunately there doesnt appear to be any way to map this approach into
    </pre>
  </blockquote>
  <pre wrap=""><!---->the
  </pre>
  <blockquote type="cite">
    <pre wrap="">new file format. I realise its probably bad practise to omit the
    </pre>
  </blockquote>
  <pre wrap=""><!---->font-weight
  </pre>
  <blockquote type="cite">
    <pre wrap="">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 <a class="moz-txt-link-abbreviated" href="mailto:majordomo@renderx.com">majordomo@renderx.com</a> from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
    </pre>
  </blockquote>
  <pre wrap=""><!----><a class="moz-txt-link-freetext" href="http://www.renderx.com/tos.html">http://www.renderx.com/tos.html</a>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@renderx.com">majordomo@renderx.com</a> from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service <a class="moz-txt-link-freetext" href="http://www.renderx.com/tos.html">http://www.renderx.com/tos.html</a>
  </pre>
</blockquote>
</body>
</html>