Using Unicode Charaters

Discussion in 'Computer Science & Culture' started by TheDon, Jul 30, 2003.

Thread Status:
Not open for further replies.
  1. TheDon Registered Senior Member

    Messages:
    46
    If I wanted to use some of the more obscure Unicode characters in say this forum or MSN messenger or something, how would I go about it?

    Say for instance I wanted to use the Japanese characters or the Musical Symbols in a normal piece of text, is there anyway of doing this?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Success_Machine Impossible? I can do that Registered Senior Member

    Messages:
    365
    I didn't really dig into it, but this webpage looked like a good place to start. In fact I may just dig into it at some point. Some of the character tables included hexadecimal and decimal representations. Perhaps message boards could be programmed to accept hex code for special symbols, and a "tips & tricks" link to the above website. Even better would be to store the entire contents of that website here, just in case the owner of that website decides to shut it down.

    I don't know if this is relevant but I recently saw code in Visual Basic 6.0 that includes an API function called "createfont" that can be included in function declarations like this:

    Private Declare Function CreateFont Lib "gdi32" Alias "CreateFontA" (ByVal H As Long, ByVal W As Long, ByVal E As Long, ByVal O As Long, ByVal W2 As Long, ByVal I As Long, ByVal u As Long, ByVal S As Long, ByVal C As Long, ByVal OP As Long, ByVal CP As Long, ByVal Q As Long, ByVal PAF As Long, ByVal F As String) As Long


    You have to declare constants like this:

    Private Const FW_BOLD = 700
    Private Const ANSI_CHARSET = 0
    Private Const OUT_DEFAULT_PRECIS = 0
    Private Const CLIP_CHARACTER_PRECIS = 1
    Private Const CLIP_LH_ANGLES = 16
    Private Const PROOF_QUALITY = 2
    Private Const VARIABLE_PITCH = 2
    Private Const FF_ROMAN = 16


    And then define a variable whose handle can be passed to different procedures like this:

    new_font = CreateFont(12, 0, 900, 900, _
    FW_BOLD, False, False, False, _
    ANSI_CHARSET, OUT_DEFAULT_PRECIS, _
    CLIP_LH_ANGLES Or CLIP_CHARACTER_PRECIS, _
    PROOF_QUALITY, 0, "Arial")



    Of course this may confuse things.
     
    Last edited: Jul 31, 2003
  4. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page