Merge branch 'advanced-text' into incremental-rendering

This commit is contained in:
Héctor Ramón Jiménez 2023-04-08 04:47:54 +02:00
commit 3ee367355d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
8 changed files with 39 additions and 41 deletions

View file

@ -389,14 +389,7 @@ impl Cache {
cosmic_text::Attrs::new()
.family(to_family(key.font.family))
.weight(to_weight(key.font.weight))
.stretch(to_stretch(key.font.stretch))
.monospaced(
key.font.monospaced
|| matches!(
key.font.family,
font::Family::Monospace
),
),
.stretch(to_stretch(key.font.stretch)),
);
let _ = entry.insert(buffer);