From eb5149a7bb98180aed28f37c8aced98c9c5a12f3 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 26 Aug 2022 19:21:27 -0700 Subject: [PATCH] examples/gkurve: improve compatibility with self-hosted compiler Signed-off-by: Stephen Gutekanst --- examples/gkurve/label.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gkurve/label.zig b/examples/gkurve/label.zig index 1256f359..df67406f 100644 --- a/examples/gkurve/label.zig +++ b/examples/gkurve/label.zig @@ -75,10 +75,10 @@ fn write(ctx: WriterContext, bytes: []const u8) WriterError!usize { if (!v.found_existing) { try ctx.label.face.setCharSize(ctx.label.size * 64, 0, 50, 0); try ctx.label.face.loadChar(char, .{ .render = true }); - const glyph = ctx.label.face.glyph; + const glyph = ctx.label.face.glyph(); v.value_ptr.* = GlyphInfo{ .uv_data = undefined, - .metrics = glyph().metrics(), + .metrics = glyph.metrics(), }; } offset[0] += @intToFloat(f32, v.value_ptr.metrics.horiAdvance >> 6);