Sign in to follow this  
Followers 0
hmsSurprise

Fonts

3 posts in this topic

I am using the little function below to show me debug data as I slog my way along. I have looked at extend styles and wherever else to find a setting for fonts as I wish to have a fixed witdth font.

Could you please clue in on a parameter to apply?

Thanx,

jh

Func display($string)

Global $debugDisplayExists

if $debugDisplayExists <> 1 Then

Opt("GUIOnEventMode", 1)

$w=515

$h=500

Global $debugDisplay_GUI = GUICreate("AutoIt Debug Display", $w, $h, @DesktopWidth-$w-15, @DesktopHeight-$h-75)

; Global $debugDisplay_GUI = GUICreate("AutoIt Debug Display", $w, $h, 1, @DesktopHeight-$h-75)

Global $debugDisplay_Edit = GUICtrlCreateEdit("", 8, 8, $w-5, $h-5, BitOR($ES_AUTOVSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_VSCROLL))

GUISetState(@SW_SHOW)

$debugDisplayExists = 1

EndIf

GUICtrlSetData($debugDisplay_Edit, $string &@CRLF, 1)

EndFunc

Share this post


Link to post
Share on other sites



Fonts have their own separate functions.

GuiSetFont()

GuiCtrlSetFont()

I do not think you can set font width though as you have asked about. Font height is the main setting.

:shocked:

Share this post


Link to post
Share on other sites

Fonts have their own separate functions.

GuiSetFont()

GuiCtrlSetFont()

I do not think you can set font width though as you have asked about. Font height is the main setting.

:shocked:

Thanks. There are several fixed width fonts like courier that have their little serifs (I think) that keep their neighbors at a distance.

http://www.lowing.org/fonts/

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