ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > XSL FO > Fonts > Choosing font family

Rendered image | PDF document
Use attribute font-family to set font family.


Source
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
     <fo:layout-master-set>
          <fo:simple-page-master master-name="simple">
               <fo:region-body/>
          </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="Serif">Serif font.</fo:block>
          </fo:flow>
     </fo:page-sequence>
</fo:root>