tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

Enhance text rendering in preview on low-resolution displays

Open Myriad-Dreamin opened this issue 6 months ago • 17 comments

Motivation and Description

The effect of rendered text is unsatisfied, especially on low-resolution displays. This is because we put glyphs on arbitrary position, resulting bad subpixel renderings. From experience of google fonts, typst/pixglyph, and the blog, we'd better rasterize them by ourselves and put them on finite fraction positions, like N + {0, 1/3, or 2/3} px.

image

A picture of a section of a glyph atlas that contains “m” glyphs rasterized at different sub-pixel alignments.

Myriad-Dreamin avatar Aug 16 '24 15:08 Myriad-Dreamin