You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A problem with this immediately is that the tokenMetadata's color becomes redundant as it's foreground color is overridden by charMetadata (inline decorations). Meaning for different tokens with the same decoration, or even just same decoration color, the glyph will be duplicated in the atlas.
I think the best way forward here is to delete the portion of tokenMetadata if there is a decoration foreground color, similar to what we do here:
With #234127 there is a new
charMetadata
that is passed along to the rasterizer and used as a key for the glyph:vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.ts
Lines 120 to 124 in 9088a37
vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.ts
Line 92 in 9088a37
A problem with this immediately is that the
tokenMetadata
's color becomes redundant as it's foreground color is overridden bycharMetadata
(inline decorations). Meaning for different tokens with the same decoration, or even just same decoration color, the glyph will be duplicated in the atlas.I think the best way forward here is to delete the portion of
tokenMetadata
if there is a decoration foreground color, similar to what we do here:vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.ts
Lines 109 to 110 in 9088a37
Note that I think this also applies to partially transparent colors as it replaces the original color, not layers on top of it.
The text was updated successfully, but these errors were encountered: