mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 15:51:39 +02:00
🎉 Swap default font for source sans (wasm)
This commit is contained in:
parent
2470c1788e
commit
90cb0357c6
6 changed files with 34 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
math::Rect,
|
||||
render::{DEFAULT_EMOJI_FONT, DEFAULT_FONT},
|
||||
render::{default_font, DEFAULT_EMOJI_FONT},
|
||||
};
|
||||
use skia_safe::{
|
||||
self as skia,
|
||||
|
@ -133,7 +133,7 @@ impl TextLeaf {
|
|||
style.set_font_size(self.font_size);
|
||||
style.set_font_families(&[
|
||||
self.serialized_font_family(),
|
||||
DEFAULT_FONT.to_string(),
|
||||
default_font(),
|
||||
DEFAULT_EMOJI_FONT.to_string(),
|
||||
]);
|
||||
style
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue