Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font.compileGlyph is missing #81

Closed
gferreira opened this issue Sep 28, 2017 · 7 comments
Closed

font.compileGlyph is missing #81

gferreira opened this issue Sep 28, 2017 · 7 comments
Labels

Comments

@gferreira
Copy link
Contributor

this was quite useful for building accented glyphs using anchors… can we add it?

# old RoboFab code, doesn't work in fontParts

f = CurrentFont()

accentsDict = {
    'Aacute' : ['A', [('acute', 'top')]],
    'ccedilla : ['c', [('cedilla 'bottom')]],
}

for accentedGlyph, (baseGlyph, accents) in accentsDict.items():
    f.compileGlyph(accentedGlyph, baseGlyph, accents)
@typemytype
Copy link
Member

+1

@typesupply
Copy link
Member

This always seemed very limited to me. Maybe if the construction format was more robust it could come back. @typemytype didn't you do some work on a better system?

@typemytype
Copy link
Member

@gferreira
Copy link
Contributor Author

GlyphConstruction is great, I’ve used it in recent projects.

Still, having f.compileGlyph would be nice for compatibility with older scripts.

@benkiel
Copy link
Member

benkiel commented Jan 30, 2018

@typemytype should we put GlyphConstruction into FontParts? Possible to map compileGlyph to it, then also let folks use it's more expansive features?

@typemytype
Copy link
Member

That is what will happens inside the next version of RF...

For that reason GlyphConstruction is now a package that can be installed

@benkiel
Copy link
Member

benkiel commented Jan 30, 2018

compileGlyph was too limited, it is deprecated and removed. Will throw a error. Things should use GlyphConstruction or their own method for doing something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants