Skip to documentation
SLOP

tiny.filigree.drawGlyphRun

Reference tiny.filigree drawGlyphRun

Defined in tiny.filigree.

Called byCallstiny.filigreedrawUtf8tiny.filigreemeasureGlyphRunprivate sourcelib.filigree.src.render.textround26Dot6tiny.filigreedrawGlyphRun
Static calls · unresolved targets: 0 · external targets: 3.

Source

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

zig
pub fn drawGlyphRun(    allocator: std.mem.Allocator,    canvas: Canvas,    face: font.Face,    run: shape.GlyphRun,    pixel_size: i32,    origin_x: i32,    origin_y: i32,    options: DrawOptions,) !Metrics {    var pen_x = origin_x * 64;    var pen_y = origin_y * 64;    for (run.glyphs) |glyph| {        var bitmap = try font.glyphBitmapAlloc(allocator, allocator, face, glyph.glyph_id, pixel_size);        defer bitmap.deinit(allocator);        const dst_x = round26Dot6(pen_x + glyph.x_offset) + bitmap.offset_x;        const dst_y = round26Dot6(pen_y + glyph.y_offset) + bitmap.offset_y;        canvas_data.blitBitmap(canvas, bitmap, dst_x, dst_y, options.color);        pen_x += glyph.x_advance;        pen_y += glyph.y_advance;    }    return measureGlyphRun(run);}

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

zig
pub const drawGlyphRun = render.drawGlyphRun;

Also reachable as

render.drawGlyphRun.

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433