Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions piet-direct2d/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::sync::Arc;

pub use dwrite::DwriteFactory;
use dwrote::{CustomFontCollectionLoaderImpl, FontCollection, FontFile};
use winapi::um::d2d1::D2D1_DRAW_TEXT_OPTIONS_NONE;
use winapi::um::d2d1::D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT;
use wio::wide::ToWide;

use piet::kurbo::{Insets, Point, Rect, Size};
Expand Down Expand Up @@ -463,7 +463,7 @@ impl D2DTextLayout {
self.resolve_colors_if_needed(ctx);
let pos = conv::to_point2f(pos);
let black_brush = ctx.solid_brush(Color::BLACK);
let text_options = D2D1_DRAW_TEXT_OPTIONS_NONE;
let text_options = D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT;
ctx.rt
.draw_text_layout(pos, &self.layout.borrow(), &black_brush, text_options);
}
Expand Down
Loading