kateliev / TypeRig

Proxy API and Font Development Toolkit for FontLab
https://kateliev.github.io/TypeRig/
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

pFont.familyName incorrect #48

Closed hyvyys closed 3 years ago

hyvyys commented 3 years ago
from typerig.proxy import pFont

font = pFont()
print font.familyName

The above actually prints full name (family + style) of the last master. (Unless it's supposed to return the Style Group Name and it's correct?)

For anyone looking here, font.fl.tfn returns what I'm after.

kateliev commented 3 years ago

Thank you @hyvyys, pFont.familyName is proxy of fgFontInfo.familyName and this indicates that the error is more on the FL side.

image

After some tests it seems that I can confirm that behavior; But this does not happen on all families tested?!

Will switch the pFont.familyName to the flPackage.tfn

kateliev commented 3 years ago

Pushed, fixed :)