diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-12-10 01:12:44 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-12-09 23:12:44 +0100 |
commit | 79b19176eeb57fbd6b137160afd6bc9f5518ad33 (patch) | |
tree | a3f76e83973e1bba2090afe39fbaa688d48efbf6 /font/src/directwrite/mod.rs | |
parent | 88b4dbfc5a890569fcfac3fe400fe0ad0ea234cc (diff) | |
download | alacritty-79b19176eeb57fbd6b137160afd6bc9f5518ad33.tar.gz alacritty-79b19176eeb57fbd6b137160afd6bc9f5518ad33.zip |
Add support for colored emojis on Linux/BSD
Fixes #153.
Diffstat (limited to 'font/src/directwrite/mod.rs')
-rw-r--r-- | font/src/directwrite/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/font/src/directwrite/mod.rs b/font/src/directwrite/mod.rs index 579f7faa..74f3d6e2 100644 --- a/font/src/directwrite/mod.rs +++ b/font/src/directwrite/mod.rs @@ -18,7 +18,9 @@ use self::dwrote::{ FontCollection, FontStretch, FontStyle, FontWeight, GlyphOffset, GlyphRunAnalysis, }; -use super::{FontDesc, FontKey, GlyphKey, Metrics, RasterizedGlyph, Size, Slant, Style, Weight}; +use super::{ + BitmapBuffer, FontDesc, FontKey, GlyphKey, Metrics, RasterizedGlyph, Size, Slant, Style, Weight, +}; pub struct DirectWriteRasterizer { fonts: Vec<dwrote::FontFace>, @@ -173,7 +175,7 @@ impl crate::Rasterize for DirectWriteRasterizer { height: (bounds.bottom - bounds.top) as i32, top: -bounds.top, left: bounds.left, - buf, + buf: BitmapBuffer::RGB(buf), }) } |