Submit Your Own Code

PSP Lua CodeBase : Load/Print a Font

Description:
An example of using your own font. (.TTF file)

-- EVILMANA.COM PSP LUA CODEBASE
-- www.evilmana.com/tutorials/codebase
-- Load/Print a Font
-- SUBMITTED BY: EminentJonFrost

snapitc = Font.load("snapitc.TTF") --load font, extension doesnt have to be capitalized

snapitc:setPixelSizes(0,10) --you HAVE to specify size white = Color.new(255, 255, 255)

while true do

screen:clear()

screen:fontPrint(snapitc,100,100,"Custom Font",white)

screen.waitVblankStart()

screen.flip()

end

--just a side note, if you want a font from your PC, --go to C:\WINDOWS\Fonts

Back to CodeBase
 

Please welcome stepbrother1988, our newest member.

Who's Online:

Total Members: 844
Total Posts: 13009
Total Topics: 1473
Total Categories: 7
Total Boards: 25

Recent Posts:

Re: chek it out i made front page of qj.net by chi-kitory
Re: chek it out i made front page of qj.net by Rick
Re: Hi everyone (remember me? :P) by Tdude_gamer
Re: Hi everyone (remember me? :P) by dan369
Hi everyone (remember me? :P) by Tdude_gamer
Re: Hows everyone doing? by osgeld
Re: Homebrew Idol 3: The Homebrew Horror Show by dan369
Problem on Tag game by andykd7


Copyright © 2006-2009 www.EvilMana.com All rights reserved.
EvilMana Logo by emcp and Charlie