Microsoft KB Archive/266370

= PRB: Controls that Use FoxFont are Unreadable on Arabic or Hebrew OS =

Article ID: 266370

Article Last Modified on 8/27/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q266370



SYMPTOMS
If any of the FoxFont files are installed in the Windows\Fonts folder, some controls that use the font are unreadable in Visual FoxPro 6.0 forms that are being run under the Arabic or Hebrew versions of Windows.



RESOLUTION
When you are using Visual FoxPro or developing Visual FoxPro applications for use on Arabic or Hebrew versions of Windows, set the FontName property of Combobox, Editbox, Listbox, Spinner, and Textbox controls to a value other than &quot;FoxFont.&quot;



MORE INFORMATION
When the FoxFont is installed in the Windows\Fonts directory, and the FontName property of certain controls is set to &quot;FoxFont,&quot; the controls do not display readable data. Spinners, edit, list, and text boxes that are used on Visual FoxPro forms with a FontName property of &quot;FoxFont&quot; display data as a gray bar. Comboboxes on Visual FoxPro forms with a FontName property of &quot;FoxFont&quot; do not display as a gray bar; however, the display values and ListItem values are not visible.

Steps to Reproduce Behavior
 Using either an Arabic or Hebrew version of Windows, install the FoxFont in the Windows\Fonts folder.  Create a program (.prg) file named FoxFont.prg using the following code: PUBLIC ox ox = CREATEOBJECT(&quot;demo&quot;) ox.Show

DEFINE CLASS demo AS form Name = &quot;demo&quot;

ADD OBJECT textbox1 AS textbox WITH ; Height = 25, ; Top = INT((ThisForm.Height - 12.5) / 2), ; Width = 96, ; Left = INT((ThisForm.Width - 48) / 2), ; FontName = &quot;FoxFont&quot;, ; Value = &quot;Demo&quot;, ; Visible = .T.

ADD OBJECT textbox2 AS textbox WITH ; Height = 25, ; Top = INT((ThisForm.Height - 12.5) / 2) + 30, ; Width = 96, ; Left = INT((ThisForm.Width - 48) / 2), ; FontName = &quot;Arial&quot;, ; Value = &quot;Demo&quot;, ; Visible = .T.

ADD OBJECT commandbutton1 AS commandbutton WITH ; Caption = &quot;\ Save and run the program file. Note that TextBox1 appears as a gray bar.

(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by John Desch, Microsoft Corporation.

Keywords: kbcodesnippet kbcontainer kbprb kbctrl KB266370

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.