Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 19, 2024
1 parent 1ca885b commit 098032e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/epaint/src/text/fonts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,13 @@ impl Default for FontDefinitions {

let mut families = BTreeMap::new();

// We tweak the fonts slightly to improve their vertical alignment in buttons etc:
font_data.insert("Hack".to_owned(), FontData::from_static(HACK_REGULAR));

// Some good looking emojis. Use as first priority:
font_data.insert(
"NotoEmoji-Regular".to_owned(),
FontData::from_static(NOTO_EMOJI_REGULAR).tweak(FontTweak {
scale: 0.81, // Make smaller
scale: 0.81, // Make smaller
..Default::default()
}),
);
Expand All @@ -291,7 +290,7 @@ impl Default for FontDefinitions {
font_data.insert(
"emoji-icon-font".to_owned(),
FontData::from_static(EMOJI_ICON).tweak(FontTweak {
scale: 0.90, // Make smaller
scale: 0.90, // Make smaller
..Default::default()
}),
);
Expand Down

0 comments on commit 098032e

Please sign in to comment.