Jump to content
Sign in to follow this  
KaFu

Font Awesome from memory

Recommended Posts

image.png.622cbbad8e53239df1a9a1f8919187f9.png

"Font Awesome" from memory, coded by KaFu 16-Feb-2019, heavily based on code by UEZ

otf "Font Awesome" desktop font files downloaded from
https://fontawesome.com/how-to-use/on-the-desktop/setup/getting-started

encoded and embedded into the script using

UEZ - File to Base64 String Code Generator v1.20 Build 2015-01-20 (embed your files easily)

plus his excellent example "Display Font from Memory"

 

There are three free font files from Font Awesome. Copy the relevant parts per font from the example to your script.

Search here for the icon you want, when you click the single icon you'll find the corresponding Unicode to use for this icon on the top-left.

Font Awesome - Solid
https://fontawesome.com/icons?d=gallery&s=solid&m=free

Font Awesome - Regular
https://fontawesome.com/icons?d=gallery&s=regular&m=free

Font Awesome - Brands
https://fontawesome.com/icons?d=gallery&s=brands&m=free

 

Download example script

Font Awesome from Memory_v0003.zip

 

Enjoy  :thumbsup:

 

Share this post


Link to post
Share on other sites

Thanks for sharing, and now, a request.

There is https://www.autoitscript.com/forum/topic/183610-fontawesome-udf-v10-easy-to-add-cool-icon-text-to-your-project/ and https://www.autoitscript.com/forum/topic/181997-font-icon-udf/. There is also https://www.autoitscript.com/forum/files/file/399-svg2png/

The request is to have the SVG to load from memory to a control. It'd be easier to find, and would take less space  :)  

 

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...