Skip to content

Commit

Permalink
Clarify Glyph::position docs describe a point relative to the glyph
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jun 25, 2024
1 parent f6eb81a commit c154cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glyph/src/glyph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ pub struct Glyph {
pub scale: PxScale,
/// Position of this glyph.
///
/// Horizontally this is to the left of the glyph before applying
/// `h_advance` or `h_side_bearing`. Vertically this is at the "baseline".
/// This point, relative to the glyph, is to the left before applying
/// `h_advance` or `h_side_bearing` & vertically at the "baseline".
/// See [glyph layout concepts](trait.Font.html#glyph-layout-concepts).
pub position: Point,
}
Expand Down

0 comments on commit c154cf3

Please sign in to comment.