Vector Font

Hey guys! Been a while. I’ve started working on this. Its like the arcade-text-sprite extension, but uses line-drawing instead of individual pixels rescaled.

All you need so far is to have the functions in the code (i’d like to make it an extension but i’m not sure how), and use the following function:

print_string("TEXT", 1, 2, 3)

I’ll break it down for you: starts dancing

No, seriously:

Breakdown

The first part ,“TEXT”, is where you put the text.

The second part, 1, is the row you put it on. It can be a decimal like 3.5.

The third part, 2, is the size multiplier, affects the size of the text. Can also be a decimal.

The fourth part, 3, is the colour. Choose from 0-16, although 0 is transparent.

Currect Character set

ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 (alphanumeric only)

Let me know if you guys like it and i can:

  • add more characters

  • add more fonts

  • make it an extension (i’ll have to find out how)

Cheers!

5 Likes