Fixing Cousine from ttf-google-webfonts
This refers to the latest ttf-google-webfonts aur package (version: 2369-1, revision: f50f26f0c77c).
Problem #1: tilde character looks like a dash when font size is less than 10
Problem #2: semicolon glyph is missing
I’ve entered a bug report here
Fix:
- Download latest files from the source:
https://googlefontdirectory.googlecode.com/hg/cousine/src/ - Install fontforge
# pacman -S fontforge
- Open
Cousine-Regular.ttfinfontforge - Element -> Font Info -> PS Names
- Change font name to distinguish it from the ttf-google-webfonts package
Fontname: CousineRegen Family Name: Cousine Regen Name of Humans: Cousine Regen
- OK -> Change
- File -> Generate Fonts -> Truetype -> untick Validate before saving -> Save
- Repeat 3-7 for the bold, italic and boldItalic ttf files
- Add
CousineRegen*.ttfto a directory in your FontPath - Refresh font cache
# fc-cache -fv
tl;dr: Source ttf fonts provide missing glyph. Regenerating fonts in fontforge fixes tilde character at low fontsizes.
Before vs after:


