package otfm

  1. Overview
  2. Docs

Module Otfm.TagSource

Tags.

OpenType tags are four bytes identifiers.

Tags

Sourcetype t = tag

The type for OpenType tags.

Table tags

Required tables

Sourceval cmap : tag

The cmap table.

Sourceval head : tag

The cmap table.

The head table.

Sourceval hhea : tag

The head table.

The hhea table.

Sourceval hmtx : tag

The hhea table.

The hmtx table.

Sourceval maxp : tag

The hmtx table.

The maxp table.

Sourceval name : tag

The maxp table.

The name table.

Sourceval os2 : tag

The name table.

The os2 table.

Sourceval post : tag

The os2 table.

The post table.

TTF font tables

Sourceval cvt : tag

The cvt table.

Sourceval fpgm : tag

The cvt table.

The fpgm table.

Sourceval glyf : tag

The fpgm table.

The glyf table.

Sourceval loca : tag

The glyf table.

The loca table.

Sourceval prep : tag

The loca table.

The prep table.

CFF font tables

Sourceval cff : tag

The CFF table.

Sourceval vorg : tag

The CFF table.

The VORG table.

Bitmap glyph tables

Sourceval ebdt : tag

The EBDT table.

Sourceval eblc : tag

The EBLC table.

Sourceval ebsc : tag

The EBSC table.

Optional tables

Sourceval dsig : tag

The DSIG table.

Sourceval gasp : tag

The DSIG table.

The gasp table.

Sourceval hdmx : tag

The gasp table.

The hdmx table.

Sourceval kern : tag

The hdmx table.

The kern table.

Sourceval ltsh : tag

The kern table.

The LTSH table.

Sourceval pclt : tag

The LTSH table.

The PCLT table.

Sourceval vdmx : tag

The PCLT table.

The VDMX table.

Sourceval vhea : tag

The VDMX table.

The vhea table.

Sourceval vmtx : tag

The vhea table.

The vmtx table.

Advanced typographic tables

Sourceval base : tag

The BASE table.

Sourceval gdef : tag

The BASE table.

The GDEF table.

Sourceval gpos : tag

The GDEF table.

The GPOS table.

Sourceval gsub : tag

The GPOS table.

The GSUB table.

Sourceval jstf : tag

The GSUB table.

The JSTF table.

Functions

Sourceval of_bytes : string -> tag

of_bytes s is a tag corresponding to s.

Sourceval to_bytes : tag -> string

to_string t is the tag as a four byte long string.

Sourceval to_int32 : tag -> int32

to_int32 t is the tag as an unsigned 32 bits integer.

Sourceval of_int32 : int32 -> tag

of_int32 t is the tag from and unsigned 32 bits integer.

Sourceval compare : tag -> tag -> int

compare t t' is Pervasives.compare t t'

Sourceval pp : Format.formatter -> tag -> unit

pp t prints a textual representation of t on ppf.