Let GetFontLanguageInfo() return the GCP_REORDER flag only in case the

DC alignment is right-to-left.
This commit is contained in:
Rein Klazes 2004-05-21 20:51:17 +00:00 committed by Alexandre Julliard
parent e4dfaab29e
commit 8efa774003

View File

@ -1915,8 +1915,10 @@ DWORD WINAPI GetFontLanguageInfo(HDC hdc)
if( (fontsig.fsCsb[0]&GCP_USEKERNING_MASK)!=0 )
result|=GCP_USEKERNING;
if( (fontsig.fsCsb[0]&GCP_REORDER_MASK)!=0 )
result|=GCP_REORDER;
/* this might need a test for a HEBREW- or ARABIC_CHARSET as well */
if( GetTextAlign( hdc) & TA_RTLREADING )
if( (fontsig.fsCsb[0]&GCP_REORDER_MASK)!=0 )
result|=GCP_REORDER;
return result;
}