This commit is contained in:
meehl committed 2026-08-12 20:46:43 +02:00
1 parent 99fc9f608e
commit e43da1b9e8
25 files changed
+110 -135

No files matched your search

+1 -4
View File
@@ -72,15 +72,12 @@ impl std::hash::Hash for LayoutJob<'_> {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.segments.hash(state);
match &self.font_family {
FontFamily::Single(FontFamilyName::Named(cow)) => {
FontFamily::Single(FontFamilyName::Named(cow)) | FontFamily::Source(cow) => {
cow.hash(state);
}
FontFamily::Single(FontFamilyName::Generic(generic_family)) => {
generic_family.hash(state);
}
FontFamily::Source(cow) => {
cow.hash(state);
}
FontFamily::List(cow) => {
for name in cow.iter() {
match name {
+1 -1
View File
@@ -118,7 +118,7 @@ impl GlyphRasterizer {
self.cached_glyphs.clear();
}
/// Gets a swash::FontRef from FontData
/// Gets a [`swash::FontRef`] from [`FontData`]
fn get_font_ref<'a>(&mut self, font: &'a FontData) -> swash::FontRef<'a> {
let font_blob_id = font.data.id();