Merge pull request #6742 from penpot/ladybenko-fix-wasm-debug-text-hi-dpr

 Fix size of 'wasm renderer' debug text on dpr > 1
This commit is contained in:
Alejandro Alonso 2025-06-23 11:47:20 +02:00 committed by GitHub
commit 9ea0875e65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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
}