In v3, - keep existing loop to reflect Nikolay's comment. Nikolay, thanks for reviewing. - introduce NOT_AVAILABLE constatnt. IPA Mincho font file is available from https://ipafont.ipa.go.jp/old/ipafont/IPAMTTC00303.php .
Otherwise localized family name of IPA font isn't available in DirectWrite. While Wine enumerates localized name in GDI.
N.B. IPA font family (e.g. IPA Mincho) is a bit tricky. It has Japanese (Kanji) name for Japanese Windows, though it has English (ASCII) name for Japanese Macintosh. And due to record order, Wine's DirectWrite chooses Macintosh one.
Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com --- dlls/dwrite/opentype.c | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-)