From 6ac4cc9671dcc1831161bfcb6bd123e0e849bcb6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 24 Sep 2023 20:40:36 -0700 Subject: [PATCH] font: debug log for overide --- src/font/Group.zig | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/font/Group.zig b/src/font/Group.zig index ef27dc02e..62b62fc72 100644 --- a/src/font/Group.zig +++ b/src/font/Group.zig @@ -402,7 +402,16 @@ fn indexForCodepointOverride(self: *Group, cp: u32) !?FontIndex { const idx = idx_ orelse return null; // We need to verify that this index has the codepoint we want. - return if (self.hasCodepoint(idx, cp, null)) idx else null; + if (self.hasCodepoint(idx, cp, null)) { + log.debug("codepoint override based on config codepoint={} family={s}", .{ + cp, + desc.family orelse "", + }); + + return idx; + } + + return null; } /// Check if a specific font index has a specific codepoint. This does not