• 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:

    PHP Code:
    Font(u32 Color, u32 Size, const void *MemFont, u32 MemFont_size, Minimum *min);

    so for example if my font is Andale.ttf, and i want to load it from memory, i would call:

    PHP Code:
    #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".
    }

    you can also load ttf loaded from hdd (as i said before).
    just change the function

    PHP Code:
    Font A(COLOR_WHITE, 40, Andale_ttf, Andale_ttf_size, &gfx);

    with this one:

    PHP Code:
    Font A(COLOR_WHITE, 40, "/dev_hdd0/game/NORSX0000/Andale.ttf", &gfx);

    This will load the font from the hdd. (you can use also the ps3 fonts already included with your ps3 :D ).
    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.

    [GIT] https://github.com/wargio/NoRSX
    deroad’s Website: devram0.blogspot.com
    @Via PSX-SCENE

    Discuss in Forums (8)


  • 8 Comments

    1. H3avyRa1n
      06-08-2012
      05:08 PM
      1

      thanks [MENTION=83161]deroad[/MENTION]

    2. hellsing9
      06-09-2012
      08:36 AM
      2

      Nice [MENTION=83161]deroad[/MENTION] thanks

    3. shaneag13
      06-09-2012
      08:44 AM
      3

      Thankyou [MENTION=83161]deroad[/MENTION] for you dedication and time : )

    4. NTA
      06-09-2012
      02:09 PM
      4

      So I'm now able to use different fonts on the ps3? Legit!

    5. manster
      06-11-2012
      11:35 AM
      5

      [MENTION=83161]deroad[/MENTION]:
      here's an interesting tweet from KDSBest (in case you have missed it)

      #norsx by #deroad I got alot of performing tweaks you could use to get some more FPS. Just get back to me I will explain to you.

    6. deroad
      06-11-2012
      01:35 PM
      6

      i already saw it :D

    7. Simonbuck
      06-29-2012
      09:03 AM
      7

      UPDATE: deroad has released NoRSX v0.1.1, as well as annoucned NoRSX Emulator for the PC (Note: Not a PS3 Emulator!)

      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.

      [SPOILER][/SPOILER]

      SOURCE Psx-scene

    8. DEFAULTDNB
      06-29-2012
      09:05 AM
      8

      Awesome update :D Big up [MENTION=83161]deroad[/MENTION] and [MENTION=45614]KDSBest[/MENTION]