Font Stretch

Top Previous Topic Next Topic  Print this topic

The Font Stretch property allows the user to customize the text by making it wider or narrower.

 

XF Rendering Server is able to render .fo documents and apply the apply the font-stretch extension.

 

Example of usage:

 

 

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

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:svg="http://www.w3.org/2000/svg" font-family="Times" font-size="12pt">

       <fo:layout-master-set>

               <fo:simple-page-master master-name="Letter Page" page-width="8.500in" page-height="11.000in">

                       <fo:region-body region-name="xsl-region-body" margin="0.700in" />

               </fo:simple-page-master>

       </fo:layout-master-set>

       <fo:page-sequence master-reference="Letter Page">

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

                       <fo:block font-stretch="ultra-condensed">Text here.</fo:block>

               </fo:flow>

       </fo:page-sequence>

</fo:root>

 

 

 

The following values are available:

 

ultra-condensed

ultracondensed

 

extra-condensed

extracondensed

 

condensed

condensed

 

semi-condensed

semicondensed

 

normal

normal

 

semi-expanded

semiexpanded

 

expanded

expanded

 

extra-expanded

extraexpanded

 

ultra-expanded

ultraexpanded

 

narrower

narrower

 

wider

wider