Giter Club home page Giter Club logo

Comments (6)

chrissimpkins avatar chrissimpkins commented on June 14, 2024

Thanks for the report!

I don't recall the approach here off the top of my head but I attempted to RE ttfautohint -d and may well have missed some parts of the dehinting approach. Do you know how ttfa -d handles it?

from dehinter.

aaronbell avatar aaronbell commented on June 14, 2024

It appears that ttfautohint -d modifies the GASP table to match what your code does. However, I suspect that this not because it is making an intelligent decision about what is best for an unhinted font, and instead because it always sets the GASP table when tthautohint runs.

In the ttfautohint code, I found:

The font's `gasp`
 *     table is set up to always use grayscale rendering with grid-fitting
 *     for standard hinting, and symmetric grid-fitting and symmetric
 *     smoothing for horizontal subpixel hinting (ClearType).

I could not find any references anywhere to GASP table modifications in relation to dehinting.

In a discussion that I had with Mike Duggan a year or so ago, "when not hinting, we want the GASP set to use full ysmoothing and no hinting." Given that, I think that you probably only want bit 2 and 4, thus disabling any gridfit.

from dehinter.

chrissimpkins avatar chrissimpkins commented on June 14, 2024

Agree! Let's do the right thing. Interested in submitting a PR?

from dehinter.

aaronbell avatar aaronbell commented on June 14, 2024

Done!

from dehinter.

chrissimpkins avatar chrissimpkins commented on June 14, 2024

Ty! I'll update the CI tests and get this merged. Much appreciated!!

from dehinter.

chrissimpkins avatar chrissimpkins commented on June 14, 2024

changes merged to the master branch and will be released in dehinter v2.0.0

from dehinter.

Related Issues (10)

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.