| View previous topic :: View next topic |
| Author |
Message |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Sun Sep 23, 2007 5:20 am Post subject: Loading Fonts |
|
|
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
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 |
|
 |
Smong
Joined: 04 Sep 2007 Posts: 82
|
Posted: Sun Sep 23, 2007 8:37 pm Post subject: |
|
|
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 |
|
 |
califrag
Joined: 04 Apr 2007 Posts: 30
|
Posted: Mon Sep 24, 2007 4:30 am Post subject: |
|
|
| 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 |
|
 |
|