zlacker

[parent] [thread] 2 comments
1. jansan+(OP)[view] [source] 2023-08-30 06:49:23
Should be no problem. GSUB lookup type 4.1* uses a uint16 to store the number of ligatures, so 65000 ligatures should be feasible. To store the actual glyphs, 32bit offsets are used, so you theoretically have a 2GByte of memory available, which should be plenty (although I have never seen a font larger than 15MB).

Using Wasm for this animation really is an overkill IMHO.

*) https://learn.microsoft.com/en-us/typography/opentype/spec/g...

Edit: IIRC Ligatures are applied recursively, so you can have a ligature based on other ligatures. If I am right here, each ligature can consist only of two glyphs (the glyph of the previous animation frame followed by a dot). This would keep the GSUB table small.

replies(2): >>erk__+fd >>jamesh+Qu
2. erk__+fd[view] [source] 2023-08-30 09:06:59
>>jansan+(OP)
I used wasm because bad apple was the first thing I thought of when I saw the update that added wasm. I have thought about doing something where wasm fits better, but I have not gotten around to that yet.
3. jamesh+Qu[view] [source] 2023-08-30 11:31:08
>>jansan+(OP)
Sounds like ligature resolution might hide some accidentally quadratic demons.
[go to top]