Skip to content

Commit 05f7ad5

Browse files
committed
expose normalized coords in scaler
1 parent 59db153 commit 05f7ad5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

moscato/src/scaler.rs

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ pub struct Scaler<'a> {
142142
}
143143

144144
impl<'a> Scaler<'a> {
145+
pub fn normalized_coords(&self) -> &'a [i16] {
146+
self.coords
147+
}
148+
145149
pub fn glyph(&mut self, gid: u16) -> Option<Glyph> {
146150
let mut glyph = Glyph::default();
147151
if load_glyph(self, gid, &mut glyph) {

0 commit comments

Comments
 (0)