tiny.filigree.GlyphAtlas
Defined in font.raster.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/filigree/src/font/raster.zig:48
zig
pub const Atlas = struct { rgba: []u8 = &.{}, width: i32 = 0, height: i32 = 0, glyphs: []AtlasGlyph = &.{}, recs: []Rectangle = &.{}, base_size: i32 = 0, glyph_padding: i32 = 0, pub fn deinitPixels(self: *Atlas, allocator: std.mem.Allocator) void { if (self.rgba.len > 0) allocator.free(self.rgba); self.rgba = &.{}; } pub fn deinit(self: Atlas, allocator: std.mem.Allocator) void { if (self.rgba.len > 0) allocator.free(self.rgba); if (self.glyphs.len > 0) allocator.free(self.glyphs); if (self.recs.len > 0) allocator.free(self.recs); }};Source: lib/filigree/src/root.zig:92
zig
pub const GlyphAtlas = font.GlyphAtlas;Also reachable as
Audit
| Definitions | 3 |
|---|---|
| Public names | 9 |
| Members | 7 |
| Version | 26.7.0 |
| Revision | daab053ee433 |