Created
June 20, 2017 20:28
-
-
Save gferreira/332162932d8930ad18d19ba56b9875e7 to your computer and use it in GitHub Desktop.
differences between RoboFab and fontParts APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Differences between RoboFab and fontParts APIs | |
==================================================================================================== | |
Robofab fontParts | |
==================================================================================================== | |
OpenFont(ufoPath, showUI=False) OpenFont(ufoPath, showInterface=False) | |
---------------------------------------------------------------------------------------------------- | |
font.guides font.guidelines | |
---------------------------------------------------------------------------------------------------- | |
font.removeGuide font.removeGuideline | |
---------------------------------------------------------------------------------------------------- | |
font.addGuide font.appendGuideline | |
---------------------------------------------------------------------------------------------------- | |
glyph.getLayer('foreground') glyph.getLayer('public.default') | |
---------------------------------------------------------------------------------------------------- | |
glyph.box glyph.bounds | |
---------------------------------------------------------------------------------------------------- | |
glyph.mark glyph.markColor | |
---------------------------------------------------------------------------------------------------- | |
glyph.isCompatible(anotherGlyph, report=True) glyph.isCompatible(anotherGlyph) | |
---------------------------------------------------------------------------------------------------- | |
glyph.autoUnicodes() [not implemented] | |
---------------------------------------------------------------------------------------------------- | |
anchor.position anchor.x, anchor.y | |
---------------------------------------------------------------------------------------------------- | |
*.move *.moveBy | |
---------------------------------------------------------------------------------------------------- | |
*.update *.changed | |
---------------------------------------------------------------------------------------------------- | |
*.skew(value, offset=value) *.skewBy(value, origin=value) | |
---------------------------------------------------------------------------------------------------- | |
## See also | |
- [Create robofab comparison tool](https://github.com/robofab-developers/fontParts/issues/18) | |
- [Compare API](https://github.com/robofab-developers/fontParts/issues/63) | |
- [deprecated.py](https://github.com/robofab-developers/fontParts/blob/FB/Lib/fontParts/base/deprecated.py) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment