font/freetype: update to new presentation APIs

This commit is contained in:
Mitchell Hashimoto
2024-05-28 20:25:49 -07:00
parent 326659c522
commit 4daa49fe27
2 changed files with 26 additions and 17 deletions

View File

@@ -26,6 +26,12 @@ pub const Face = struct {
return c.FT_HAS_COLOR(self.handle);
}
/// A macro that returns true whenever a face object contains an sbix
/// OpenType table and outline glyphs.
pub fn hasSBIX(self: Face) bool {
return c.FT_HAS_SBIX(self.handle);
}
/// A macro that returns true whenever a face object contains some
/// multiple masters.
pub fn hasMultipleMasters(self: Face) bool {