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

Fix: transform TextShape underline width (#5865)

Minor bug fix when transforming a `TextShape` with a `underline` (used
for e.g. hyperlinks). Before the underline width would not scale
properly; now it will.
This commit is contained in:
Emil Ernerfeldt
2025-03-30 16:36:03 +02:00
committed by GitHub
parent e3acd71090
commit e275409eb1
2 changed files with 29 additions and 7 deletions

View File

@@ -8,7 +8,9 @@ use crate::*;
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct TextShape {
/// Top left corner of the first character.
/// Where the origin of [`Self::galley`] is.
///
/// Usually the top left corner of the first character.
pub pos: Pos2,
/// The laid out text, from [`Fonts::layout_job`].