Skip to documentation
SLOP

tiny.filigree.measureUtf8

Reference tiny.filigree measureUtf8

Defined in tiny.filigree.

Reuses caller-provisioned output; replaces its prior run.

Called byCallstest sourcelib.filigree.src.render.texttest: render measures shaped utf8 wit...tiny.filigreemeasureGlyphRuntiny.filigreemeasureUtf8
Static calls · unresolved targets: 1 · external targets: 3.

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

render.measureUtf8.

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433