typerig.proxy.fl.objects.font.pFont
pFont
A Proxy Font representation of Fonlab fgFont and flPackage.
Constructor: pFont(None) : Default represents the current glyph and current font pFont(fgFont) : Creates a pFont object from FontGate fgFont object pFont(file_path) : Loats a existing font form file_path (str) and creates a pFont object
Source bases
object(not resolved from selected source)
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
OTfullName |
attribute | (self) |
|
PSfullName |
attribute | (self) |
|
__init__ |
function | (self, font=None) |
|
__repr__ |
function | (self) |
|
addEmptyMaster |
function | (self, master_name, location_dict=None) |
|
addGlyph |
function | (self, glyph) |
Adds a Glyph (fgGlyph or flGlyph) to font |
addGlyphList |
function | (self, glyphList) |
Adds a List of Glyphs [fgGlyph or flGlyph] to font |
addGuideline |
function | (self, flGuide) |
Adds a guideline (flGuide) to font guidelines |
addOTgroup |
function | (self, groupName, glyphList) |
|
addSynthMaster |
function | (self, source_location_dict, new_location_dict, new_master_name=None, deactivate_master=True) |
Adds synthetic master to font |
addSynthMasters |
function | (self, synth_masters_cfg) |
Adds multiple synthetic masters to font. |
addZone |
function | (self, position, width, layer=None) |
A very dirty way to add a new Zone to Font |
add_kerning_group |
function | (self, key, glyphNameList, type, layer=None) |
Adds a new group to fonts kerning groups. |
alternates |
function | (self, namesOnly=False) |
Returns all alternate characters (list[fgGlyph]) |
axes |
function | (self) |
|
clearFeatures |
function | (self) |
|
clearGuidelines |
function | (self) |
Removes all font guidelines |
copyMaster |
function | (self, new_master_name, new_location_dict={}, source_master_name=None, source_package=None) |
|
delFeature |
function | (self, tag) |
|
delGuideline |
function | (self, flGuide) |
Removes a guideline (flGuide) from font guidelines |
dict_to_kerning_groups |
function | (self, groupDict, layer=None) |
|
duplicateGlyph |
function | (self, src_name, dst_name, dst_unicode=None, options={'out': True, 'gui': True, 'anc': True, 'lsb': True, 'ad… |
Duplicates a glyph and adds it to the font. |
familyName |
attribute | (self) |
|
figures |
function | (self, namesOnly=False) |
Returns all uppercase characters (list[fgGlyph]) |
findShape |
function | (self, shapeName, master=None, deep=True) |
Search for element (flShape) in font and return it |
fl_kerning_groups |
function | (self, layer=None) |
|
fl_kerning_groups_to_dict |
function | (self, layer=None) |
|
fontMetrics |
function | (self) |
Returns pFontMetrics Object with getter/setter functionality |
fontMetricsInfo |
function | (self, layer) |
Returns Font(layer) metrics no matter the reference. |
font_lib |
attribute | (self) |
|
generateInstance |
function | (self, location_dict, round_coordinates=True) |
|
getFeaPrefix |
function | (self) |
|
getFeature |
function | (self, tag) |
|
getFeatureTags |
function | (self) |
|
getFeatures |
function | (self) |
|
getGlyphNameDict |
function | (self) |
|
getGlyphNames |
function | (self) |
|
getGlyphUnicodeDict |
function | (self, encoding='utf-8') |
|
getItalicAngle |
function | (self) |
|
getOTgroups |
function | (self) |
|
getSelectedIndices |
function | (self) |
|
getZones |
function | (self, layer=None, HintingDataType=0) |
Returns font alignment (blue) zones (list[flGuideline]). |
glyph |
function | (self, glyph, extend=None) |
Return TypeRig proxy glyph object (pGlyph) by index (int) or name (str). |
glyphs |
function | (self, indexList=[], extend=None) |
Return list of FontGate glyph objects (list[fgGlyph]). |
guidelines |
function | (self, hostInf=False, fontgate=False) |
Return font guidelines. |
hasFeature |
function | (self, tag) |
|
hasGlyph |
function | (self, glyphName) |
|
hasMaster |
function | (self, layerName) |
|
hinting |
function | (self) |
Returns fonts hinting |
info |
attribute | (self) |
|
instances |
function | (self) |
|
italic_angle |
attribute | (self) |
|
kerning |
function | (self, layer=None) |
Return the fonts kerning object (fgKerning) no matter the reference. |
kerning_dump |
function | (self, layer=None, mark_groups='@', pairs_only=False) |
Dump layer kerning to simple tuples. |
kerning_groups |
function | (self, layer=None) |
Return the fonts kerning groups object (fgKerningGroups) no matter the reference. |
kerning_groups_to_dict |
function | (self, layer=None, byPosition=False, sortUnicode=False) |
Return dictionary containing kerning groups. |
kerning_to_list |
function | (self, layer=None) |
|
ligatures |
function | (self, namesOnly=False) |
Returns all ligature characters (list[fgGlyph]) |
lowercase |
function | (self, namesOnly=False) |
Returns all uppercase characters (list[fgGlyph]) |
masters |
function | (self) |
|
name |
attribute | (self) |
|
newGlyph |
function | (self, glyph_name, layers=[], unicode_int=None) |
Creates new glyph and adds it to the font. |
newGlyphFromRecipe |
function | (self, glyph_name, recipe, layers=[], unicode_int=None, rtl=False) |
Generate new glyph (glyph_name) using String Recipe (recipe). |
newKernPair |
function | (self, glyphLeft, glyphRight, modeLeft, modeRight) |
|
newOTgroup |
function | (self, groupName, glyphList) |
|
pGlyphs |
function | (self, fgGlyphList=[]) |
Return list of TypeRig proxy Glyph objects glyph objects (list[pGlyph]). |
path |
attribute | (self) |
|
ps_stems |
attribute | (self) |
|
remove_kerning_group |
function | (self, key, layer=None) |
Remove a group from fonts kerning groups at given layer. |
rename_kerning_group |
function | (self, oldkey, newkey, layer=None) |
Rename a group in fonts kerning groups at given layer. |
resetStems |
function | (self, stems_horizontal=False, type_TT=False) |
|
reset_kerning_groups |
function | (self, layer=None) |
|
selectGlyphs |
function | (self, glyphNameList) |
|
selectedGlyphs |
function | (self, extend=None) |
Return TypeRig proxy glyph object for each selected glyph |
selected_pGlyphs |
function | (self) |
Return TypeRig proxy glyph object for each selected glyph |
setFeaPrefix |
function | (self, feaString) |
|
setFeature |
function | (self, tag, feaString) |
|
setSelectedIndices |
function | (self, indList) |
|
setStem |
function | (self, stem_value, stem_name='', stem_is_horizontal=False, stem_type_TT=False, layer=None) |
|
setZones |
function | (self, fontZones, layer=None) |
|
symbol |
function | (self, gID) |
Return fgSymbol by glyph index (int) |
symbols |
function | (self) |
Return list of FontGate symbol objects (list[fgSymbol]). |
tt_stems |
attribute | (self) |
|
unselectAll |
function | (self) |
|
update |
function | (self) |
|
updateObject |
function | (self, flObject, undoMessage='TypeRig', verbose=True) |
Updates a flObject sends notification to the editor as well as undo/history item. |
uppercase |
function | (self, namesOnly=False) |
Returns all uppercase characters (list[fgGlyph]) |
zonesFromTuples |
function | (self, zoneTupleList, layer=None, forceNames=False) |
|
zonesToTuples |
function | (self, layer=None, HintingDataType=0) |