Skip to documentation
SLOP

tiny.filigree.drawUtf8

Reference tiny.filigree drawUtf8

Defined in tiny.filigree.

Reuses caller-provisioned output; replaces its prior run.

Called byCallstest sourcelib.filigree.src.render.texttest: render draws shaped utf8 into r...tiny.filigreedrawGlyphRuntiny.filigreedrawUtf8
Static calls · unresolved targets: 1 · external targets: 3.

Source

Source: lib/filigree/src/render/text.zig:66

zig
/// Reuses caller-provisioned output; replaces its prior run.pub fn drawUtf8(    allocator: std.mem.Allocator,    output: *shape.Output,    canvas: Canvas,    shaped_font: *const shape.Font,    text: []const u8,    pixel_size: i32,    origin_x: i32,    origin_y: i32,    options: DrawOptions,) !Metrics {    var context = shape.Context.init(allocator, .{});    defer context.deinit();    try context.shapeRun(.{        .font = shaped_font,        .text = .{ .utf8 = text },    }, output);    return try drawGlyphRun(        allocator,        canvas,        shaped_font.face,        output.run(),        pixel_size,        origin_x,        origin_y,        options,    );}

Source: lib/filigree/src/root.zig:110

zig
pub const drawUtf8 = render.drawUtf8;

Also reachable as

render.drawUtf8.

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433