Sign in to follow this  
Followers 0
Weaver

_WinAPI_AddFontResourceEx from Function Reference

1 post in this topic

Why am I unable to find the 'Gdi' Library include files for this function?

#include <APIGdiConstants.au3>     <<<<<<<<<<<<<<<<<<<<
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WinAPIGdi.au3>               <<<<<<<<<<<<<<<<<<<<<

_WinAPI_AddFontResourceEx(@ScriptDir & 'ExtrasSF Square Head Bold.ttf', $FR_PRIVATE)

GUICreate('Test ' & StringReplace(@ScriptName, '.au3', '()'), 400, 100)
GUICtrlCreateLabel('Simple Text', 10, 25, 380, 50, $SS_CENTER)
GUICtrlSetFont(-1, 38, -1, -1, 'SF Square Head Bold')
GUICtrlSetColor(-1, 0xF06000)
GUISetState(@SW_SHOW)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

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