Files
gtk/gsk
Georges Basile Stavracas Neto 496c8f4a11 gsk/vulkan/glyphcache: Rework glyphs
The current implementation of the glyph cache deals with atlases by
padding them with 1 pixel at the beginning, at the end, and between
each glyph.

That's cool and all, however, there's a very subtle problem with
this approach: the contents of the atlas are garbage, so this padding
is filled with garbage memory!

Rework the Vulkan glyph cache to draw each and every glyph in a
surface that has 1 pixel border of padding around it. Ensure the
surface is completely black by drawing a rectangle before handing
it to Pango to draw the glyph. Update tx and ty to pick the texture
position adjusted to the 1 pixel padding. The atlas now starts at
position (0, 0), since each glyph individually contains its own padding.

To improve legibility, add a PADDING define and use it everywhere.
2023-04-08 20:13:13 -03:00
..
2023-03-31 15:11:10 -04:00
2023-04-02 11:05:57 -04:00
2023-03-31 15:11:10 -04:00
2020-07-25 00:47:36 +02:00
2023-03-14 14:56:42 -04:00
2023-03-31 15:11:10 -04:00
2022-11-17 22:49:45 -05:00
2023-03-31 15:11:10 -04:00
2022-07-15 15:47:11 -04:00
2023-03-31 15:11:10 -04:00
2023-03-14 14:56:42 -04:00
2022-09-23 18:11:48 -04:00
2023-03-31 15:11:10 -04:00
2023-04-03 19:27:58 +02:00
2023-03-31 15:11:10 -04:00
2023-03-31 15:11:10 -04:00