summaryrefslogtreecommitdiffstats
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorlbonn <lbonn@users.noreply.github.com>2020-05-12 15:23:35 +0200
committerGitHub <noreply@github.com>2020-05-12 16:23:35 +0300
commit77f2d6e853f1ad54e6dc844a811b78daeb463e76 (patch)
tree2bdda495a8825f1dbb3ff3743f76c9dafd40dbe1 /font/src/lib.rs
parent2c2104a51776ac826dde35f54423657f2d5150fb (diff)
Fix emojis being blended with background
Fixes #1864.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index 2a19f620..d5b9716e 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -173,7 +173,10 @@ pub struct RasterizedGlyph {
#[derive(Clone, Debug)]
pub enum BitmapBuffer {
+ /// RGB alphamask.
RGB(Vec<u8>),
+
+ /// RGBA pixels with premultiplied alpha.
RGBA(Vec<u8>),
}