font: constrain dingbats

This was a regression, we were giving dingbats an extra cell of
constraint width but not actually applying constraints to them.
This commit is contained in:
Qwerasd
2025-09-03 18:01:40 -06:00
parent c3e7857a2c
commit 2464728851
3 changed files with 12 additions and 5 deletions

View File

@@ -351,8 +351,8 @@ if __name__ == "__main__":
const Constraint = @import("face.zig").RenderOptions.Constraint;
/// Get the a constraints for the provided codepoint.
pub fn getConstraint(cp: u21) Constraint {
pub fn getConstraint(cp: u21) ?Constraint {
return switch (cp) {
""")
f.write(generate_zig_switch_arms(patch_set, nerd_font))
f.write("\n else => .none,\n };\n}\n")
f.write("\n else => null,\n };\n}\n")