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
enable custom fonts in polygon text #259
Comments
@spauka worked on this for phidl |
Hi @tvt173, The implementation for PHIDL is here https://github.com/amccaugh/phidl/blob/master/phidl/font.py (Docs here: https://phidl.readthedocs.io/en/latest/geometry_reference.html#Text) Font reading is performed using freetype-py, and once this is done you would need a curve implementation that supports cubic or quadratic bezier curves. It would be reasonable straightforward to port to use GDSPY polygons/curves (which do support the right curves) rather than PHIDLs |
very cool, @spauka ! thanks for sharing. will re-share this on the original gdspy ticket |
it would be nice if the user could easily load a custom font to use for polygon text.
currently the text() function references private variables for character glyphs, widths, and indents. it would be nice if it was easier to do this, maybe from a library of gds characters.
relevant to
heitzmann/gdspy/issues/207
The text was updated successfully, but these errors were encountered: