forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loading Fonts

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
mplacona



Joined: 07 Aug 2007
Posts: 28

PostPosted: Sun Sep 23, 2007 5:20 am    Post subject: Loading Fonts Reply with quote

Can somebody here tell me how to load a font in OSLIB. Of course I've already read and re-read the manual, and am using the normal code to load the font
Code:
oslLoadFontFile


Turns out that never happens, it loads something very strage, and unreadable.

I've created the font with the tool provided to do so, and even got a font file from the samples, but nothing works here. I'm sure there should be something else, or even an easier way to load fonts. I've tried some examples I found here, but they don't seem to work very well.

Can somebody help me with that?

Cheers
Back to top
View user's profile Send private message
Smong



Joined: 04 Sep 2007
Posts: 82

PostPosted: Sun Sep 23, 2007 8:37 pm    Post subject: Reply with quote

Somewhere along the line do you have to specify a pixel format (something like 8888)? If you specify it incorrectly it could cause textures to appear messed up.

I've never tried OSLIB, but surely there must be a sample program that uses font loading? If there aren't any samples then you could try looking for a game that was made with OSLIB and then check its source code to see how it does it.
_________________
(+[__]%)
Back to top
View user's profile Send private message
califrag



Joined: 04 Apr 2007
Posts: 30

PostPosted: Mon Sep 24, 2007 4:30 am    Post subject: Reply with quote

I don't know how easy it would be to incorporate into OSLib, but the pgeFont engine by Insert_Witty_Name is fast, flexible, and easy to use. I use it in any of my programs that need fonts.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group