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.
This commit is contained in:
Abdessamad Derraz committed 2026-09-05 08:45:38 +02:00
1 parent ed40d04b49
commit 6e65b542bb
1 file changed
+5 -2
+5 -2
View File
@@ -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,