Type   Default Value   Read Only   Description
String "Default" No The charset to be used when drawing text



The charset to be used when drawing text.

You are only likely to need to change the charset if you are drawing symbols or text from complex scripts such as Japanese, Korean and Arabic.

If you know the ID of your character set you can use that number. Alternatively you can use any of the following shortcuts:

  • ANSI
  • Default
  • Symbol
  • Russian
  • GB2312
  • Greek
  • Turkish
  • Baltic
  • Hebrew
  • Arabic
  • ShiftJIS
  • Hangeul
  • Hangul
  • ChineseBIG5
  • Johab
  • Vietnamese
  • Thai
  • EastEurope
  • Mac
See Also

Gestalt TextCharset property.
Canvas DrawText method.



If you want to use a mixture of standard text fonts and symbol fonts you will need to use the TextCharset property. The following code does just that.

Set ca = Server.CreateObject("ImageGlue7.Canvas")
ca.TextFont = "Times"
ca.TextSize = 24
ca.Color = "yellow"
ca.Width = 300
ca.Height = 200
ca.DrawText "Some text...", "Pos=0,0"
ca.TextCharset = "Symbol"
ca.DrawText "Symbols.", "textfont=Wingdings Pos=0,60"
ca.DrawText "Some more text...", "textcharset=ANSI textfont=Times Pos=0,120"
ca.SaveAs Server.MapPath("symboltext.gif"), ""

It produces the following output image.