zlacker

[return to "Llama.ttf: A font which is also an LLM"]
1. amai+AJ1[view] [source] 2024-06-24 07:48:50
>>fugled+(OP)
Does this mean fonts are Turing complete nowadays? Sounds like a pretty bad idea for security.
◧◩
2. exDM69+lX1[view] [source] 2024-06-24 10:31:10
>>amai+AJ1
TrueType fonts have had a Turing complete virtual machine (almost?) since the beginning. It is used for "hinting" to allow partially colored pixels at low resolutions to remain legible. It's basically a program that decides whether to color a pixel or not to allow fine tuning of low resolution rasterization.

This isn't used as much today with modern large resolutions where we can get decent image quality from just rasterizing the font outline with anti aliasing.

This example, however, is using wasm embedded to ttf fonts which is not the same as ttf hinting byte code.

◧◩◪
3. amai+jE2[view] [source] 2024-06-24 15:11:41
>>exDM69+lX1
> TrueType fonts have had a Turing complete virtual machine (almost?) since the beginning. It is used for "hinting" to allow partially colored pixels at low resolutions to remain legible. It's basically a program that decides whether to color a pixel or not to allow fine tuning of low resolution rasterization.

That sounds like an awful idea, too. I think a font file should describe the fonts form, but it should not describe how it is gonna be rendered. That should be up to the render engine of the device that is going to display the font (printer driver, monitor driver...). But I guess this idea is from a time when people were still using bitmap fonts.

[go to top]