Skip to content

Commit

Permalink
Cosmetic issue with listing Available sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed May 16, 2024
1 parent 3af4d3e commit bd91bb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/font-info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
print ('')
print ('Face number: {}'.format(face.num_faces))
print ('Glyph number: {}'.format(face.num_glyphs))
print ('Available sizes: {}'.format(face.available_sizes))
# FT_Bitmap_Size.size is in F26.6. Need to divide by 64:
print ('Available sizes: {}'.format([bitmap_size.size/64 for bitmap_size in face.available_sizes]))
print ('')
print ('units per em: {}'.format(face.units_per_EM))
print ('ascender: {}'.format(face.ascender))
Expand Down

0 comments on commit bd91bb4

Please sign in to comment.