tiny.filigree.measureFallbackUtf8
Defined in tiny.filigree.
Reuses caller-provisioned output; replaces its prior run.
Source
Source: lib/filigree/src/render/text.zig:36
zig
/// Reuses caller-provisioned output; replaces its prior run.pub fn measureFallbackUtf8( allocator: std.mem.Allocator, output: *shape.Output, shaped_font: *const shape.Font, fallback_candidates: []const fallback.Candidate, text: []const u8,) !Metrics { var context = try fallback.Context.init(allocator, .{ .script_runs = .{ .max_source_units = text.len }, .output = output.capacity.limits, }); defer context.deinit(); try context.shapeRun(.{ .base = .{ .font = shaped_font, .text = .{ .utf8 = text }, }, .candidates = fallback_candidates, }, output); return measureGlyphRun(output.run());}Source: lib/filigree/src/root.zig:111
zig
pub const measureFallbackUtf8 = render.measureFallbackUtf8;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |