Sign in to follow this  
Followers 0
CyberSlug

Autogui Fonts?

2 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0