hash
Fonts that hash the same value use the same glyphs (same Font.Entry).
Parameters
- self:*const Font
- *const Font
Source
Implementation
pub fn hash(self: *const Font) u64 {
var h = dvui.fnv.init();
h.update(&self.family);
h.update(std.mem.asBytes(&self.size));
h.update(std.mem.asBytes(&self.weight));
h.update(std.mem.asBytes(&self.style));
return h.final();
}