Technologies XML / XSL-FO / Référence / Attributs de XSL-FO / character
(Extrait de « XSL-FO ― Die Referenz » de Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Section de la recommandation : 7.17.1
Catégorie : 7.17 Propriétés des caractères
Description
Dans <fo:character>, cet attribut définit un caractère Unicode à mettre en forme de manière particulière. Cela permet des ajustements microtypographiques, comme la création de ligatures. On peut également emprunter et insérer des caractères d’autres polices lorsqu’ils sont absents de la police courante.
Valeurs
character | un caractère conforme à la norme Unicode |
Version XSL-FO : 1.0
Autorisé dans :
Cet élément permet le rendu distinct de caractères individuels. |
Prise en charge :
Niveau de conformité | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
De base | O | O | O | O | O |
Exemple XSL-FO :
<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten" margin="0mm 0mm 0mm
0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="26mm 55mm 41mm
55mm"/>
<fo:region-before extent="5mm"/>
<fo:region-after extent="30mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten" force-page-count="no-force">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center" margin="5mm
10mm">
<fo:page-number/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block-container background-color="#F38222" absolute-position="fixed" top="48mm" right="20mm" width="80mm" height="12mm">
<fo:block text-align="center" vertical-align="middle" padding-top="2mm">
fo:character
character="T" letter-spacing="-0.25em"
</fo:block>
</fo:block-container>
<fo:block-container background-color="#F38222" absolute-position="fixed" top="100mm" right="20mm" width="80mm" height="8mm">
<fo:block text-align="center" vertical-align="middle" padding-top="2mm">
normale Schriftausprägung
</fo:block>
</fo:block-container>
<fo:block space-after="20mm" font-size="25pt" line-height="1.2em">
Als Gregor Samsa eines Morgens aus unruhigen
<fo:inline font-weight="bold">
<fo:character character="T" letter-spacing="-0.25em"/>
r
</fo:inline>
äumen...
</fo:block>
<fo:block font-size="25pt" line-height="1.2em">
Als Gregor Samsa eines Morgens aus unruhigen
<fo:inline font-weight="bold">
Tr
</fo:inline>
äumen...
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>Dans la sortie :
Extrait de la recommandation du W3C :