-
Notifications
You must be signed in to change notification settings - Fork 53
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 names fail to match from Figma to AE #61
Comments
Great catch on that. Approved the PR |
@qinyiyao |
Inspect the font name in macOS Font Book: Family Name + |
@qinyiyao Thank you a lot, your response really helped me! I have just renamed Postscript and now AE defines a font correctly! |
Many font names will fail to match in AE and fall back to Myriad Pro. This is due to the simple font name transformation rules used in the plugin.
To start, many fonts do not have PostScript names that perfectly match the their display names. “Arial Regular” on macOS has a PostScript name of
ArialMT
. (At least mine.) Note that: first, theMT
could be the foundry name (Monotype) for disambiguation; second, the “Regular” style name is sometimes omitted since it’s the default weight. Same applies to “IBM Plex Sans Regular”IBMPlexSans
or “Source Sans Pro Italic”SourceSansPro-It
.In addition, there may or may not be issues with other types of characters (:–—&()+", etc.) or non-latin-based characters.
The ideal solution would be to actually pass the source PostScript name from Figma to AE.
I made a tiny fix #60 to deal with font names with multiple spaces in them, but that’s a different problem and it’s still a terrible solution for font name referencing.
To Reproduce
Sketch plugin not tested.
You can also check the correct PostScript name in AE by opening up any expression field, and do the following:
This will prompt you to select a font with 2 dropdowns. Confirming it will put a PostScript name in string inside the expression field.
The text was updated successfully, but these errors were encountered: