Fix size of 'wasm renderer' debug text on dpr > 1

This commit is contained in:
Belén Albeza 2025-06-20 10:41:54 +02:00
parent 38112e287a
commit 2412402a23
13 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,11 @@ impl FontStore {
}
}
pub fn set_scale_debug_font(&mut self, dpr: f32) {
let debug_font = skia::Font::new(self.debug_font.typeface(), 10.0 * dpr);
self.debug_font = debug_font;
}
pub fn font_provider(&self) -> &textlayout::TypefaceFontProvider {
&self.font_provider
}