My lib has been updated to allow people to use *.ttf files instead of my old experimental font.
You can use any ttf loaded from memory or from hdd and print any kind of text as you want.
an example
This is the function that needs to be called to load a font from memory:
Font(u32 Color, u32 Size, const void *MemFont, u32 MemFont_size, Minimum *min);
#include "Andale_ttf.h" //This file will be created from the Makefile. just put your Andale.ttf inside the "data" folder
int main(){
NoRSX gfx();
Font A(COLOR_WHITE, 40, Andale_ttf, Andale_ttf_size, &gfx); //this will allow you to print on the screen a White text with the Andale ttf and with a size of 40 pixel.
//to print any kind of text i've added a printf function:
A.Printf(100,300,"This is an example %i", 10); //This will print on the screen a text at the position (100,300) on the screen, with written "This is an example 10".
}
just change the function
Font A(COLOR_WHITE, 40, Andale_ttf, Andale_ttf_size, &gfx);
Font A(COLOR_WHITE, 40, "/dev_hdd0/game/NORSX0000/Andale.ttf", &gfx);
).Now the only thing that i need to implement is make it faster (it needs a spu implementation). once done, the lib will be finally done and i will be able to add more objects and other stupid stuff that now isn't necessary.
Direct Download (source code as of 6/05/12)
GIT: github.com/wargio/NoRSX
Guide: PS3 Tutorials
deroad's Website: devram0.blogspot.com
And also, be sure to stop by his mega hacking guide!
[UPDATE]
The new update has lots of performance patches (thanks also to KDSBest) and allows more things. It can directly use the original PS3 fonts if you want by telling the lib to use them. Uou now are able also to predefine the resolution of you homebrew.
Added Screen Size Support. now you can choose the resolution of your homebrew (RESOLUTION_1920x1080, RESOLUTION_1280x720, RESOLUTION_720x576, RESOLUTION_720x480), added Performance Patch by KDSBest and Deroad, Added PS3 Font Support (LATIN2, JPN, KOR, CGB, KANA) and fixed fonts chroma key.
The next moth will be released a NoRSX PC Emulator, to help people to develop apps with NoRSX also without PS3.
Here are some preview pictures of the NoRSX PC Emulator:










Recent Threads
Recent Comments
vBulletin Message