[PATCH] gdi32: Try Fontconfig substitutions when the font face is missing.

Akihiro Sagawa sagawa.aki at gmail.com
Tue Nov 27 09:50:20 CST 2018


This improves font selection. With this patch, we can choose a decent
font family by Fontconfig.

Otherwise, Wine chooses some fonts based on supported charset, e.g. Droid
Sans Fallback. Droid Sans Fallback supports various scripts including
Japanese. However, as it's a fallback font, it doesn't have Latin alphabet
glyphs. If the font is chosen, typically Japanese Ubuntu environment, users
see a lot of squares instead of Latin alphabets.

This patch asks Fontconfig for the best font for the current locale. If the
font is returned and matches requested charset, the font is used. If failure,
it fallbacks to existing procedure.

Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
---
 dlls/gdi32/freetype.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdi32-Try-Fontconfig-substitutions-when-the-font-fac.patch
Type: text/x-patch
Size: 4128 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20181128/9d598867/attachment-0001.bin>


More information about the wine-devel mailing list