(no title)
cmyr | 2 years ago
The proposed WASM shaping implementation would be a replacement for traditional OpenType layout[1] which is already turing complete[2]), and in this sense using WASM is significantly safer than the alternative. Your comment suggests that "execution of arbitrary WASM code" is something that we should be scared of, but the entire point of WASM is that it allows for safe/isolated compilation of arbitrary code.
[1] https://simoncozens.github.io/fonts-and-layout/features.html
[2] https://litherum.blogspot.com/2019/03/addition-font.html
slimsag|2 years ago
> The proposed WASM shaping implementation would be a replacement for traditional OpenType layout
It's not a proposal AFAIK, it's already implemented today in the harfbuzz codebase.
I also do not think it is a 'replacement' for the traditional system, I doubt anyone will disable the ability to render the entire ecosystem of fonts out there which have not been updated to use WASM - so it seems likely it's just another point of complexity added to font rendering in general.