From df019567a13d199ac45211ed85ca828963aae3bb Mon Sep 17 00:00:00 2001 From: mkorje Date: Tue, 10 Jun 2025 21:14:44 +1000 Subject: [PATCH] Mention that y_* fields for glyphs are Y-up --- crates/typst-library/src/text/item.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/text/item.rs b/crates/typst-library/src/text/item.rs index df2ae854e..518b082b9 100644 --- a/crates/typst-library/src/text/item.rs +++ b/crates/typst-library/src/text/item.rs @@ -59,9 +59,9 @@ pub struct Glyph { pub x_advance: Em, /// The horizontal offset of the glyph. pub x_offset: Em, - /// The advance height of the glyph. + /// The advance height (Y-up) of the glyph. pub y_advance: Em, - /// The vertical offset of the glyph. + /// The vertical offset (Y-up) of the glyph. pub y_offset: Em, /// The range of the glyph in its item's text. The range's length may /// be more than one due to multi-byte UTF-8 encoding or ligatures.