Bernhard Kölbl <besentv@gmail.com> writes:
Hi,
I think the correct solution very much depends on what API is being used to draw the text.
Also, the fallbacks are defined in this table, iirc. https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/gdi32/uniscribe/usp10...
I see that in dwrite, the Noto family of fonts are defined as fallbacks: https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/dwrite/analyzer.c?ref... Using the same fonts for the uniscribe fallback in the table you linked above would solve the problem, without needing to mess around with registry editing stuff. _But_ is there a reason that these specific microsoft fonts were used here? Or no one just got around to update the table?
-- Bernhard
Am So., 5. Apr. 2026 um 13:05 Uhr schrieb समीर सिंह Sameer Singh via Wine-Devel <wine-devel@list.winehq.org>:
Hi, I can still reproduce this issue on the latest master at the time of writing this.
For example open: wine notepad and type something like: देवनागरी Instead of the program falling back to an appropriate font, "tofu" blocks are shown instead.
Now, in ./dlls/gdi32/uniscribe/usp10.c I can see a function named: "find_fallback_font" which looks for a fallback font under Software\Wine\Uniscribe\Fallback in HKEY_CURRENT_USER. But I did not find this entry populated at all.
My solution is: Define a table which has a representative char for each script, now when a new wine environment is being created, query the system using FontConfig to find fonts which contains the representative chars and then populate the registry entry.
How does this sound? I have a rough working version right now, should I send a patch or is something missing in my current approach?
-- समीरसिंह
-- समीरसिंह