Skip to content

Commit 5edaf40

Browse files
committed
Change default FontTweak
1 parent 9947d7c commit 5edaf40

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/epaint/src/text/fonts.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl Default for FontTweak {
189189
scale: 1.0,
190190
y_offset_factor: 0.0,
191191
y_offset: 0.0,
192-
baseline_offset_factor: -0.0333, // makes the default fonts look more centered in buttons and such
192+
baseline_offset_factor: 0.0,
193193
}
194194
}
195195
}
@@ -289,11 +289,8 @@ impl Default for FontDefinitions {
289289
font_data.insert(
290290
"emoji-icon-font".to_owned(),
291291
FontData::from_static(EMOJI_ICON).tweak(FontTweak {
292-
scale: 0.88, // make it smaller
293-
294-
// probably not correct, but this does make texts look better (#2724 for details)
295-
y_offset_factor: 0.11, // move glyphs down to better align with common fonts
296-
baseline_offset_factor: -0.11, // ...now the entire row is a bit down so shift it back
292+
scale: 0.88, // Make it smaller
293+
y_offset_factor: 0.04, // Move down slightly
297294
..Default::default()
298295
}),
299296
);

0 commit comments

Comments
 (0)