class final Core · pdftoolkit/pdf 0.12.4

PDF\Specification\Iso32000_2\Dictionary\StandardLayoutAttributesSpecificToInlineLevelStructureElementsTable380\LineHeightEntry
ISO 32000-2:2020 EC3, table 380, /LineHeight.

Lire la déclaration source ↗

Héritage et contrats

Parent : PDF\Specification\SchemaEntry

Définition ISO 32000-2:2020 EC3

Tableau 380 · Standard layout attributes specific to inline-level structure elements
§14.8.5.4.4 · page PDF 799

Original PDF au commit documenté ↗ · Métadonnées de la source au commit documenté ↗ · Errata publics ↗

Original conservé dans le dépôt du core. Inventaire des tableaux et contrôles sémantiques restent distincts.

Définitions communes : Table 360

Extrait normatif original en anglais.

/LineHeight number or name

(Optional; inheritable) The element’s preferred height, measured in default user space units in the block-progression direction. The height of a line of text is determined by the largest LineHeight value for any complete or partial ILSE that it contains. The name Normal or Auto in place of a numeric value shall indicate that no specific height constraint is to be imposed. The element’s height shall be set to a reasonable value based on the content’s font size: Normal Adjust the line height to include any non-zero value specified for BaselineShift. Auto Adjustment for the value of BaselineShift shall not be made. Default value: Normal. The meaning of the term "reasonable value" is left to the PDF processor to determine. It should be approximately 1.2 times the font size, but this value may vary depending on the export format. This attribute applies to all ILSEs (including implicit ones) that are children of this element or of its nested ILSEs, if any. It shall not apply to nested BLSEs. When translating to a specific export format, the values Normal and Auto, if specified, shall be used directly if they are available in the target format. NOTE 1 In the absence of a numeric value for LineHeight or an explicit value for the font size, a reasonable method of calculating the line height from the information in a tagged PDF file is to find the difference between the associated font’s Ascent and Descent values (see 9.8, "Font descriptors"), map it from glyph space to default user space (see 9.4.4, "Text space details"), and use the maximum resulting value for any character in the line.

Périmètre et limites PDF 2.0.

Construction

__construct()

Déclarée par PDF\Specification\Iso32000_2\Dictionary\StandardLayoutAttributesSpecificToInlineLevelStructureElementsTable380\LineHeightEntry · Voir le code ↗

Méthodes héritées

3 méthodes des parents et contrats

definition()

public function definition(): PDF\Specification\EntryDefinition

Déclarée par PDF\Specification\SchemaEntry · Voir le code ↗

key()

public function key(): PDF\Syntax\Object\NameType

Déclarée par PDF\Syntax\Object\DictionaryObject\Entry · Voir le code ↗

value()

public function value(): PDF\Syntax\FileStructure\BasicType

Déclarée par PDF\Syntax\Object\DictionaryObject\Entry · Voir le code ↗

Propriétés

Constantes