voltLib

fontTools.voltLib – a package for dealing with Visual OpenType Layout Tool (VOLT) files.

ast

class fontTools.voltLib.ast.AnchorDefinition(name, gid, glyph_name, component, locked, pos, location=None)[source]
build(builder)
class fontTools.voltLib.ast.ContextDefinition(ex_or_in, left=None, right=None, location=None)[source]
build(builder)
class fontTools.voltLib.ast.Element(location=None)[source]
build(builder)[source]
class fontTools.voltLib.ast.Enum(enum, location=None)[source]

An enum

build(builder)
glyphSet(groups=None)[source]
class fontTools.voltLib.ast.Expression(location=None)[source]
build(builder)
class fontTools.voltLib.ast.FeatureDefinition(name, tag, lookups, location=None)[source]
build(builder)
class fontTools.voltLib.ast.GlyphDefinition(name, gid, gunicode, gtype, components, location=None)[source]
build(builder)
class fontTools.voltLib.ast.GlyphName(glyph, location=None)[source]

A single glyph name, such as cedilla.

build(builder)
glyphSet()[source]
class fontTools.voltLib.ast.GroupDefinition(name, enum, location=None)[source]
build(builder)
glyphSet(groups=None)[source]
class fontTools.voltLib.ast.GroupName(group, parser, location=None)[source]

A glyph group

build(builder)
glyphSet(groups=None)[source]
class fontTools.voltLib.ast.LangSysDefinition(name, tag, features, location=None)[source]
build(builder)
class fontTools.voltLib.ast.LookupDefinition(name, process_base, process_marks, mark_glyph_set, direction, reversal, comments, context, sub, pos, location=None)[source]
build(builder)
class fontTools.voltLib.ast.Pos(adv, dx, dy, adv_adjust_by, dx_adjust_by, dy_adjust_by)[source]
adv: int

Alias for field number 0

adv_adjust_by: dict

Alias for field number 3

count(value, /)

Return number of occurrences of value.

dx: int

Alias for field number 1

dx_adjust_by: dict

Alias for field number 4

dy: int

Alias for field number 2

dy_adjust_by: dict

Alias for field number 5

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

class fontTools.voltLib.ast.PositionAdjustPairDefinition(coverages_1, coverages_2, adjust_pair, location=None)[source]
build(builder)
class fontTools.voltLib.ast.PositionAdjustSingleDefinition(adjust_single, location=None)[source]
build(builder)
class fontTools.voltLib.ast.PositionAttachCursiveDefinition(coverages_exit, coverages_enter, location=None)[source]
build(builder)
class fontTools.voltLib.ast.PositionAttachDefinition(coverage, coverage_to, location=None)[source]
build(builder)
class fontTools.voltLib.ast.Range(start, end, parser, location=None)[source]

A glyph range

build(builder)
glyphSet()[source]
class fontTools.voltLib.ast.ScriptDefinition(name, tag, langs, location=None)[source]
build(builder)
class fontTools.voltLib.ast.SettingDefinition(name, value, location=None)[source]
build(builder)
class fontTools.voltLib.ast.Statement(location=None)[source]
build(builder)
class fontTools.voltLib.ast.SubstitutionDefinition(mapping, location=None)[source]
build(builder)
class fontTools.voltLib.ast.SubstitutionLigatureDefinition(mapping, location=None)[source]
build(builder)
class fontTools.voltLib.ast.SubstitutionMultipleDefinition(mapping, location=None)[source]
build(builder)
class fontTools.voltLib.ast.SubstitutionReverseChainingSingleDefinition(mapping, location=None)[source]
build(builder)
class fontTools.voltLib.ast.SubstitutionSingleDefinition(mapping, location=None)[source]
build(builder)
class fontTools.voltLib.ast.VoltFile[source]
build(builder)[source]

error

class fontTools.voltLib.parser.OrderedSymbolTable[source]
define(name, item)
enter_scope()[source]
exit_scope()
range(start, end)[source]
resolve(name, case_insensitive=False)[source]
class fontTools.voltLib.parser.Parser(path)[source]
advance_lexer_()[source]
expect_keyword_(keyword)[source]
expect_name_()[source]
expect_number_()[source]
expect_string_()[source]
glyph_range(start, end)[source]
is_cur_keyword_(k)[source]
make_lexer_(file_or_path)[source]
parse()[source]
parse_adjust_by_()[source]
parse_adjust_pair_()[source]
parse_adjust_single_()[source]
parse_attach_()[source]
parse_attach_cursive_()[source]
parse_cmap_format()[source]
parse_context_()[source]
parse_coverage_()[source]
parse_def_anchor_()[source]
parse_def_glyph_()[source]
parse_def_group_()[source]
parse_def_lookup_()[source]
parse_def_script_()[source]
parse_enum_()[source]
parse_feature_()[source]
parse_langsys_()[source]
parse_noarg_option_()[source]
parse_pos_()[source]
parse_position_()[source]
parse_ppem_()[source]
parse_substitution_(reversal)[source]
parse_unicode_values_()[source]
resolve_group(group_name)[source]
class fontTools.voltLib.parser.SymbolTable[source]
define(name, item)[source]
enter_scope()[source]
exit_scope()[source]
resolve(name, case_insensitive=True)[source]

lexer

class fontTools.voltLib.lexer.Lexer(text, filename)[source]
CHAR_DIGIT_ = '0123456789'
CHAR_LC_LETTER_ = 'abcdefghijklmnopqrstuvwxyz'
CHAR_NAME_CONTINUATION_ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._0123456789'
CHAR_NAME_START_ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._'
CHAR_NEWLINE_ = '\r\n'
CHAR_PERIOD_ = '.'
CHAR_UC_LETTER_ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
CHAR_UNDERSCORE_ = '_'
CHAR_WHITESPACE_ = ' \t'
NAME = 'NAME'
NEWLINE = 'NEWLINE'
NUMBER = 'NUMBER'
STRING = 'STRING'
location_()[source]
next()[source]
next_()[source]
scan_over_(valid)[source]
scan_until_(stop_at)[source]

parser

class fontTools.voltLib.parser.OrderedSymbolTable[source]
define(name, item)
enter_scope()[source]
exit_scope()
range(start, end)[source]
resolve(name, case_insensitive=False)[source]
class fontTools.voltLib.parser.Parser(path)[source]
advance_lexer_()[source]
expect_keyword_(keyword)[source]
expect_name_()[source]
expect_number_()[source]
expect_string_()[source]
glyph_range(start, end)[source]
is_cur_keyword_(k)[source]
make_lexer_(file_or_path)[source]
parse()[source]
parse_adjust_by_()[source]
parse_adjust_pair_()[source]
parse_adjust_single_()[source]
parse_attach_()[source]
parse_attach_cursive_()[source]
parse_cmap_format()[source]
parse_context_()[source]
parse_coverage_()[source]
parse_def_anchor_()[source]
parse_def_glyph_()[source]
parse_def_group_()[source]
parse_def_lookup_()[source]
parse_def_script_()[source]
parse_enum_()[source]
parse_feature_()[source]
parse_langsys_()[source]
parse_noarg_option_()[source]
parse_pos_()[source]
parse_position_()[source]
parse_ppem_()[source]
parse_substitution_(reversal)[source]
parse_unicode_values_()[source]
resolve_group(group_name)[source]
class fontTools.voltLib.parser.SymbolTable[source]
define(name, item)[source]
enter_scope()[source]
exit_scope()[source]
resolve(name, case_insensitive=True)[source]