w23 / alacritty

A cross-platform, GPU-accelerated terminal emulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colored glyphs (e.g. emojis) have incorrect colors

w23 opened this issue Β· comments

How to reproduce:

  • set background color to something bright (e.g. 808080)
  • render some emojis: πŸ€£πŸ™‚πŸ€ͺπŸ€¨πŸ§πŸ€“πŸ₯°

Why: we don't have a proper alpha value for non-colored glyphs. They are uploaded from RGB source with alpha being force set to 1. So the shader only blends based on rgb values, not alpha.

How to fix, variants:

  1. Can we make non-colored also rendered with proper alpha channel?
  2. When uploading non-colored, generate proper alpha values
  3. Have a separate RGBA atlas for colored glyphs