freetype: implement some functions binding

This commit is contained in:
Ali Chraghi 2022-05-25 17:46:30 +04:30 committed by Stephen Gutekanst
parent 1a082ef5a7
commit 7a8aee8665
5 changed files with 71 additions and 24 deletions

View file

@ -4,6 +4,17 @@ const utils = @import("utils.zig");
pub const Vector = c.FT_Vector;
pub const Matrix = c.FT_Matrix;
pub const Pos = c.FT_Pos;
pub const BBox = c.FT_BBox;
pub const RenderMode = enum(u3) {
normal = c.FT_RENDER_MODE_NORMAL,
light = c.FT_RENDER_MODE_LIGHT,
mono = c.FT_RENDER_MODE_MONO,
lcd = c.FT_RENDER_MODE_LCD,
lcd_v = c.FT_RENDER_MODE_LCD_V,
sdf = c.FT_RENDER_MODE_SDF,
};
pub const OpenFlags = packed struct {
memory: bool = false,