Module Otfm.Tag
Tags.
OpenType tags are four bytes identifiers.
Tags
type t
= tag
The type for OpenType tags.
Table tags
Required tables
TTF font tables
CFF font tables
Bitmap glyph tables
Optional tables
Advanced typographic tables
Functions
val of_bytes : string -> tag
of_bytes s
is a tag corresponding tos
.- raises Invalid_argument
if
s
is not four byte long.
val to_bytes : tag -> string
to_string t
is the tag as a four byte long string.
val to_int32 : tag -> int32
to_int32 t
is the tag as an unsigned 32 bits integer.
val of_int32 : int32 -> tag
of_int32 t
is the tag from and unsigned 32 bits integer.
val pp : Stdlib.Format.formatter -> tag -> unit
pp t
prints a textual representation oft
onppf
.