Improved selection of freetype face charmap.

This commit is contained in:
Dave Belanger 2003-10-15 02:33:55 +00:00 committed by Alexandre Julliard
parent 53f2e61e37
commit 2925d6ad17
1 changed files with 11 additions and 2 deletions

View File

@ -1249,9 +1249,18 @@ not_found:
free_font( ret ); free_font( ret );
return 0; return 0;
} }
if (ret->charset == SYMBOL_CHARSET &&
!pFT_Select_Charmap(ret->ft_face, FT_ENCODING_MS_SYMBOL)) {
/* No ops */
}
else if (!pFT_Select_Charmap(ret->ft_face, FT_ENCODING_UNICODE)) {
/* No ops */
}
else {
pFT_Select_Charmap(ret->ft_face, FT_ENCODING_APPLE_ROMAN);
}
if(ret->charset == SYMBOL_CHARSET)
pFT_Select_Charmap(ret->ft_face, ft_encoding_symbol);
ret->orientation = lf.lfOrientation; ret->orientation = lf.lfOrientation;
ret->name = strdupW(family->FamilyName); ret->name = strdupW(family->FamilyName);