The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the newest Gaming News from
QJ.NET in your email each day?




Want to learn more about the team who brings you the QJ news?

Read about them now!

 


Results 1 to 18 of 18

[release] intraFont 0.25

This is a discussion on [release] intraFont 0.25 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; About teaching an old dog new tricks: the new version of intraFont supports scrolling text - just like in the ...

  
  1. #1
    QJ Gamer Blue
    Points: 4,111, Level: 40
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Join Date
    Aug 2006
    Posts
    30
    QJ Pts
    4,111
    Level
    40
    Downloads
    0
    Uploads
    0

    Default [release] intraFont 0.25 -> 0.26

    About teaching an old dog new tricks: the new version of intraFont supports scrolling text - just like in the XMB, when there's not enough space to display a whole line at once. There are four different scrolling styles: left, seesaw (back&forth), right and through (sweep from right to left).



    intraFont 0.25 can be downloaded from here. Check out the binaries to see what I'm talking about. Study the samples if you want to know how it's used. (Binaries and samples are included in the archive.)

    If you know other tricks that I should teach this old dog (i.e. implement in intraFont), let me know.

    See you, BenHur

    ---

    Update:
    intraFont 0.26 is now available. Changes:
    • bug fixed where text could be mis-aligned after newline character (thanks to Slasher)
    • bug fixed in multi-byte string parsing (thanks to xart)
    • in scrolling text newline characters are replaced by spaces (to prevent graphical glitches)

    Outlook: In the next version I plan to add chinese characters and support for traditional (Big5) and simplified (GBK) chinese.

    See you, BenHur
    Last edited by BenHur; 01-23-2009 at 03:01 AM. Reason: new version available (bugfixes)

  2. #2
    QJ Gamer Green
    Points: 2,664, Level: 31
    Level completed: 43%, Points required for next Level: 86
    Overall activity: 0%

    Join Date
    Jun 2008
    Posts
    60
    QJ Pts
    2,664
    Level
    31
    Downloads
    0
    Uploads
    0

    Default

    Wow, that scrolling addon looks awesome. Thanks!!

  3. #3
    QJ Gamer Silver
    Points: 8,667, Level: 62
    Level completed: 73%, Points required for next Level: 83
    Overall activity: 0%

    Join Date
    Sep 2007
    Location
    AUS
    Posts
    282
    QJ Pts
    8,667
    Level
    62
    Downloads
    0
    Uploads
    0

    Default

    Nice work
    Wyvern. That is all

  4. #4
    QJ Gamer Blue
    Points: 3,003, Level: 33
    Level completed: 69%, Points required for next Level: 47
    Overall activity: 0%

    Join Date
    Apr 2008
    Posts
    30
    QJ Pts
    3,003
    Level
    33
    Downloads
    0
    Uploads
    0

    Default Arabic language for psp.

    hello can you add the language "Arab" because it is impossible to read the language in the Internet browser and xmb all Arabs want this language pout and thank you all.

  5. #5
    QJ Gamer Blue
    Points: 4,111, Level: 40
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Join Date
    Aug 2006
    Posts
    30
    QJ Pts
    4,111
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by burows View Post
    hello can you add the language "Arab" because it is impossible to read the language in the Internet browser and xmb all Arabs want this language pout and thank you all.
    @Burows: That's not directly related to the development of intraFont, but an interesting suggestion nevertheless. Please, check your private messages.

  6. #6
    OMFG
    Points: 19,453, Level: 88
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Join Date
    Jul 2005
    Location
    Toronto
    Posts
    2,814
    QJ Pts
    19,453
    Level
    88
    Downloads
    0
    Uploads
    0

    Default

    Excellent work Benhur, thank you so much for releasing yet another fantastic version of intraFont.

    One thing I've noticed though which may or may not be a bug: In one of my apps I've just updated intraFont from version 0.21 to version 0.24, and some of my text isn't like it used to be. It occurs when I have a long message that would normally take up the entire width of the screen so I manually put in a '\n' character to send it to the next line, and it happens when using the INTRAFONT_ALIGN_CENTER parameter. In version 0.21 it would center the first line, and all of the next lines accordingly - but in this newer version the first line is centered, but all of the following lines are always left-aligned.

    I'm not sure whether that makes sense to you or not, but maybe it's worth looking into :)

    Here's an example,

    (See the text near the bottom?
    Code:
    intraFontSetStyle(ltn[0], 0.5f, RGB(textColour,textColour,textColour), 0xFFFFFFFF, INTRAFONT_ALIGN_CENTER);
    intraFontPrint(ltn[0], 240, 220, "(Known Bug: If you connect and then disconnect,\n you may need to restart Asterz.)");
    Notice how the first line is centered, but the next line isn't?)

  7. #7
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    This should still work:
    Code:
    intraFontSetStyle(ltn[0], 0.5f, RGB(textColour,textColour,textColour), 0xFFFFFFFF, INTRAFONT_ALIGN_CENTER);
    intraFontPrint(ltn[0], 240, 220, "(Known Bug: If you connect and then disconnect,)");
    intraFontPrint(ltn[0], 240, 230, "(you may need to restart Asterz.)");
    Although I suppose you still have a valid point.

  8. #8
    QJ Gamer Blue
    Points: 4,111, Level: 40
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Join Date
    Aug 2006
    Posts
    30
    QJ Pts
    4,111
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Slasher View Post
    One thing I've noticed though which may or may not be a bug: In one of my apps I've just updated intraFont from version 0.21 to version 0.24, and some of my text isn't like it used to be. It occurs when I have a long message that would normally take up the entire width of the screen so I manually put in a '\n' character to send it to the next line, and it happens when using the INTRAFONT_ALIGN_CENTER parameter. In version 0.21 it would center the first line, and all of the next lines accordingly - but in this newer version the first line is centered, but all of the following lines are always left-aligned.
    Yup, that's a bug: I didn't properly test '\n' behaviour as I was busy implementing the auto-linebreaking. Thanks for the report, I'll fix it in version 0.26. Until then you could
    • use intraFontPrintColumn() without '\n', but with an appropriate column width
    • use the suggestion made by Art
    • use intraFont 0.22 (if you don't need anything new)


    Cheers, BenHur

  9. #9
    QJ Gamer Blue
    Points: 4,111, Level: 40
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Join Date
    Aug 2006
    Posts
    30
    QJ Pts
    4,111
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    intraFont 0.26 is now available for download. It fixes the alignment after '\n' bug and some more... Check the first post on this thread for the download.

  10. #10
    Developer
    Points: 17,663, Level: 84
    Level completed: 63%, Points required for next Level: 187
    Overall activity: 54.0%

    Join Date
    Dec 2005
    Posts
    1,896
    QJ Pts
    17,663
    Level
    84
    Downloads
    0
    Uploads
    0

    Default

    Her is an idea.
    Add this to your intraFont.h file to make selecting the font and style easer in code.

    Code:
    #define INTRAFONT_LATIN(f)   ltn[f]
    
    #define INTRAFONT_SERIF      0x01
    #define INTRAFONT_ITALIC     0x02
    #define INTRAFONT_BOLD       0x04
    #define INTRAFONT_SMALL      0x08

  11. #11
    QJ Gamer Green
    Points: 3,567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    330
    QJ Pts
    3,567
    Level
    37
    Downloads
    0
    Uploads
    0

    Default

    Is this the newest version? I would swear that I saw a 0.26 somewhere or am I wrong?
    [spoiler=My Releases So Far]
    PSP_Operator v2.0 Final (and earlier; stopped with this one)
    Mario's Road v2.0 (working on 2.5:D)
    UMD_Operator v0.0.2 (and earlier; stopped with this one)
    PSP-Quiz v0.1 (working on v0.2 already:D)
    [/spoiler]

  12. #12
    QJ Gamer Green
    Points: 4,092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Join Date
    Jul 2008
    Posts
    508
    QJ Pts
    4,092
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by xart View Post
    Her is an idea.
    Add this to your intraFont.h file to make selecting the font and style easer in code.

    Code:
    #define INTRAFONT_LATIN(f)   ltn[f]
    
    #define INTRAFONT_SERIF      0x01
    #define INTRAFONT_ITALIC     0x02
    #define INTRAFONT_BOLD       0x04
    #define INTRAFONT_SMALL      0x08
    In that case wouldn't an

    Code:
    enum intraFontCodes{
    INTRAFONT_SERIF = 0x01,
    INTRAFONT_ITALIC = 0x02,
    INTRAFONT_BOLD = 0x04,
    INTRAFONT_SMALL = 0x08
    };
    Be a bit nicer?
    I gone and made that one power spoofer and that gay cheat device.

  13. #13
    Developer
    Points: 17,663, Level: 84
    Level completed: 63%, Points required for next Level: 187
    Overall activity: 54.0%

    Join Date
    Dec 2005
    Posts
    1,896
    QJ Pts
    17,663
    Level
    84
    Downloads
    0
    Uploads
    0

    Default

    I understand why you suggested enum but to me #define feel correct, enum tend to be use to with passing values to functions parameters so only values the function deals with are ever passed and none valid produce an error on compile time to avoid bugs in code.

    So I would go with #define instead of enum in this case.
    Any how we will see what BenHur will do.

  14. #14
    QJ Gamer Blue
    Points: 4,111, Level: 40
    Level completed: 81%, Points required for next Level: 39
    Overall activity: 0%

    Join Date
    Aug 2006
    Posts
    30
    QJ Pts
    4,111
    Level
    40
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by xart View Post
    Her is an idea.
    Add this to your intraFont.h file to make selecting the font and style easer in code.

    Code:
    #define INTRAFONT_LATIN(f)   ltn[f]
    
    #define INTRAFONT_SERIF      0x01
    #define INTRAFONT_ITALIC     0x02
    #define INTRAFONT_BOLD       0x04
    #define INTRAFONT_SMALL      0x08
    Thanks for the idea. However, intraFont handles only single pgf files on purpose: The application needs to load only the required font files, which saves memory and loading time. Your suggestion only works if all files are loaded exactly like in the intraFont sample code. (There everything is loaded to demonstrate its capabilities - a real application probably doesn't need all fonts.) But I want to leave it up to the developer, how and which fonts are loaded...

    Quote Originally Posted by malliet View Post
    Is this the newest version? I would swear that I saw a 0.26 somewhere or am I wrong?
    you are right (the first post was updated, but I wasn't able to change the thread title)

  15. #15
    QJ Gamer Green
    Points: 2,664, Level: 31
    Level completed: 43%, Points required for next Level: 86
    Overall activity: 0%

    Join Date
    Jun 2008
    Posts
    60
    QJ Pts
    2,664
    Level
    31
    Downloads
    0
    Uploads
    0

    Default

    I can't load my images.

    Edit : Oh sorry BenHur, the readme.txt explained everything about the graphics.h :)
    Last edited by Playboy21; 01-26-2009 at 08:34 AM.

  16. #16
    Developer
    Points: 17,663, Level: 84
    Level completed: 63%, Points required for next Level: 187
    Overall activity: 54.0%

    Join Date
    Dec 2005
    Posts
    1,896
    QJ Pts
    17,663
    Level
    84
    Downloads
    0
    Uploads
    0

    Default

    I am working on my SXLibrary that is to be released when enough is added and fully works with intraFont without issues, so my library dosn't have any text as BenHur has a library that we all use a like.

    Be released as simple .c & .h files like intraFont


    Don't know if anyone has looked at giving intraFont the ability to render text in 3D, but it is somethink i am looking at soon.

  17. #17
    QJ Gamer Green
    Points: 2,664, Level: 31
    Level completed: 43%, Points required for next Level: 86
    Overall activity: 0%

    Join Date
    Jun 2008
    Posts
    60
    QJ Pts
    2,664
    Level
    31
    Downloads
    0
    Uploads
    0

    Default

    Well, i don't really see the need of one seeing that adding several lines of code (Gu stuff), sorts it all out, but yea, it'll be cool :)

    I'll try it as soon as it's out xart :)

  18. #18
    OMFG
    Points: 19,453, Level: 88
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Join Date
    Jul 2005
    Location
    Toronto
    Posts
    2,814
    QJ Pts
    19,453
    Level
    88
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by xart View Post
    Don't know if anyone has looked at giving intraFont the ability to render text in 3D, but it is somethink i am looking at soon.
    That is definitely an interest of mine. Except I have no idea how to alter it to do that... Do you know how to?


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





All times are GMT -8. The time now is 07:14 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2013, Caputo Media, LLC. All Rights Reserved. Cluster C3.
Contact Us | Free Flash Games | Ad Blockers Suck! Why?