chiark / gitweb /
Generate stem hints
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 9 Nov 2024 23:51:36 +0000 (23:51 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 14 Nov 2024 22:27:18 +0000 (22:27 +0000)
commit4254bff53ae9367bf09302ebecded363617af322
tree2713298d7e79391fc4fcd7dbdb5f925bb7e478af
parente572e11b1257f11552435ab51c417b59f94eb291
Generate stem hints

These are generated from the glyph bitmap by a similar
pattern-matching arrangement that generates the outline.  Then, like
emit_path(), there's an emit_hints() that turns them into valid
charstrings.  The handling of overlapping hints could be cleverer: at
the moment we emit the leftmost-possible set of hints, but we collect
a histogram of where hints are needed so could instead emit the most
useful.  Or even try to do hint substitution.

This makes the Bedstead Web page at 90% zoom much prettier than
before, but it's not as good as the FontForge auto-hinter managed.
Edge hints and counter hints will probably help.
bedstead.c