# FontLab Python API (echopy index)

> Classes and functions of FontLab's embedded `fontlab`, `fontgate`, `fontpr` and `FL` modules.
> Generated by fontlab-echopy from its documented stubs; each class line gives a one-line summary.
> Full docstrings and signatures: the `fontlab_echopy/*.pyi` files of the fontlab-echopy package.
> Install fontlab-echopy outside FontLab for completion; inside FontLab the native modules are used.

## fontlab

Python interface for FontLab data objects.

- AccentInfo: Data wrapper
- CurveEx: A single Bézier segment
- ExportControl: Font export configuration
- FaBasicPtr: A single font audit finding
- fgSymbol: A single character identity record
- fgSymbolList: A string of characters
- flAbstractEditor: Inline canvas widget editor
- flAbstractVectorNode: Guideline-anchored nodes
- flAnchor: `flAnchor` is a geometric attachment link — it records a connection between a shape and another object (a…
- flAuditInfo: Represents one finding from FontLab's built-in font audit system
- flAxis: A design axis is one dimension of variation in a variable font
- flBasicTool: Base class for editor tools
- flCanvas: A canvas is one editor window in FontLab — a glyph editor, a metrics window, or a text window
- flContour: A contour is the closed or open path that forms a letter's shape
- flContourInfo: Canvas proxy for a contour
- flEvent: Mouse and keyboard event
- flExpression: Formula string for axis-driven values
- flGlyph: A glyph is your font's record for one character — the letter "A", the numeral "3", an ampersand, or any…
- flGlyphInfo: Canvas proxy for a rendered glyph
- flGraphicsInfo: Canvas-transform-aware info object
- flGuideLine: Guidelines are the non-printing reference lines you draw across your canvas to help align things
- flHintingParameters: PostScript hinting settings
- flInstance: A named instance is a preset — a specific location in design space that you've given a name to, like…
- flItems: `flItems` is FontLab's application-wide event megaphone
- flLayer: In FontLab, a layer is the container inside a glyph that holds the actual drawing for one master
- flLayerAttributes: Data wrapper
- flLayerInfo: Canvas proxy for a layer
- flLocation: A location is a coordinate in design space
- flMarkerPoint: Snap Line Measurement Marker
- flModel: Think of `flModel` as FontLab's type registry — its internal catalogue of every kind of object that can…
- flModelProducer: Clipboard operations
- flMouseEvent: Mouse-event data supplied by the editor, or returned by `flWorkspace.convertMouseEvent(qevent,…
- flNode: If you've ever edited a glyph in FontLab's glyph editor, you've clicked on nodes
- flNodeInfo: Represents one node on the canvas
- flObject: Everything you touch in FontLab — a node, a contour, a shape, a guideline, an anchor, a glyph, a layer, even…
- flObjectsList_flGuideLine_: These are native mutable object-list wrappers, used by APIs such as `flShapeData.includes`
- flObjectsList_flShape_: These are native mutable object-list wrappers, used by APIs such as `flShapeData.includes`
- flPackage: `flPackage` *is* your font file
- flPaper: Metrics view background layer
- flPinPoint: Named anchor for mark positioning
- flPreferences: `flPreferences` gives scripts read and write access to almost every setting in FontLab — the same settings…
- flProperty: Base class for axis-aware attributes
- flPropertyDouble: Scalar axis-driven attribute
- flPropertyPoint: 2-D point axis-driven attribute
- flSearchInfo: Base canvas info object
- flShape: The Element
- flShapeBuilder: Parametric Element Constructor
- flShapeData: The Shared Drawing Record
- flShapeInfo: Represents one `flShape` as displayed on the canvas
- flSnapLine: Guideline snap geometry engine
- flSnapObject: A snap target
- flSnaps: snap object constants
- flStem: Hinting Stem Definition
- flSticker: Canvas Annotation
- flTextBlock: Text layout and editing engine
- flTransform: A transform is a recipe for repositioning, resizing, rotating, or slanting something
- flTTHCommand: A TrueType hinting instruction
- flVectorNode: Guideline-anchored nodes
- flVisualItem: Base class for all canvas objects
- flWorkspace: `flWorkspace` is the FontLab application itself — represented as a Python object
- flZone: A single alignment zone — a band near a metric line used to snap stroke endings consistently
- FontLayer: FontLayer object
- FontMetrics: Vertical metric values for one master
- GlyphComponent: A component reference inside a composite glyph
- Info: Font Info data
- Interval: A parametric range on a contour
- LocationValue: A `LocationValue` is the value stored for a single axis in an `flLocation`
- PaintBrush: Brush settings for drawing tools
- PaintBrushShape: Data wrapper
- SmartCornerParameters: Data wrapper
- TransformFrame: Interactive Bounding Frame
- YPanelManager: PythonQtInstanceWrapper object
- YPanelWidget: PythonQtInstanceWrapper object

- AcceptChanges(clearChangedState: Any=...)
- AllFonts(...)
- ApplicationPath(...)
- CountFonts(...)
- CreatePanel(...)
- CurrentFont(...)
- CurrentGlyph(...)
- GetFileName(open_save: Any, extension: Any, filename: Any, filters: Any)
- GetPathName(...)
- GetProperty(...)
- MainWindow(...)
- PanelManager(...)
- SetCurrentFont(...)
- SetCurrentGlyph(...)
- SetProperty(...)
- TestBuilder(...)
- Update(...)
- UpdateActiveCanvas()
- UpdateAll()
- UpdateGlyphRect(x0: Any, y0: Any, x1: Any, y1: Any)

## fontgate

FontGate Python interface.

- fgAnchor: A font-data anchor with `name`, `x` and `y` attributes
- fgAnchors: A list of anchor objects
- fgAxes: An axes list representation with a `masters` attribute holding the masters (fgMasters)
- fgAxis: An axis
- fgBitmap
- fgBitmaps: A list of bitmap objects
- fgBitmapsData
- fgBrush: A stroke brush
- fgCapParams
- fgCaret: A caret with a string `name` and a coordinate `v` (fgOtValue)
- fgCarets: A list of caret objects
- fgCmapRecord: A cmap record
- fgCMaps: A list of character map objects
- fgCoding: Coding data
- fgColor
- fgComponent: A component
- fgComponents
- fgContour: A contour in the fontgate data model
- fgContours: A list of contour objects
- fgCurve
- fgCuspPoint: A cusp point
- fgCuspPoints: A list of cusp point objects
- fgDesignPosition: A design position whose `data` attribute is a list of doubles
- fgDeviceRecord: A device record with int attributes `ppm` and `correction`
- fgDeviceRecords: A list of device record objects
- fgExtMapIntTofgShape: fgExtMapIntTofgShape dictionary
- fgExtMapUCharToUChar: fgExtMapUCharToUChar dictionary
- fgExtMapUIntToString: fgExtMapUIntToString dictionary
- fgExtMapUShortToShort: fgExtMapUShortToShort dictionary
- fgFlagsDict: bool flags diactionary
- fgFont: A font data object
- fgFontGateData
- fgFontHinting
- fgFontInfo: FontInfo data
- fgFontInfoDict: Font info dictionaries
- fgGaspRecord: A gasp record
- fgGaspRecords: A list of gasp record objects
- fgGlyph: A glyph data object
- fgGlyphData
- fgGlyphDict: Glyph dictionaries
- fgGlyphIDsSet: GlyphIDs set
- fgGlyphs: A list of glyph objects
- fgGlyphsR
- fgGroup: Kerning/Metrics group
- fgGroups: Glyph groups list
- fgGuide: A guide
- fgGuides
- fgHint
- fgHintCommand: A hint command
- fgHintCommands
- fgHints
- fgIntDict: int dictionary
- fgKerning: The kerning table of a font
- fgKerningGroups: Dictionary of kerning groups
- fgKerningObject: One side of a kerning pair: a glyph or a group
- fgKerningObjectPair: A kerning pair made of a `left` and a `right` kerning object, each a glyph or a group, with `asDict` and…
- fgLayer: Math operation: fgLayer + fgLayer fgLayer - fgLayer
- fgLayers
- fgLib: Dictionary with font- or glyph-related data
- fgMapBytes: Raw data dictionary
- fgMaster: A master
- fgMasters: A list of fgMaster objects
- fgMatrix: Math operation: fgMatrix * fgMatrix
- fgMaxP: The maxp table values
- fgMetricsClass: A metrics class
- fgMetricsClasses
- fgNametable: NameTable - unicode->name translation and vice versa
- fgNode: Math operation: fgNode + fgNode fgNode - fgNode fgNode * float
- fgNodes
- fgOpt_AutoMetrics: fgOpt_AutoMetrics options page
- fgOpt_EOTExport: fgOpt_EOTExport options page
- fgOpt_ExpandKerning: fgOpt_ExpandKerning options page
- fgOpt_Font: fgOpt_Font options page
- fgOpt_KerningOptions: fgOpt_KerningOptions options page
- fgOpt_Optimize: fgOpt_Optimize options page
- fgOpt_OTExport: fgOpt_OTExport options page
- fgOpt_OTExportFeaFile: fgOpt_OTExportFeaFile options page
- fgOpt_OTImport: fgOpt_OTImport options page
- fgOpt_T1Autohint: fgOpt_T1Autohint options page
- fgOpt_T1Export: fgOpt_T1Export options page
- fgOpt_T1Import: fgOpt_T1Import options page
- fgOpt_TTAutohint: fgOpt_TTAutohint options page
- fgOpt_TTFAutohint: fgOpt_TTFAutohint options page
- fgOpt_UfoFontExport: fgOpt_UfoFontExport options page
- fgOpt_UfoFontImport: fgOpt_UfoFontImport options page
- fgOpt_VfbExport: fgOpt_VfbExport options page
- fgOpt_VfbImport: fgOpt_VfbImport options page
- fgOpt_WOFFExport: fgOpt_WOFFExport options page
- fgOptions: FontGate options
- fgOtInfo
- fgOTLayout
- fgOtValue: Math operation: fgOtValue + fgOtValue fgOtValue - fgOtValue fgOtValue * float
- fgPackages
- fgPen: A pen with a bool `smooth` attribute
- fgPoint: Math Operations: fgPoint + fgPoint fgPoint - fgPoint fgPoint * fgPoint fgPoint * float - vector product…
- fgPointU: Math Operations: fgPointU + fgPoint/fgPointU fgPointU - fgPoint/fgPointU fgPointU * fgPoint/fgPointU…
- fgRect: Math Operations: fgRect + fgPoint fgRect + fgRect fgRect + float fgRect - fgPoint fgRect - fgRect fgRect -…
- fgRendered
- fgShape: Math Operations: fgShape + fgShape fgShape - fgShape fgShape * float
- fgShapes
- fgStem: A stem described by a string `name`, a float `value` and a `program` dict of int to int
- fgStems
- fgStringDict: string dictionary
- fgTrueTypeData
- fgTrueTypePoint
- fgTrueTypePoints
- fgTTInterpreter
- fgValuesDict: float values dictionary
- fgVdmxRecord
- fgVdmxRecords
- fgVector
- fgVectorBool: [char] vector
- fgVectorChar: [char] vector
- fgVectorDouble: [double] vector
- fgVectorInt: [int] vector
- fgVectorPoint: [fgPoint] vector
- fgVectorUInt16: [uint16_t] vector
- fgVectorUInt32: [uint32t] vector
- fgZone: A zone described by a string `name`, float `position` and `width`, a bool `top` and a `program` dict of int…
- fgZones
- pyfgDataOwnerData: pyfgDataOwnerData objects

## fontpr

FontLab MCP tools for embedded Python.

- Error: Common base class for all non-exit exceptions

- available(...)
- build_glyph(*, glyph_name: str, recipe: str, font_id: int | None=None, font_name: str | None=None, direction: str | None=None, layer_name: str | None=None, replace: bool | None=None, auto_layer: bool | None=None, dry_run: bool | None=None)
- call(name: str, /, **kwargs: Any)
- close_font(*, font_id: int | None=None, font_name: str | None=None, save: bool | None=None)
- compile_features(*, revision: str, font_id: int | None=None, font_name: str | None=None, dry_run: bool | None=None)
- delete_all_kerning_classes(*, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, all_masters: bool | None=None, undo: bool | None=None)
- delete_all_kerning_pairs(*, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, all_masters: bool | None=None, undo: bool | None=None)
- delete_kerning_class(*, class_name: str, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, undo: bool | None=None)
- delete_kerning_pair(*, left: str, right: str, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, undo: bool | None=None)
- edit_glyph_components(*, glyph_name: str, layer_name: str, operations: list[dict[str, Any]], font_id: int | None=None, font_name: str | None=None, dry_run: bool | None=None)
- edit_glyph_nodes(*, glyph_name: str, operations: list[dict[str, Any]], font_id: int | None=None, font_name: str | None=None, layer_name: str | None=None, dry_run: bool | None=None)
- edit_layer_hints(*, glyph_name: str, operations: list[dict[str, Any]], font_id: int | None=None, font_name: str | None=None, layer_name: str | None=None, dry_run: bool | None=None)
- explain(*, query: str | None=None, id: str | None=None, section: str | None=None, limit: int | None=None, max_chars: int | None=None)
- geometry(*, op: str, a: dict[str, Any] | None=None, b: dict[str, Any] | None=None, points: list[dict[str, Any]] | None=None, t: float | None=None)
- get_active_font()
- get_active_glyphs()
- get_current_glyphs()
- get_features(*, font_id: int | None=None, font_name: str | None=None, output_path: str | None=None, format: str | None=None, overwrite: bool | None=None)
- get_font_hinting(*, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, kind: str | None=None, offset: int | None=None, limit: int | None=None)
- get_font_info(*, font_id: int | None=None, font_name: str | None=None, detail: str | None=None, master_name: str | None=None, kind: str | None=None, offset: int | None=None, limit: int | None=None)
- get_font_metrics(*, font_id: int | None=None, font_name: str | None=None)
- get_glyph(*, glyph_name: str, detail: str | None=None, layer_name: str | None=None, mark_glyph: str | None=None, component_index: int | None=None, nodes_format: str | None=None, font_id: int | None=None, font_name: str | None=None)
- get_glyph_metrics(*, glyph_name: str, font_id: int | None=None, font_name: str | None=None)
- get_glyph_nodes(*, glyph_name: str, font_id: int | None=None, font_name: str | None=None, layer_name: str | None=None, shape_index: int | None=None, contour_index: int | None=None)
- get_kerning_pair(*, left: str, right: str, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None)
- get_layer_hints(*, glyph_name: str, font_id: int | None=None, font_name: str | None=None, layer_name: str | None=None, offset: int | None=None, limit: int | None=None, include_tth: bool | None=None)
- get_lookups(*, font_id: int | None=None, font_name: str | None=None, output_path: str | None=None, overwrite: bool | None=None)
- get_mcp_settings()
- get_opentype_tables(*, font_id: int | None=None, font_name: str | None=None, tags: list[Any] | None=None, include_data: bool | None=None, output_path: str | None=None, format: str | None=None, overwrite: bool | None=None)
- get_preferences(*, query: str | None=None, keys: list[str] | None=None, offset: int | None=None, limit: int | None=None)
- get_vfj_schema(*, topic: str | None=None, include_examples: bool | None=None, include_dependencies: bool | None=None)
- list_actions(*, query: str | None=None)
- list_aidus_files(*, root: str | None=None, path: str | None=None, offset: int | None=None, limit: int | None=None)
- list_fonts()
- list_glyphs(*, font_id: int | None=None, font_name: str | None=None, detail: str | None=None, query: str | None=None, limit: int | None=None, offset: int | None=None, min_contour_count: int | None=None, max_contour_count: int | None=None, min_component_count: int | None=None, min_bottom: float | None=None, max_bottom: float | None=None, has_unicode: bool | None=None, script: str | None=None)
- list_kerning_classes(*, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None)
- list_kerning_pairs(*, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, left: str | None=None, right: str | None=None, limit: int | None=None, offset: int | None=None)
- list_tools()
- new_font(*, family_name: str | None=None, style_name: str | None=None, encoding: str | None=None)
- open_font(*, path: str)
- read_aidus_file(*, root: str, path: str, offset: int | None=None, limit: int | None=None)
- rename_kerning_class(*, class_name: str, new_name: str, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, undo: bool | None=None)
- run_actions(*, actions: list[Any], glyph_names: list[Any] | None=None, layer_mode: str | None=None, undo: bool | None=None, font_id: int | None=None, font_name: str | None=None)
- save_font(*, font_id: int | None=None, font_name: str | None=None, path: str | None=None, format: str | None=None, overwrite: bool | None=None)
- set_active_font(*, font_id: int | None=None, font_name: str | None=None)
- set_active_glyph(*, glyph_name: str, font_id: int | None=None, font_name: str | None=None)
- set_features(*, version: int, revision: str, font_id: int | None=None, font_name: str | None=None, data: dict[str, Any] | None=None, data_path: str | None=None, format: str | None=None, validate: bool | None=None, dry_run: bool | None=None)
- set_font_info(*, font_id: int | None=None, font_name: str | None=None, font_info: dict[str, Any] | None=None, master_name: str | None=None, all_masters: bool | None=None, scale_upm: bool | None=None)
- set_font_metrics(*, font_id: int | None=None, font_name: str | None=None, ascender: float | None=None, descender: float | None=None, x_height: float | None=None, cap_height: float | None=None, line_gap: float | None=None, italic_angle: float | None=None, weight: float | None=None, width: float | None=None)
- set_glyph(*, glyph_name: str, glyph_data: dict[str, Any], create: bool | None=None, dry_run: bool | None=None, font_id: int | None=None, font_name: str | None=None)
- set_glyph_anchors(*, glyph_name: str, anchors: list[dict[str, Any]], font_id: int | None=None, font_name: str | None=None, layer_name: str | None=None)
- set_glyph_metrics(*, glyph_name: str, lsb: float | None=None, rsb: float | None=None, advance_width: float | None=None, metrics_left: str | None=None, metrics_right: str | None=None, metrics_width: str | None=None, font_id: int | None=None, font_name: str | None=None)
- set_kerning_class(*, class_name: str, glyph_names: list[Any] | None=None, add_glyph_names: list[Any] | None=None, remove_glyph_names: list[Any] | None=None, left: bool | None=None, right: bool | None=None, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, undo: bool | None=None)
- set_kerning_pair(*, left: str, right: str, value: float, font_id: int | None=None, font_name: str | None=None, master_name: str | None=None, undo: bool | None=None)
- set_lookups(*, version: int, revision: str, font_id: int | None=None, font_name: str | None=None, data_path: str | None=None, data: dict[str, Any] | None=None, dry_run: bool | None=None)
- set_mcp_settings(*, patch: dict[str, Any])
- set_notepad_content(*, text: str | None=None, document: dict[str, Any] | None=None)
- set_preferences(*, patch: dict[str, Any])
- write_aidus_file(*, root: str, path: str, content: str, overwrite: bool | None=None)

## FL

old FL-Python interface for FontGate.

- Anchor: Anchor - class to represent Anchor point  Integer values are accepted as coordinates
- Canvas: Canvas - class to represent screen paint area and operations  This class can perform automatic coordinates…
- CmapTable: CmapTable - class to represent custom 'cmap' table record  Refer to OpenType specification for information…
- Component: Component - class to represent glyph component  Components are defined by the glyph index which they…
- Dialog: Dialog - class to represent Dialog  Note that objects of this class cannot be created explicitly, they are…
- Encoding: Encoding
- EncodingRecord: EncodingRecord
- Feature: Feature - class to represent OpenType feature-definition record
- Features: OT Features array
- Font: Font - base class to represent font
- Glyph: Glyph - class to represent glyph
- Guide: Guide - class to represent guideline  This class is Multiple Master - compatible
- Hint: Hint - class to represent hint  This class is Multiple Master - compatible
- Image: Image - class to represent bitmap image
- KerningArray
- KerningPair: KerningPair - class to represent kerning pair  This class is Multiple Master - compatible
- Link: Link - class to represent link
- Matrix: Matrix - class to represent planar transformations  Matrix is used to perform following transformations: x1…
- Node: Node - class to represent node  This class is Multiple Master - compatible
- Point: Point - base class to represent point  Integer or float values are accepted as coordinates
- Rect: Rect - base class to represent rectangle  Integer or float values are accepted as coordinates
- TrueTypeTable: TrueTypeTable - class to represent custom OpenType table
- TTGasp: TTGasp
- TTPoint: TTPoint - class to represent TrueType points  All coordinates in TTPoint class are set in 10.6 fixed-point…
- TTVdmx: TTVdmx
- Uni
- VSSGaspArray: VSSGaspArray
- VSSTTPointArray: VSSTTPointArray
- VSSVdmxArray: VSSVdmxArray
- WeightVector: WeightVector
