[rust] Use HarfBuzz-style glyph outline

Slightly slower, but matches our point order better.
This commit is contained in:
Behdad Esfahbod committed 2026-02-05 15:24:53 -07:00
1 parent ccaef949c4
commit 6ba28949f5
1 file changed
+3 -2
+3 -2
View File
@@ -15,7 +15,7 @@ use skrifa::color::{
use skrifa::font::FontRef;
use skrifa::instance::{Location, NormalizedCoord, Size};
use skrifa::metrics::{BoundingBox, GlyphMetrics};
use skrifa::outline::pen::OutlinePen;
use skrifa::outline::pen::{OutlinePen, PathStyle};
use skrifa::outline::DrawSettings;
use skrifa::raw::tables::cpal::ColorRecord;
use skrifa::raw::tables::vmtx::Vmtx;
@@ -521,7 +521,8 @@ extern "C" fn _hb_fontations_draw_glyph_or_fail(
let Some(outline_glyph) = outline_glyphs.get(glyph_id) else {
return false as hb_bool_t;
};
let draw_settings = DrawSettings::unhinted(*size, location);
let draw_settings = DrawSettings::unhinted(*size, location)
.with_path_style(PathStyle::HarfBuzz);
let mut draw_state = unsafe { std::mem::zeroed::<hb_draw_state_t>() };