feat: cursor, linux, Xwayland (#12859)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-09-06 20:35:51 +08:00
committed by GitHub
parent 6c949a9602
commit df0ff4f134
4 changed files with 45 additions and 6 deletions

View File

@@ -158,11 +158,11 @@ pub(super) fn create_font_face() -> ResultType<Face<'static>> {
let mut font_db = fontdb::Database::new();
font_db.load_system_fonts();
let query = fontdb::Query {
families: &[fontdb::Family::Monospace],
families: &[fontdb::Family::Monospace, fontdb::Family::SansSerif],
..fontdb::Query::default()
};
let Some(font_id) = font_db.query(&query) else {
bail!("No monospace font found!");
bail!("No monospace or sans-serif font found!");
};
let Some((font_source, face_index)) = font_db.face_source(font_id) else {
bail!("No face found for font!");