Post #1491234
2026-04-17 06:47 UTC
Replies (4)
-
@frankrolf@typo.social 2026-04-17 07:34
@paulvanderlaan I would assume tx can do that?
-
@jlarmstrongiv@typo.social 2026-04-17 07:45
@paulvanderlaan Try fonttools: ``` pyftsubset MyFont.otf \ --output-file=dehinted.otf \ --glyphs-file=<(python3 -c "from fontTools.ttLib import TTFont; print('\n'.join(TTFont('MyFont.otf').getGlyphOrder()))") \ --no-hinting \ --desubroutinize \ --retain-gids \ --layout-features='*' \ --name-IDs='*' \ --notdef-outline \ --glyph-names \ --no-prune-unicode-ranges \ --no-prune-codepage-ranges ```
-
@justvanrossum@typo.social 2026-04-17 09:12
@paulvanderlaan "fonttools subset" has a `--no-hinting` option that promises to drop all hints.
-
@khaled@typo.social 2026-04-18 00:09
@paulvanderlaan FontTools cffLib has a remove_hints() function, but it is not exposed to any dedicated command line tool option (it is used by the subsetter, for instance). Should be a few lines script to use it.