tiny.filigree.drawUtf8
Defined in tiny.filigree.
Reuses caller-provisioned output; replaces its prior run.
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
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |