fonts: fix build on win32

This commit is contained in:
Wez Furlong committed 2021-10-02 18:38:29 -07:00
1 parent 401719fb01
commit cb47f61116
1 file changed
+1 -1
+1 -1
View File
@@ -564,7 +564,7 @@ impl Face {
/// `I` is chosen rather than `O` as `O` glyphs are often optically
/// compensated and overshoot a little.
fn compute_cap_height(&mut self) -> anyhow::Result<f64> {
let glyph_pos = unsafe { FT_Get_Char_Index(self.face, b'I' as u64) };
let glyph_pos = unsafe { FT_Get_Char_Index(self.face, b'I' as _) };
if glyph_pos == 0 {
anyhow::bail!("no I from which to compute cap height");
}