[xep-support] Re: Activating small-caps in Palatino

From: Kevin Brown <kevin@renderx.com>
Date: Mon May 05 2014 - 10:32:58 PDT

RenderX does not select the small-caps variant from the font, you need to
use a font the *is* small-caps.

(i.e. just like with Bold, you have a font where the chars are bold glyphs)

 

So this line:

 

        <font variant="small-caps"><font-data ttf="pala.ttf"/></font>

 

Would have a different font file, one that is all caps. Like PalatinoR Roman
SC.

 

Kevin Brown

RenderX

 

From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Jan To¹ovskı
Sent: Monday, May 05, 2014 1:08 AM
To: RenderX Community Support List (xep-support@renderx.com)
Subject: [xep-support] Activating small-caps in Palatino

 

Dear All,

 

I've set my environment according to this thread:

http://services.renderx.com/lists/xep-support/3846.html

 

i.e. changed Palatino entry in the xep.xml (small-caps variant added)

 

      <font-family name="Palatino" embed="true" ligatures="&#xFB00; &#xFB01;
&#xFB02; &#xFB03; &#xFB04;">

        <font><font-data ttf="pala.ttf"/></font>

        <font variant="small-caps"><font-data ttf="pala.ttf"/></font>

        <font style="italic"><font-data ttf="palai.ttf"/></font>

        <font weight="bold"><font-data ttf="palab.ttf"/></font>

        <font weight="bold" style="italic"><font-data
ttf="palabi.ttf"/></font>

      </font-family>

    </font-group>

 

But when I apply small-caps in this example, this setting is ignored.
Howerer, text is typed with Palatino.

 

<?xml version="1.0" encoding="utf-8"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <fo:layout-master-set>

    <fo:simple-page-master master-name="simple" page-height="297mm"
page-width="210mm">

      <fo:region-body margin="10mm"/>

    </fo:simple-page-master>

  </fo:layout-master-set>

  <fo:page-sequence master-reference="simple">

    <fo:flow flow-name="xsl-region-body">

      <fo:block font-family="Palatino"
font-variant="small-caps">ad</fo:block>

    </fo:flow>

  </fo:page-sequence>

</fo:root>

 

Originally tested with Adobe Minion Pro, but with the same result. Both
fonts have real small caps included.

 

Does this feature works just for certain fonts?

 

Thanks, Jan

!DSPAM:87,536746fb9852096618870!

_______________________________________________
(*) 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 Mon May 5 10:33:02 2014

This archive was generated by hypermail 2.1.8 : Mon May 05 2014 - 10:33:08 PDT