source-foundry / dehinter Goto Github PK
View Code? Open in Web Editor NEWA tool for the removal of TrueType instruction sets (hints) in fonts
License: Apache License 2.0
A tool for the removal of TrueType instruction sets (hints) in fonts
License: Apache License 2.0
ttfautohint -d
and pyftsubset remove the VDMX table by default. Identified this in the Ubuntu-Regular.ttf font. This should be added. Will include a --keep-vdmx
option to keep the table when needed.
Add options like:
--keep-ltsh
that bypass execution of the default changes associated with the respective tables in dehinted fonts.
The fontTools library is transitioning to Py3.6+ support as of the v4.0.0 library release. Need to bump the min support level to 3.6 from 3.5 here
At current, the GASP table modification appears to change the rangeGaspBehavior to 0x000f, which turns on:
-gridfit
-grayscale
-symmetric gridfit
-symmetric smoothing
My understanding is that this turns on hinting at the full ppem range (with smoothing, and all that).
For a script that is meant to remove all hinting, shouldn't the rangeGaspBehavior be set to 0x000a, which is:
-grayscale
-symmetric smoothing
This way you have full smoothing and the rasterizer doesn't try to apply gridfit when no hinting is present to instruct it how to implement gridfit.
Annotate Python source files with type hints and add mypy static type checks.
TBH I'm not sure who's wrong or right here, just wanted to put this out here as an observation.
https://github.com/khaledhosny/ots/blob/ff09cd0b6b0dd210a4c1bafd61fcbbba21738751/src/maxp.cc#L50
The workaround is to call dehinter with --keep-maxp
.
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
Should dehinter also remove cvar
if dehinting a VF?
The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
$ pyftsubset --help
[...]
Hinting options:
--hinting
Keep hinting [default]
--no-hinting
Drop glyph-specific hinting and font-wide hinting tables, as well
as remove hinting-related bits and pieces from other tables (eg. GPOS).
See --hinting-tables for list of tables that are dropped by default.
Instructions and hints are stripped from 'glyf' and 'CFF ' tables
respectively. This produces (sometimes up to 30%) smaller fonts that
are suitable for extremely high-resolution systems, like high-end
mobile devices and retina displays.
[...]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.