aboutsummaryrefslogtreecommitdiff
path: root/font/src/directwrite/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/directwrite/mod.rs')
-rw-r--r--font/src/directwrite/mod.rs6
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),
})
}