fontTools.ttLib.tables._g_l_y_f
index
/home/mcfletch/pylive/fontTools/ttLib/tables/_g_l_y_f.py

_g_l_y_f.py -- Converter classes for the 'glyf' table.

 
Modules
       
fontTools.ttLib.tables.DefaultTable
array
numpy
sstruct
struct
sys
fontTools.ttLib
fontTools.ttLib.tables.ttProgram

 
Classes
       
DefaultTable
table__g_l_y_f
Glyph
GlyphComponent

 
class Glyph
     Methods defined here:
__cmp__(self, other)
__getitem__(self, componentIndex)
__init__(self, data='')
compact(self, glyfTable, recalcBBoxes=1)
compile(self, glyfTable, recalcBBoxes=1)
compileComponents(self, glyfTable)
compileCoordinates(self)
decompileComponents(self, data, glyfTable)
decompileCoordinates(self, data)
decompileCoordinatesRaw(self, nCoordinates, data)
expand(self, glyfTable)
fromXML(self, (name, attrs, content), ttFont)
getCompositeMaxpValues(self, glyfTable, maxComponentDepth=1)
getCoordinates(self, glyfTable)
getMaxpValues(self)
isComposite(self)
recalcBounds(self, glyfTable)
toXML(self, writer, ttFont)

 
class GlyphComponent
     Methods defined here:
__cmp__(self, other)
__init__(self)
compile(self, more, haveInstructions, glyfTable)
decompile(self, data, glyfTable)
fromXML(self, (name, attrs, content), ttFont)
getComponentInfo(self)
Return the base glyph name and a transform.
toXML(self, writer, ttFont)

 
class table__g_l_y_f(DefaultTable)
     Methods defined here:
__contains__ = has_key(self, glyphName)
__delitem__(self, glyphName)
__getitem__(self, glyphName)
__len__(self)
__setitem__(self, glyphName, glyph)
compile(self, ttFont)
decompile(self, data, ttFont)
fromXML(self, (name, attrs, content), ttFont)
getGlyphID(self, glyphName)
getGlyphName(self, glyphID)
has_key(self, glyphName)
keys(self)
setGlyphOrder(self, glyphOrder)
toXML(self, writer, ttFont, progress=None)

Methods inherited from DefaultTable:
__cmp__(self, other)
__init__(self, tag)
__repr__(self)

Data and other attributes inherited from DefaultTable:
dependencies = []

 
Functions
       
reprflag(flag)

 
Data
        ARGS_ARE_XY_VALUES = 2
ARG_1_AND_2_ARE_WORDS = 1
MORE_COMPONENTS = 32
NON_OVERLAPPING = 16
OVERLAP_COMPOUND = 1024
ROUND_XY_TO_GRID = 4
SCALED_COMPONENT_OFFSET = 2048
SCALE_COMPONENT_OFFSET_DEFAULT = 0
UNSCALED_COMPONENT_OFFSET = 4096
USE_MY_METRICS = 512
WE_HAVE_AN_X_AND_Y_SCALE = 64
WE_HAVE_A_SCALE = 8
WE_HAVE_A_TWO_BY_TWO = 128
WE_HAVE_INSTRUCTIONS = 256
__file__ = '/home/mcfletch/pylive/fontTools/ttLib/tables/_g_l_y_f.pyc'
__name__ = 'fontTools.ttLib.tables._g_l_y_f'
__package__ = 'fontTools.ttLib.tables'
flagOnCurve = 1
flagRepeat = 8
flagReserved1 = 64
flagReserved2 = 128
flagXShort = 2
flagXsame = 16
flagYShort = 4
flagYsame = 32
glyphHeaderFormat = '\n\t\t>\t# big endian\n\t\tnumberOfContours:\th\n\t\txMin:\t\t\t\th\n\t\tyMin:\t\t\t\th\n\t\txMax:\t\t\t\th\n\t\tyMax:\t\t\t\th\n'