outlineOTF

class ufo2fdk.outlineOTF.OutlineOTFCompiler(font, path, glyphOrder=None)

This object will create a bare-bones OTF-CFF containing outline data and not much else. The only external method is ufo2fdk.tools.outlineOTF.compile().

When creating this object, you must provide a font object and a path indicating where the OTF should be saved. Optionally, you can provide a glyphOrder list of glyph names indicating the order of the glyphs in the font.

compile()

Compile the OTF.

makeFontBoundingBox()

Make a bounding box for the font.

This should not be called externally. Subclasses may override this method to handle the bounds creation in a different way if desired.

makeUnicodeToGlyphNameMapping()

Make a unicode : glyph name mapping for the font.

This should not be called externally. Subclasses may override this method to handle the mapping creation in a different way if desired.

makeMissingRequiredGlyphs()

Add space and .notdef to the font if they are not present.

This should not be called externally. Subclasses may override this method to handle the glyph creation in a different way if desired.

makeOfficialGlyphOrder(glyphOrder)

Make a the final glyph order.

This should not be called externally. Subclasses may override this method to handle the order creation in a different way if desired.

getCharStringForGlyph(glyph, private, globalSubrs)

Get a Type2CharString for the glyph

This should not be called externally. Subclasses may override this method to handle the charstring creation in a different way if desired.

setupTable_head()

Make the head table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_name()

Make the name table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_maxp()

Make the maxp table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_cmap()

Make the cmap table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_OS2()

Make the OS/2 table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_hmtx()

Make the hmtx table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_hhea()

Make the hhea table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_post()

Make the post table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupTable_CFF()

Make the CFF table.

This should not be called externally. Subclasses may override or supplement this method to handle the table creation in a different way if desired.

setupOtherTables()

Make the other tables. The default implementation does nothing.

This should not be called externally. Subclasses may override this method to add other tables to the font if desired.