[xep-support] Small Caps

Thomas Schraitle tom_schr at web.de
Tue Oct 4 09:14:25 PDT 2005


Hi,

On Thursday 22 September 2005 03:29, Teus Benschop wrote:
> This clever emulator works well for normal English text. But we have to
> deal with all characters defined in Unicode. I still request RenderX to
> natively support font-variant="small-caps".

and

> Hello,
>
> XEP does not support font-variant="small-caps".
> FOP and XSLFormatter do.

Actually RenderX supports small caps (I use XEP 4.4 build 20050822). Some 
days ago I could use successfully small caps in my document and 
remembered your posting. Try the following steps:

1. You need a font that contains small caps. That's the most important 
thing, otherwise the whole configuration is useless.

2. The configuration file must contain an entry somewhere in xep.xml:

 <font-family name="THE.SCFONT">
  <!-- More entries -->
  <font weight="normal" variant="small-caps">
     <!-- Point to the font file: -->
     <font-data pfb="THE-Caps.pfb"
                afm="THE-Caps.afm"/>
     </font>
  </font>
 </font-family>


3. Your XSL-FO file must contain the font-family and font-variant 
attributes, for example:

  <fo:inline font-family="THE.SCFONT" 
             font-variant="small-caps">Hello World</fo:inline>

If you follow these steps, you should get small caps in your PDF. At 
least, I was successfull. :)

Good luck,
Tom

-- 
Thomas Schraitle
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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/terms-of-service.html



More information about the Xep-support mailing list