DelphiFAQ Home Search:

Display a form and its controls with Croatian font

 

comments1 comments. Current rating: 4 stars (1 votes). Leave comments and/ or rate it.

Windows uses a number of character sets (not to be confused with fonts) to handle foreign language characters. The widely used ANSI_CHARSET holds the characters of the old 7 bit ASCII set plus those used in most Western European countries. But there are others:

BALTIC_CHARSET
CHINESEBIG5_CHARSET
EASTEUROPE_CHARSET
GB2312_CHARSET
GREEK_CHARSET
HANGUL_CHARSET
MAC_CHARSET
OEM_CHARSET
RUSSIAN_CHARSET
SHIFTJIS_CHARSET
SYMBOL_CHARSET
TURKISH_CHARSET

Some of these apply to multi byte character sets (MCBS), some, like EASTEUROPE_CHARSET are for 1-byte character sets but they have different glyphs for the character codes above 127. You can select a specific character set by assigning one of these constants to a TFont.Charset property. But it depends on the Windows platform (and the language version) you are using whether that will change anything. It also depends on the font, not all fonts have multiple character set mappings build in.

The alternative (NT only) would be UNICODE fonts. However, the standard VCL controls have no support for UNICODE (they would not work on Win9x if they had).


Comments:

2008-06-10, 00:12:56
shaheen.akhtar@raftaar.in from India  
rating
Gives some Idea about char set and font.

I have installed third party unicode VCL components (TMS Unicode) but the compiler did not render the fonts correctly. Language is Hindi and Font is Mangal. If I check while debugging for TntEdit1.Text property, I get all '?' characters.

I run the application.

Pasted in Edit control some Hindi Text. It displayed correctly.

In the code editor, while debugging, it displays question mark characters. Is delphi 2005 supports unicode?

Some help please.

Regards

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.