The OpenType interface represents OpenType and TrueType fonts. This interface makes it possible to obtain sfnt tables from the font. A particular Font object can implement this interface.
For more information on TrueType and OpenType fonts, see the OpenType specification. ( http://www.microsoft.com/typography/otspec/ ).
The OpenType interface represents OpenType and TrueType fonts. This interface makes it possible to obtain sfnt tables from the font. A particular Font object can implement this interface. For more information on TrueType and OpenType fonts, see the OpenType specification. ( http://www.microsoft.com/typography/otspec/ ).
(get-font-table this sfnt-tag)
(get-font-table this sfnt-tag offset count)
Returns a subset of the table as an array of bytes for a specified tag. Tags for sfnt tables include items like cmap, name and head. The byte array returned is a copy of the font data in memory.
sfnt-tag - a four-character code as a 32-bit integer - int
offset - index of first byte to return from table - int
count - number of bytes to return from table - int
returns: a subset of the table corresponding to
sfntTag and containing the bytes
starting at offset byte and including
count bytes. - byte[]
Returns a subset of the table as an array of bytes for a specified tag. Tags for sfnt tables include items like cmap, name and head. The byte array returned is a copy of the font data in memory. sfnt-tag - a four-character code as a 32-bit integer - `int` offset - index of first byte to return from table - `int` count - number of bytes to return from table - `int` returns: a subset of the table corresponding to sfntTag and containing the bytes starting at offset byte and including count bytes. - `byte[]`
(get-font-table-size this sfnt-tag)
Returns the size of the table for a specified tag. Tags for sfnt tables include items like cmap, name and head.
sfnt-tag - a four-character code as a 32-bit integer - int
returns: the size of the table corresponding to the specified
tag. - int
Returns the size of the table for a specified tag. Tags for sfnt tables include items like cmap, name and head. sfnt-tag - a four-character code as a 32-bit integer - `int` returns: the size of the table corresponding to the specified tag. - `int`
(get-version this)
Returns the version of the OpenType font. 1.0 is represented as 0x00010000.
returns: the version of the OpenType font. - int
Returns the version of the OpenType font. 1.0 is represented as 0x00010000. returns: the version of the OpenType font. - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close