diff --git a/crates/epaint/src/text/fonts.rs b/crates/epaint/src/text/fonts.rs index dcfbbd7fe1d..42d74cdd2d2 100644 --- a/crates/epaint/src/text/fonts.rs +++ b/crates/epaint/src/text/fonts.rs @@ -189,7 +189,7 @@ impl Default for FontTweak { scale: 1.0, y_offset_factor: 0.0, y_offset: 0.0, - baseline_offset_factor: -0.0333, // makes the default fonts look more centered in buttons and such + baseline_offset_factor: 0.0, } } } @@ -289,11 +289,8 @@ impl Default for FontDefinitions { font_data.insert( "emoji-icon-font".to_owned(), FontData::from_static(EMOJI_ICON).tweak(FontTweak { - scale: 0.88, // make it smaller - - // probably not correct, but this does make texts look better (#2724 for details) - y_offset_factor: 0.11, // move glyphs down to better align with common fonts - baseline_offset_factor: -0.11, // ...now the entire row is a bit down so shift it back + scale: 0.88, // Make it smaller + y_offset_factor: 0.04, // Move down slightly ..Default::default() }), );