tiny.filigree.glyphOutlineAlloc
Defined in font.outline.
Source
Source: lib/filigree/src/font/outline.zig:41
zig
pub fn glyphAlloc( allocator: std.mem.Allocator, face: face_table.Face, glyph_id: u32,) Error!Glyph { if (glyph_id >= face.num_glyphs) return error.InvalidFont; if (face.tableSlice("glyf") == null or face.tableSlice("loca") == null) { if (face.tableSlice("CFF ") != null) return cffGlyphAlloc(allocator, face, glyph_id); } const head = face.tableSlice("head") orelse return error.MissingTable; const loca = face.tableSlice("loca") orelse return error.MissingTable; const glyf = face.tableSlice("glyf") orelse return error.MissingTable; if (head.len < 52) return error.InvalidFont; const loc_format = readI16(head, 50) catch return error.InvalidFont; return glyphAllocFromTables(allocator, loca, glyf, loc_format, glyph_id, 0);}Source: lib/filigree/src/root.zig:105
zig
pub const glyphOutlineAlloc = font.glyphOutlineAlloc;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |