Fix compilation with new cosmic_text

This commit is contained in:
Jeremy Soller 2026-01-22 09:54:18 -07:00
parent f50640794d
commit 1c037f0a6e
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -1411,7 +1411,7 @@ impl Application for App {
let mut font_system = font_system().write().unwrap();
let attrs = monospace_attrs();
for face in font_system.raw().db().faces() {
if attrs.matches(face) && face.monospaced {
if face.style == attrs.style && face.stretch == attrs.stretch && face.monospaced {
//TODO: get localized name if possible
let font_name = face
.families