Comments (11)
@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 font-line.
From @davelab6 in #2 (comment):
no fonts distributed for download and desktop use by Google Fonts are different to those served to web browsers.
From @davelab6 in #2 (comment)
the conclusion is that each of the 3 sets of ascent/decent values should be the same, the ymax and ymin of the family, and both linegaps should be zero.
from font-line.
From @kenlunde in #2 (comment):
Someone else at Adobe can correct me if I am wrong, but we prefer to have uniform vertical metrics for web and desktop use.
from font-line.
Do any of your Python libraries permit direct modification of woff, woff2, and eot vertical metrics?
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.
from font-line.
@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.
from font-line.
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.
from font-line.
@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.
from font-line.
I believe fontTools can open woff2 files natively
from font-line.
I didn't realize that. Thank you!
from font-line.
Refactoring the percent command to support the approach @davelab6 recommended (TypoAsc/Desc|hheaAsc/Desc|winAsc/Desc equal) when designer used it. Also addresses #6.
from font-line.
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.
from font-line.
Related Issues (20)
- Fix version string reporting in report command HOT 1
- In `modify_linegap_percent()`, shouldn't all the `int()` functions be `round()` instead?
- Add support for Markdown formatted metrics list
- Add support for JSON formatted metrics standard output
- Fix License link in ToC
- Better error handling? Crashes when an attribute is not present HOT 12
- Add test font for missing attribute issue
- pip install fails due to permission error HOT 2
- shebang issue HOT 4
- Eliminate Python 2.7 support
- font-line will be upgrading to Py3.6+ support only! HOT 1
- Option to modify ┬ │ ┼ ┴ ├ ┤┘└┌ ┐ glyph heights HOT 7
- Font weight changed after changing the interline spacing HOT 16
- Dependabot couldn't authenticate with https://pypi.python.org/simple/ HOT 1
- Add metrics warning to report tool for values that values fall within yMin / yMax HOT 1
- Allow negative percents HOT 10
- Percent command does not properly calculate line spacing when fonts define TypoAscender + TypoDescender > UPM HOT 13
- Report data modification and writing back to fontfile! HOT 6
- Add an option to change font family name and/or id HOT 17
- Capital height and X height in Metrics Report. Feasible? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-line.