GetFontLanguageInfo patch.
Rein Klazes
rklazes at xs4all.nl
Thu May 20 08:41:27 CDT 2004
Hi,
This fixes bug #2232. In the latest Pegasus mail versions, with the font "Arial"
(or any other that includes a Hebrew or Arabic charset) selected, al text is
aligned right and text fields (like "From:") are positioned at the right.
Changelog:
objects : font.c
Let GetFontLanguageInfo() return the GCP_REORDER flag only in case the DC
alignment is right-to-left.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/objects/font.c 2004-03-04 05:05:04.000000000 +0100
+++ mywine/objects/font.c 2004-05-20 15:27:20.000000000 +0200
@@ -1915,8 +1915,10 @@
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;
}
More information about the wine-patches
mailing list