Skip to content

Add straight spur variant for lowercase a #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from

Conversation

nathanielevan
Copy link

These patches may replace the default, curved-spur lowercase 'a' shape (and its diacritical variants) of Hack v2+ with a straight-spur variant found in version 1 of Hack (and the default 'a' shape in DejaVu Sans Mono).

Hack v3.003+ Straight spur patch
scshot-140625-194451 scshot-140625-194553

Admittedly a minor design alteration, this patch has a side effect of fixing the bloated 'a' bowl that ttfautohint produces at size 12ppem (9pt at 96dpi) with the default curved-spur variant. Manual hinting should take care of this issue, but as far as I understand it, using the hintslight setting on fontconfig implicitly uses freetype's autohinter [1][2] hence foregoing the font's built-in hinting instructions. Here's a comparison of the hinting result at 12ppem:

Hack v3.003+ Straight spur patch
scshot-140625-195009 scshot-140625-195239

I don't have access to Glyphs.app, however—this patch was hand-typed in a text editor and previewed in FontForge, hence its results may be rudimentary and need further fine-tuning. Let me know what you think, either way.

This commit adds the straight spur variant of U+0061 ('a').
This commit adds the straight spur variant of U+00AA ('ª').
This commit adds the straight spur variant of U+00E0 ('à').
This commit adds the straight spur variant of U+00E1 ('á').
This commit adds the straight spur variant of U+00E2 ('â').
This commit adds the straight spur variant of U+00E3 ('ã').
This commit adds the straight spur variant of U+00E4 ('ä').
This commit adds the straight spur variant of U+00E5 ('å').
This commit adds the straight spur variant of U+0101 ('ā').
This commit adds the straight spur variant of U+0103 ('ă').
This commit adds the straight spur variant of U+0105 ('ą').
This commit adds the straight spur variant of U+0430 ('а').
This commit adds the straight spur variant of U+04D1 ('ӑ').
This commit adds the straight spur variant of U+04D3 ('ӓ').
Apparently the order of the points matters for ttfautohint, and to fix
the bloated 'a' bowl on this glyph, the outer outline has to start from
point (1062, 639). Not sure why either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant