1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-12 17:38:13 +00:00

fixup! fixup! refactor(core): safe iface for get_glyph_data

This commit is contained in:
obrusvit 2024-12-11 00:08:10 +01:00
parent 77b3d79e01
commit 74ad10d441

View File

@ -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) {