Jump to content

Embedding font in compiled binary and loading per-session


Go to solution Solved by UEZ,

Recommended Posts

Posted

I am trying to embed a font file in my compiled binary with the following:

#AutoIt3Wrapper_Res_File_Add=embed\Aptos-Mono.ttf, rt_rcdata, aptos_ttf

And trying to load it temporarily (per-session) with various iterations of the following:

_WinAPI_AddFontResourceEx(@ScriptFullPath & ", aptos_ttf", $FR_PRIVATE)

But I can't seem to get that to work and I've tried a few different things with the _WinAPI_AddFontResourceEx line.

I know that I could FileInstall and load it easy that way, but I would prefer to load it directly from the compiled binary resources if possible.

Thank you for any help or ideas with this. :)

  • Solution
Posted (edited)

Here you should find one way how to embed your font (Display Font from Memory):

 

 

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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
  • Recently Browsing   1 member

×
×
  • Create New...