dy / wavefont

Typeface for rendering waveform/data
https://dy.github.io/wavefont/scripts/
SIL Open Font License 1.1
416 stars 7 forks source link

Shift-overlap glyphs strategy #28

Closed dy closed 3 years ago

dy commented 3 years ago

Tall glyphs can be composed of 2..N smaller glyphs with overlay as components. It doesn't seem to create any antialiasing problems, but potentially can reduce font size. If masters can exclude glyphs ref - size can be reduced by axes even more.

dy commented 3 years ago

Likely up to 40 that will be full set of rectangles, but after that it's possible to overlay, say, 40+[20,21...] or 40+40↑[1,2,...]. The second can cover a wide set of more precise shift characters (say 1 thousand values).

dy commented 3 years ago

2-fold saves 12kb from TTF (39kb → 27kb).

dy commented 3 years ago

OTF has rendering issues though: image. Also OTF gains weight: 35kb → 48kb

dy commented 3 years ago

Expensive & inefficient. Cap-components are more reasonable.