-
Notifications
You must be signed in to change notification settings - Fork 44
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
Matching TTF fonts isn't working well #391
Closed
1 of 2 tasks
Labels
ETS Backlog
Good issue for ETS team members to look at
Comments
It'll take some time for this to bubble out, but: ╰$ edm run -- ipython
Python 3.6.9 |Enthought, Inc. (x86_64)| (default, Feb 25 2020, 20:28:43)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from kiva.fonttools import Font
In [2]: Font("Times New Roman", style=0).findfont()
Out[2]: '/Library/Fonts/Times New Roman.ttf'
In [3]: Font("Times New Roman", style=1).findfont()
Out[3]: '/Library/Fonts/Times New Roman Bold.ttf'
In [4]: Font("Times New Roman", style=2).findfont()
Out[4]: '/Library/Fonts/Times New Roman Italic.ttf'
In [5]: Font("Times New Roman", style=3).findfont()
Out[5]: '/Library/Fonts/Times New Roman Bold Italic.ttf' |
There are still issues with parsing of the styling information. #605 only covered the face index bits of TTC files. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Several problems with the algorithm:
The text was updated successfully, but these errors were encountered: