From 6e65b542bbffeccb9e7933593e7cbde1a9600d12 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 5 Sep 2026 08:45:38 +0200 Subject: [PATCH] docs: ruffle reads a face through freetype now The freetype feature joined the desktop defaults, and load_fontdb_font takes a renderer and an atlas set: on Linux the face goes through FreetypeFontRenderer, and the memory map of the file is the other branch. Which faces are asked for is unchanged, and still no name, path, size or hash is fixed anywhere. --- emulators/ruffle.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/emulators/ruffle.yml b/emulators/ruffle.yml index 55a958d9..b5c7d63c 100644 --- a/emulators/ruffle.yml +++ b/emulators/ruffle.yml @@ -50,8 +50,11 @@ notes: | Text uses system fonts. fontdb::Database::load_system_fonts() fills the database at startup (desktop/src/app.rs:418-419), and both the Flash device - fonts and the egui menu bar resolve family names against it, mmapping whatever - face the host answers with (desktop/src/backends/ui.rs:281-314,395-421, + fonts and the egui menu bar resolve family names against it and take whatever + face the host answers with. How that face is read now depends on the renderer: + freetype joined the desktop default features, so on Linux it goes through + FreetypeFontRenderer, and the plain memory map of the file is the other branch + (desktop/src/backends/ui.rs:321-359,442-484, desktop/src/gui/controller.rs:690-733). The families asked for are Times New Roman, Arial, Courier New and their metric-compatible substitutes, plus the CJK, Hebrew, Arabic and Thai faces (desktop/src/player.rs:361-412,