gdi32: Return GCP_USEKERNING if font has kerning pairs support.

This commit is contained in:
Nikolay Sivov 2015-06-07 08:44:57 +03:00 committed by Alexandre Julliard
parent b17e4376d5
commit ce58518c6e
1 changed files with 1 additions and 2 deletions

View File

@ -3032,7 +3032,6 @@ DWORD WINAPI GetFontLanguageInfo(HDC hdc)
GCP_GLYPHSHAPE_MASK=FS_ARABIC,
GCP_KASHIDA_MASK=0x00000000,
GCP_LIGATE_MASK=0x00000000,
GCP_USEKERNING_MASK=0x00000000,
GCP_REORDER_MASK=FS_HEBREW|FS_ARABIC;
DWORD result=0;
@ -3058,7 +3057,7 @@ DWORD WINAPI GetFontLanguageInfo(HDC hdc)
if( (fontsig.fsCsb[0]&GCP_LIGATE_MASK)!=0 )
result|=GCP_LIGATE;
if( (fontsig.fsCsb[0]&GCP_USEKERNING_MASK)!=0 )
if( GetKerningPairsW( hdc, 0, NULL ) )
result|=GCP_USEKERNING;
/* this might need a test for a HEBREW- or ARABIC_CHARSET as well */