-
-
Notifications
You must be signed in to change notification settings - Fork 11
Support for web fonts #1
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
Comments
@davelab6: Do any of your Python libraries permit direct modification of woff, woff2, and eot vertical metrics? It doesn't look like we will be able to support this with fontTools from what I can gather. It seems that support for svg has/is very actively fading and many people are dropping these so I didn't intend to support them. |
From @davelab6 in #2 (comment):
From @davelab6 in #2 (comment)
|
From @kenlunde in #2 (comment):
|
I don't understand; these are just compression wrappers, like ZIP. There are, I think, pure python woff and woff2 libraries around, but perhaps not eot. But EOT is now pretty much not needed, along with SVG fonts. |
@davelab6 Thanks Dave. That answers the question. I didn't know if anyone was working directly on these files. Based upon that comment, I gather that all work is done on the ttf or otf file prior to conversion. I am trying to decide how to handle web font metrics support here. |
It seems clear from what Ken and I wrote that in 2016, web fonts metrics are used universally, ie for desktop fonts too. |
@davelab6 agree. didn't mean how to handle them differently, meant whether to support direct modifications to Web font files in cases where a user wants to alter these values (including myself in our own releases). It sounds as though this is not necessary if all post build mods occur in the otf or ttf and then the compression methods are used to generate Web fonts. Didn't know if anyone had a library that automated decompression to a modifiable format then compression back to Web font formats. |
I believe fontTools can open woff2 files natively |
I didn't realize that. Thank you! |
v0.6.0 includes support for line spacing modifications across commonly used web font vertical metrics approaches. It does not currently support direct modification of metrics in eot, woff, or woff2 file types. |
Need to explore the fontTools library support.
Will need to take into account that line spacing may be handled differently in the browser setting, perhaps modify the approach with these file types. From Tim Brown in TypeKit blog comment:
Note TypoLineGap has to be zero comment.
The text was updated successfully, but these errors were encountered: