JSTF Header

The JSTF table begins with a header that contains a version number for the table (Version), a count of the number of scripts used in the font (JstfScriptCount), and an array of records (JstfScriptRecord). Each record contains a script tag (JstfScriptTag) and an offset to a JstfScript table (JstfScript).

Note: The JstfScriptTags must correspond with the ScriptTags listed in the GSUB and GPOS tables.

Example 1 at the end of this chapter shows a JSTF Header table and JstfScriptRecord.

JSTF header

Type

Name

Description

fixed32

Version

Version of the JSTF table

—initially set to 0x00010000

uint16

JstfScriptCount

Number of JstfScriptRecords in this table

struct

JstfScriptRecord

Array of JstfScriptRecords

[JstfScriptCount}

—in alphabetical order, by JstfScriptTag


JstfScriptRecord

Type

Name

Description

Tag

JstfScriptTag

4-byte JstfScript identification

Offset

ŽJstfScript

Offset to JstfScript table

—from beginning of JSTF Header