tiny.filigree.measureUtf8
Defined in tiny.filigree.
Reuses caller-provisioned output; replaces its prior run.
Source
Source: lib/filigree/src/render/text.zig:20
zig
/// Reuses caller-provisioned output; replaces its prior run.pub fn measureUtf8( allocator: std.mem.Allocator, output: *shape.Output, shaped_font: *const shape.Font, text: []const u8,) !Metrics { var context = shape.Context.init(allocator, .{}); defer context.deinit(); try context.shapeRun(.{ .font = shaped_font, .text = .{ .utf8 = text }, }, output); return measureGlyphRun(output.run());}Source: lib/filigree/src/root.zig:113
zig
pub const measureUtf8 = render.measureUtf8;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |