Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hebrew not RTL on Windows Server 2003

2 views
Skip to first unread message

Chris Shearer Cooper

unread,
Jun 18, 2007, 4:09:38 PM6/18/07
to
I'm working on an application that draws both English and Hebrew, using the
standard DrawText() function and setting the DC layout to include
LAYOUT_RTL. This works fine ... except on some of our servers that are
running Windows Server 2003, where the Hebrew text comes out left-to-right
(it should be right-to-left). The font is apparently installed properly
though.

I noticed that "Install files for complex script and right-to-left
languages" is not checked (under "Supplemental language support" on the
"Languages" tab of the "Regional and Language Options" control panel
applet), is it possible that will solve this? (I would have tested that
theory already except I don't have the CD that it asks for when I try to
enable it)

Does Windows Server 2003 not know how to handle the LAYOUT_RTL flag unless
you install the supplemental language support? If that is the case, is
there a way for my application to detect that supplemental language support
has not been installed, so I can warn the user?

Thanks,
Chris


Kellie Fitton

unread,
Jun 18, 2007, 4:49:29 PM6/18/07
to


Hi,

You can use the following APIs to change the default layout for the
currently running process, and see if that will help you out:

SetProcessDefaultLayout() LAYOUT_RTL

CreateWindowEx() WS_EX_LAYOUTRTL

SetTextAlign() TA_RTLREADING

MessageBoxEx() MB_RTLREADING

http://msdn2.microsoft.com/en-us/library/ms633542.aspx

http://msdn2.microsoft.com/en-us/library/ms632680.aspx

http://msdn2.microsoft.com/en-us/library/ms533933.aspx

http://msdn2.microsoft.com/en-us/library/ms645507.aspx

http://www.microsoft.com/globaldev/getwr/steps/WRG_mirror.mspx

Kellie.


Kellie Fitton

unread,
Jun 18, 2007, 4:50:01 PM6/18/07
to
On Jun 18, 1:09 pm, "Chris Shearer Cooper" <chrisn...@sc3.net> wrote:

Michael S. Kaplan [MSFT]

unread,
Jun 18, 2007, 10:58:25 PM6/18/07
to
Kellie is mistaken.

You do have to install complex script support via that checkbox.

You can check this by checking IsValidLocale() with Hebrew and the
LCID_INSTALLED flag.


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

"Chris Shearer Cooper" <chri...@sc3.net> wrote in message
news:137dpkl...@corp.supernews.com...

0 new messages