How do I change fonts?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 1
- Joined: Sat Oct 12, 2013 1:23 pm
How do I change fonts?
I wish to use different fonts in a program that I'm making. I use Old London for certain phrases and then switch back to Arial. I also want to use a Barcode font. Can I do that?
Re: How do I change fonts?
I would recommend taking a look at Robin's richtext. Other than that, I'm not sure what you mean by "Barcode font"...
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Re: How do I change fonts?
First, load a font:
and then switch to it with
Everything you write after this command uses this font.
If you want to use different fonts at the same time, then load all of them (using multiple variable, e.g. fontArial, fontBarcode...) and switch between them.
Code: Select all
font = love.graphics.newFont( filename, size )
Code: Select all
love.graphics.setFont(font);
If you want to use different fonts at the same time, then load all of them (using multiple variable, e.g. fontArial, fontBarcode...) and switch between them.
Check out my blog on gamedev
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 11 guests