Click to See Complete Forum and Search --> : International Font
Lorddard
December 7th, 1999, 07:52 AM
In Character set, there are some unsupport character from Microsoft, I have international fonts, can I import or use it in my VB project? Please show me how, because there are some characters I really need to use, that not listed in Character set
Thank you
IngisKahn
December 7th, 1999, 10:29 AM
Setting the character set property will do it. For example, the following will show the numbers 1-10 in kanji. (if you have a compatable font)
With Label1.Font
Name = "Arial Unicode MS"
Charset = 128
End With
Label1 = "一二三四五六七八九十"
I just used copy & paste to get the characters, but that depends on what you copy from. Mess around.
Here are the character sets as defined in Wingdi.h:
#define ANSI_CHARSET 0
#define DEFAULT_CHARSET 1
#define SYMBOL_CHARSET 2
#define SHIFTJIS_CHARSET 128
#define HANGEUL_CHARSET 129
#define HANGUL_CHARSET 129
#define GB2312_CHARSET 134
#define CHINESEBIG5_CHARSET 136
#define OEM_CHARSET 255
#define JOHAB_CHARSET 130
#define HEBREW_CHARSET 177
#define ARABIC_CHARSET 178
#define GREEK_CHARSET 161
#define TURKISH_CHARSET 162
#define VIETNAMESE_CHARSET 163
#define THAI_CHARSET 222
#define EASTEUROPE_CHARSET 238
#define RUSSIAN_CHARSET 204
#define MAC_CHARSET 77
#define BALTIC_CHARSET 186
funniest
July 31st, 2001, 01:47 PM
What about the characters that are >255. Since we can't copy&paste these character into VB code, what should we do?
For example:
With Label1.Font
Name = "Arial Unicode MS"
Charset = 163 'Vietnamese
End With
Label1 = ... 'Some large-value characters here
Then how to code these chars?
Thanks
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.