FL.objects.TTInfo.TTInfo

class FL.objects.TTInfo.TTInfo(ttinfo: TTInfo | None = None)

Bases: Copyable

TTInfo - class to represent TrueType Information

All information about TTInfo is based on an eMail from Yuri and was valid for FontLab 4.0

__init__(ttinfo: TTInfo | None = None) None

Never create TTInfo object explicitly - they must be obtained from the FontLab’s Font classes.

Parameters:

ttinfo (TTInfo | None) – Copy attributes from TTInfo or create an empty TTInfo

Methods

__init__([ttinfo])

Never create TTInfo object explicitly - they must be obtained from the FontLab's Font classes.

fake_deserialize(data)

fake_deserialize_gasp(data)

fake_deserialize_stems(data)

fake_deserialize_vdmx(data)

fake_deserialize_zone_deltas(data)

fake_deserialize_zones(data)

fake_get_binary(attr)

fake_serialize()

fake_serialize_gasp()

fake_serialize_stem_ppems()

fake_serialize_stem_ppems1()

fake_serialize_stems()

fake_serialize_vdmx()

fake_serialize_zone_deltas()

fake_serialize_zones()

fake_set_binary(attr, data)

Set a binary table (cvt, prep, fpgm) from the representation chosen in JSON.

Attributes

cvt

list 'VSICharArray'

fpgm

list 'VSICharArray'

gasp

list of smoothing control records 'VSArray'

hdmx

list 'VSBByteArray'

head_creation

head_flags

head_font_direction_hint

head_lowest_rec_ppem

head_mac_style

head_units_per_em

hhea_ascender

hhea_descender

hhea_line_gap

hstem_data

list of horizontal TrueType-Stems 'VExTTStemArray'

max_function_defs

max_instruction_defs

max_stack_elements

max_storage

max_twilight_points

max_zones

os2_fs_selection

os2_fs_type

os2_s_family_class

os2_s_typo_ascender

os2_s_typo_descender

os2_s_typo_line_gap

os2_ul_code_page_range1

os2_ul_code_page_range2

os2_us_weight_class

os2_us_width_class

os2_us_win_ascent

os2_us_win_descent

os2_y_strikeout_position

os2_y_strikeout_size

os2_y_subscript_x_offset

os2_y_subscript_x_size

os2_y_subscript_y_offset

os2_y_subscript_y_size

os2_y_superscript_x_offset

os2_y_superscript_x_size

os2_y_superscript_y_offset

os2_y_superscript_y_size

prep

list 'VSICharArray'

vdmx

list 'VSArray'

vstem_data

list of vertical TrueType-Stems 'VExTTStemArray'

property cvt: list[int]

list ‘VSICharArray’

Returns:

_description_

Return type:

list[int]

Type:

Control Value Table

fake_set_binary(attr: str, data: str) None

Set a binary table (cvt, prep, fpgm) from the representation chosen in JSON.

Parameters:
  • attr (str) – The attribute name the data should go to

  • data (str) – The data as a hexStr

property fpgm: list[int]

list ‘VSICharArray’

Returns:

_description_

Return type:

list[int]

Type:

Font program

property gasp: list[TTGasp]

list of smoothing control records ‘VSArray’

Returns:

_description_

Return type:

list[TTGasp]

Type:

Grid-fitting/Scan-conversion

property hdmx: list[int]

list ‘VSBByteArray’

Returns:

_description_

Return type:

list[int]

Type:

Horizontal device metrics

property hstem_data: list[TTStem]

list of horizontal TrueType-Stems ‘VExTTStemArray’

Returns:

_description_

Return type:

list[TTStem]

property prep: list[int]

list ‘VSICharArray’

Returns:

_description_

Return type:

list[int]

Type:

CVT Program

property vdmx: list[TTVdmx]

list ‘VSArray’

Returns:

_description_

Return type:

list[TTVdmx]

Type:

Vertical device metrics

property vstem_data: list[TTStem]

list of vertical TrueType-Stems ‘VExTTStemArray’

Returns:

_description_

Return type:

list[TTStem]