fontconfig: font list

This commit is contained in:
Mitchell Hashimoto
2022-09-14 10:14:09 -07:00
parent ce899dca11
commit eb2ce495b3
6 changed files with 40 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ pub const ObjectSet = opaque {
return c.FcObjectSetAdd(self.cval(), p.cval().ptr) == c.FcTrue;
}
fn cval(self: *ObjectSet) *c.struct__FcObjectSet {
pub inline fn cval(self: *ObjectSet) *c.struct__FcObjectSet {
return @ptrCast(
*c.struct__FcObjectSet,
@alignCast(@alignOf(c.struct__FcObjectSet), self),