luapower / tr0

Unicode text rendering engine in Lua
http://luapower.com/tr0
0 stars 1 forks source link

flag to apply opacity to the entire text run #8

Open capr opened 5 years ago

capr commented 5 years ago

Currently the opacity attribute is applied to individual glyphs, not whole runs, which results in visible seams when glyphs overlap in cursive fonts. What we want is a flag that paints a whole run on a temp surface with opacity 1 and then paints that surface at specified opacity.

NOTE: this is trivial to do by the user with cairo groups, and also translucent cursive fonts is a rare use case.

capr commented 4 years ago

terra-tr pre-renders words (runs) and paints them whole which has the consequence of fixing this without the need for a flag.