Commit 8efa7740 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

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

DC alignment is right-to-left.
parent e4dfaab2
...@@ -1915,8 +1915,10 @@ DWORD WINAPI GetFontLanguageInfo(HDC hdc) ...@@ -1915,8 +1915,10 @@ DWORD WINAPI GetFontLanguageInfo(HDC hdc)
if( (fontsig.fsCsb[0]&GCP_USEKERNING_MASK)!=0 ) if( (fontsig.fsCsb[0]&GCP_USEKERNING_MASK)!=0 )
result|=GCP_USEKERNING; result|=GCP_USEKERNING;
if( (fontsig.fsCsb[0]&GCP_REORDER_MASK)!=0 ) /* this might need a test for a HEBREW- or ARABIC_CHARSET as well */
result|=GCP_REORDER; if( GetTextAlign( hdc) & TA_RTLREADING )
if( (fontsig.fsCsb[0]&GCP_REORDER_MASK)!=0 )
result|=GCP_REORDER;
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment