Tecnologías XML / XSL-FO / Referencia / Extensiones XSL de Antenna House Formatter / Propiedades / kerning-mode

(Extracto 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

Categoría Recorte y puntuación colgante

La propiedad axf:kerning-mode especifica si se debe aplicar el interletraje.

Valor:

none | pair | auto

Valor inicial:

auto

Se aplica a:

todos los objetos de formato de bloque o de línea

Heredado:

yes

Porcentajes:

N/A

Los valores tienen los significados siguientes.

none

No se aplica el interletraje.

pair

Se aplica el interletraje por pares a los caracteres occidentales.

auto

Depende del ajuste del sistema.

Puede activar o desactivar el interletraje por pares para las lenguas europeas mediante pair-kerning en el archivo de configuración de opciones. Este ajuste también está disponible en el cuadro de diálogo de configuración de opciones de la interfaz gráfica.

ATENCIÓN:

El ajuste axf:kerning-mode="contextual" de XSL Formatter V4 se eliminó en AH Formatter V6.3. Utilice en su lugar axf:punctuation-trim="adjacent".

axf:kerning-mode no tiene efecto cuando se especifica letter-spacing.

Ejemplo XSL-FO:

<fo:root xml:lang="en" 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">
<axf:document-info name="document-title" value="Pair Kerning in Alphabets"/>
<axf:document-info name="author" value="Antenna House, Inc."/>
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster1">
<fo:region-after extent="7mm"/>
<fo:region-body margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster1">
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="0.8em" text-align="right" color="green">
<fo:basic-link external-destination="http://www.antennahouse.com/">
Antenna House, Inc.
</fo:basic-link>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="serif" font-size="1em" line-height="1.4" axf:hyphenate-hyphenated-word="false" hyphenate="true">
<fo:block span="all" font-family="sans-serif" font-size="2em" font-weight="bold" line-height="2" space-before="1em" space-after="1em" space-before.conditionality="retain" space-after.conditionality="retain" background-color="#EEEEEE">
<fo:block start-indent="1em" end-indent="1em">
Pair Kerning in Alphabets
</fo:block>
</fo:block>
<fo:block span="all" space-before="1em" space-after="1em" space-after.conditionality="retain" text-indent="0em" border="1pt solid #9999FF" start-indent="0.5em" end-indent="0.5em" padding="0.5em" text-align="justify">
By using a pair kerning value of Western fonts, you may set whether the space between letters should be trimmed or not. If the value of letter-spacing is not 0, it would be regarded as specifying none.
</fo:block>
<fo:block font-family="'Linux Libertine G', serif">
<fo:block>
Latin script:
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="none">
To WALT
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="pair">
To WALT
</fo:block>
<fo:block margin-top="1em">
Greek script:
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="none">
ΓΑΜΜΑ
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="pair">
ΓΑΜΜΑ
</fo:block>
<fo:block margin-top="1em">
Cyrillic script:
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="none">
ТАЙНА
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="pair">
ТАЙНА
</fo:block>
<fo:block margin-top="1em">
The letter-spacing value is non-zero:
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="none" letter-spacing="0.0001em">
To WALT
</fo:block>
<fo:block font-size="1.5em" axf:kerning-mode="pair" letter-spacing="0.0001em">
To WALT
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Descargar los ejemplos

Resultado:

volver arriba