mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 22:37:23 +02:00
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:
commit
9ea0875e65
13 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue