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.
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)¶
-
-
class
fontTools.voltLib.ast.
GroupName
(group, parser, location=None)[source]¶ A glyph group
-
build
(builder)¶
-
-
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.
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)¶
-
-
class
fontTools.voltLib.ast.
ScriptDefinition
(name, tag, langs, 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)¶
-
error¶
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'¶
-
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_compiler_flag_
()[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_pos_
()[source]
-
parse_position_
()[source]
-
parse_ppem_
()[source]
-
parse_substitution_
(reversal)[source]
-
parse_unicode_values_
()[source]
-
resolve_group
(group_name)[source]
-