mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
font: remove excess debugging code
This commit is contained in:
@ -311,13 +311,10 @@ pub fn hasCodepoint(self: *Group, index: FontIndex, cp: u32, p: ?Presentation) b
|
|||||||
const list = self.faces.getPtr(index.style);
|
const list = self.faces.getPtr(index.style);
|
||||||
if (index.idx >= list.items.len) return false;
|
if (index.idx >= list.items.len) return false;
|
||||||
const item = list.items[index.idx];
|
const item = list.items[index.idx];
|
||||||
std.log.warn("hasCodepoint item={}", .{item});
|
|
||||||
return switch (item) {
|
return switch (item) {
|
||||||
.deferred => |v| v.hasCodepoint(cp, p),
|
.deferred => |v| v.hasCodepoint(cp, p),
|
||||||
.loaded => |face| loaded: {
|
.loaded => |face| loaded: {
|
||||||
if (p) |desired| {
|
if (p) |desired| if (face.presentation != desired) break :loaded false;
|
||||||
if (face.presentation != desired) break :loaded false;
|
|
||||||
}
|
|
||||||
break :loaded face.glyphIndex(cp) != null;
|
break :loaded face.glyphIndex(cp) != null;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user