mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Remove y-offset from emoji fonts
This commit is contained in:
@@ -278,7 +278,6 @@ impl Default for FontDefinitions {
|
|||||||
"NotoEmoji-Regular".to_owned(),
|
"NotoEmoji-Regular".to_owned(),
|
||||||
FontData::from_static(NOTO_EMOJI_REGULAR).tweak(FontTweak {
|
FontData::from_static(NOTO_EMOJI_REGULAR).tweak(FontTweak {
|
||||||
scale: 0.81, // Make smaller
|
scale: 0.81, // Make smaller
|
||||||
y_offset_factor: -0.120, // Move up
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@@ -293,7 +292,6 @@ impl Default for FontDefinitions {
|
|||||||
"emoji-icon-font".to_owned(),
|
"emoji-icon-font".to_owned(),
|
||||||
FontData::from_static(EMOJI_ICON).tweak(FontTweak {
|
FontData::from_static(EMOJI_ICON).tweak(FontTweak {
|
||||||
scale: 0.90, // Make smaller
|
scale: 0.90, // Make smaller
|
||||||
y_offset_factor: 0.09, // Move down
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user