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.
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)¶
-
-
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'¶
-