Jump to content

Font Function


Kalantar
 Share

Recommended Posts

Font Function


Font Function Tool (Open Source)

Using this function, you can add font to your texts.  (17 fonts are supported)

 

Also, you can change the default font anywhere in the script (example: from choice menu).

defaultFont = 1

You can write a text with a different font from other texts.

-- Font 1 (defaultFont) :
gg.alert(_("Hello World"))


-- Font 4 :
gg.alert(_("Hello World"), 4) 

 

You can also add your own fonts: Number of font letters must be:

62( UpperCase + LowerCase + Numbers)

52(UpperCase + LowerCase)

36(Upper/Lower Case + Numbers)

26(Upper/Lower Case only)

10(Numbers Only)

 

How to use : Copy this function and paste it in your script. Set defaultFont in frist line of script.


 

Link to comment
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
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.