This page collects all the deprecated APIs and their suggested replacement.

Robofab vs FontParts

A ton of stuff changed while moving from robofab to fontParts. We have an entire page dedicated to that: RoboFab vs. FontParts APIs

DialogKit

Deprecated Replacement
dialogKit.Button vanilla.Button
dialogKit.PopUpButton vanilla.PopUpButton
dialogKit.List vanilla.List
dialogKit.EditText vanilla.EditText
dialogKit.TextBox vanilla.TextBox
dialogKit.CheckBox vanilla.CheckBox
dialogKit.HorizontalLine vanilla.HorizontalLine
dialogKit.VerticalLine vanilla.VerticalLine
dialogKit.GlyphLineView mojo.UI.MultiLineView
dialogKit.GlyphView mojo.glyphPreview

RoboFont Misc

Deprecated Replacement
GlyphViewDisplaySettings setGlyphViewDisplaySettings
*showUI *showInterface
mojo.events.BezierDrawingTool mojo.events.DrawingTool
buildAdditionContectualMenuItems buildAdditionContextualMenuItems
DecomposePointPen from mojo.pens import DecomposePointPen
mojo.drawingTools.dashLine mojo.drawingTools.lineDash
EditIntStepper EditStepper
SliderEditIntStepper SliderEditStepper
AllFonts(*sortOptions) AllFonts(sortOptions=['familyName', 'styleName'])

Smart Sets

Deprecated Replacement
SmartSet mojo.SmartSet.SmartSet
addSmartSet mojo.SmartSet.addSmartSet
removeSmartSet mojo.SmartSet.removeSmartSet
getSmartSets mojo.SmartSet.getSmartSets
setSmartSets mojo.SmartSet.setSmartSets
updateAllSmartSets mojo.SmartSet.updateAllSmartSets
selectSmartSets mojo.SmartSet.selectSmartSets

RoboFont FontParts Extension

Deprecated Replacement
font.generate(useMacRoman=True) useMacRoman argument has been removed without replacement
font.guides font.guidelines
glyph or font.removeGuide() glyph or font.removeGuideline()
glyph or font.clearGuides() glyph or font.clearGuidelines()
glyph or font.addGuide() glyph or font.appendGuideline()
point.type = offCurve point.type = offcurve
point.type = onCurve point.type = oncurve
Image.box Image.bounds
Contour.selection Contour.selectedPoints
Glyph.layerName Glyph.layer.name
Glyph.getGlyph(glyphName) Glyph.font[glyphName]
Glyph.selection Glyph.selectedPoints
Layer.setDisplayOption(key, value) Layer.setDisplayOption({key: value})
Font.showUI() Font.openInterface()
Font.UIdocument() Font.shallowDocument()
Font.box Font.bounds
Font.setColorForLayer(layerName, (r, g, b, a)) Font.getLayer(layerName).color = r, g, b, a
Font.getColorForLayer(layerName) Font.getLayer(layerName).color
Font.getLayer(layerName).setDisplayOption(option, value) Font.getLayer(layerName).setDisplayOption({key, value})
Font.compileGlyph(...) glyphConstruction
Font.templateSelection Font.templateSelectedGlyphNames
Glyph.preferredSegmentType No replacement, RF4 supports both cubics and quadratics in the same glyph

Defcon

Deprecated Replacement
defcon.pens.reverseContourPointPen from fontTools.pens.pointPen import ReverseContourPointPen

ufo2fdk

Deprecated Replacement
ufo2fdk.pens.t2CharStringPen from fontTools.pens.t2CharStringPen import T2CharStringPen
Last edited on 01/09/2021