Jump to content

Autogui Fonts?


Recommended Posts

I cannot use "WingDings" or "Webdings" as the font. However, "Symbol" and most other fonts work....

$font = "Wingdings"

GUICreate("FontTestFoo")
GUIDefaultFont(12, 400, $font) ;sets font only if called GUICreate first

$label = GUISetControl("label", "This is a label", 0, 0)
GUISetControlFont($label, 12, 400, $font) ;try again to set font

GUIWaitClose()
I'm using AutoGUI 3.0.102.12 on Windows XP, by the way.
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

I cannot use "WingDings" or "Webdings" as the font.  However, "Symbol" and most other fonts work....

$font = "Wingdings"

GUICreate("FontTestFoo")
GUIDefaultFont(12, 400, $font);sets font only if called GUICreate first

$label = GUISetControl("label", "This is a label", 0, 0)
GUISetControlFont($label, 12, 400, $font);try again to set font

GUIWaitClose()
I'm using AutoGUI 3.0.102.12 on Windows XP, by the way.
I have no idea why such symbols fonts cannot be used.

Perhaps Larry or Valik have some hints on that. :whistle:

EDIT: it looks like changing the charset from ANSI_CHARSET to DEFAULT_CHARSET solve it

Edited by jpm
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...