CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Posts
    5

    International Font

    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


  2. #2
    Join Date
    Nov 1999
    Posts
    7

    Re: International Font

    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 = "ˆê“ñŽOŽlŒÜ˜Z޵”ª‹ã\"




    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





  3. #3
    Join Date
    Jul 2001
    Posts
    30

    Re: International Font

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured