1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

More even text kerning (#7431)

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
valadaptive
2025-09-08 11:29:41 -04:00
committed by GitHub
parent e5d0b93633
commit d5b0a6f446
162 changed files with 1203 additions and 1131 deletions

View File

@@ -15,7 +15,7 @@ pub struct TextShape {
/// Usually the top left corner of the first character.
pub pos: Pos2,
/// The laid out text, from [`Fonts::layout_job`].
/// The laid out text, from [`FontsView::layout_job`].
pub galley: Arc<Galley>,
/// Add this underline to the whole text.
@@ -181,8 +181,7 @@ mod tests {
#[test]
fn text_bounding_box_under_rotation() {
let fonts = Fonts::new(
1.0,
let mut fonts = Fonts::new(
1024,
AlphaFromCoverage::default(),
FontDefinitions::default(),
@@ -190,7 +189,7 @@ mod tests {
let font = FontId::monospace(12.0);
let mut t = crate::Shape::text(
&fonts,
&mut fonts.with_pixels_per_point(1.0),
Pos2::ZERO,
emath::Align2::CENTER_CENTER,
"testing123",