Giter VIP home page Giter VIP logo

Comments (11)

chrissimpkins avatar chrissimpkins commented on September 25, 2024

@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.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

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.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

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.

davelab6 avatar davelab6 commented on September 25, 2024

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.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

@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.

davelab6 avatar davelab6 commented on September 25, 2024

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.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

@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.

davelab6 avatar davelab6 commented on September 25, 2024

I believe fontTools can open woff2 files natively

from font-line.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

I didn't realize that. Thank you!

from font-line.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

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.

chrissimpkins avatar chrissimpkins commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.