tiny.filigree.drawGlyphRun
Defined in tiny.filigree.
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
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |