共用方式為


VVAR — Vertical Metrics Variations Table (OpenType 1.8.3)

The VVAR table is used in variable fonts to provide variations for vertical glyph metric values. This can be used to provide variation data for advance heights in the 'vmtx' table. In fonts with TrueType outlines, it can also be used to provide variation data for top and bottom side bearings obtained from the 'vmtx' table and glyph bounding box. In addition, it can also be used in fonts that have CFF 2 outlines to provide vertical-origin variation data.

For a general overview of OpenType Font Variations and terminology related to variations, see the chapter, OpenType Font Variations Overview.

In a font with TrueType outlines, the rasterizer will generate “phantom” points that represent left, right, top and bottom side bearings. (See the chapter Instructing TrueType Glyphs for more background on phantom points.) In a TrueType variable font, the glyph variations ('gvar') table will include variation data for the phantom points of each glyph, allowing glyph metrics to be interpolated for different variation instances as part of deriving the interpolated glyph outlines. For this reason, the VVAR table is not required in variable fonts that have TrueType outlines. For text-layout operations that require glyph metrics but not actual glyph outlines, however, there can be significant performance benefits by being able to obtain adjusted glyph metrics for an instance without needing to interpolate glyph outlines. For this reason, it is recommended that a VVAR table be included in variable fonts that have TrueType outlines and that support vertical layout.

The CFF 2 rasterizer does not generate phantom points as in the TrueType rasterizer. For this reason, an VVAR table is required to handle any variation in vertical glyph metrics in a variable font with CFF 2 outlines.

The format and processing of the VVAR table is analogous to the horizontal metrics variations (HVAR) table.

The VVAR table is used only in variable fonts that support vertical layout. It must be used in combination with a vertical metrics ('vmtx') table, and also in combination with a font variations ('fvar') table, and other required or optional tables used in variable fonts. See Variation Data Tables and Miscellaneous Requirements in the OpenType Font Variations Overview chapter for general information.

For variable fonts that have TrueType outlines and that support vertical layout, the VVAR table is optional but recommended. For variable fonts that have CFF 2 outlines and that support vertical layout, the VVAR table is required if there is any variation in glyph advance heights across the variation space.

Note: The VDMX table is not used in variable fonts.

Table Formats

The vertical metrics variations table has the following format.

Vertical metrics variations table:

Type Name Description
uint16 majorVersion Major version number of the metrics variations table — set to 1.
uint16 minorVersion Minor version number of the metrics variations table — set to 0.
Offset32 itemVariationStoreOffset Offset in bytes from the start of this table to the item variation store table.
Offset32 advanceHeightMappingOffset Offset in bytes from the start of this table to the delta-set index mapping for advance heights (may be NULL).
Offset32 tsbMappingOffset Offset in bytes from the start of this table to the delta-set index mapping for top side bearings (may be NULL).
Offset32 bsbMappingOffset Offset in bytes from the start of this table to the delta-set index mapping for bottom side bearings (may be NULL).
Offset32 vOrgMappingOffset Offset in bytes from the start of this table to the delta-set index mapping for Y coordinates of vertical origins (may be NULL).

The item variation store table is documented in the chapter, OpenType Font Variations Common Table Formats.

Mapping tables are optional. If a given mapping table is not provided, the offset is set to NULL.

Variation data for advance heights is required. A delta-set index mapping table for advance heights can be provided, but is optional. If a mapping table is not provided, glyph indices are used as implicit delta-set indices, as in the HVAR table.

Variation data for side bearings are optional. If included, mapping tables are required to provide the delta-set index for each glyph.

Mappings and variation data for vertical origins are not used in fonts with TrueType outlines, but can be included in variable fonts with CFF 2 outlines if there is variability in the Y coordinates of glyph vertical origins, the default values of which are recorded in the VORG table. A mapping table is required for vertical-origin variation data.

See the horizontal metrics variations (HVAR) table chapter for remaining details.