mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-12 09:28:10 +00:00
fixup! fixup! refactor(core): safe iface for get_glyph_data
This commit is contained in:
parent
77b3d79e01
commit
74ad10d441
@ -368,9 +368,8 @@ impl Font {
|
||||
}
|
||||
text_width += c_width;
|
||||
}
|
||||
});
|
||||
|
||||
text // the whole text fits
|
||||
text // the whole text fits
|
||||
})
|
||||
}
|
||||
|
||||
/// Get the length of the longest suffix from a given `text`
|
||||
@ -387,9 +386,8 @@ impl Font {
|
||||
}
|
||||
text_width += char_width;
|
||||
}
|
||||
});
|
||||
|
||||
text.len() // it fits in its entirety
|
||||
text.len() // it fits in its entirety
|
||||
})
|
||||
}
|
||||
|
||||
pub fn visible_text_height_ex(&self, text: &str) -> (i16, i16) {
|
||||
|
Loading…
Reference in New Issue
Block a user