QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[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 ...

Reply
 
LinkBack Thread Tools
Old 01-14-2009, 05:18 AM   #1
 
Join Date: Aug 2006
Posts: 30
Trader Feedback: 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 04:01 AM.. Reason: new version available (bugfixes)
BenHur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2009, 07:08 AM   #2
 
Join Date: Jun 2008
Posts: 60
Trader Feedback: 0
Default

Wow, that scrolling addon looks awesome. Thanks!!
Playboy21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2009, 07:14 AM   #3

Developer
 
homemister91's Avatar
 
Join Date: Sep 2007
Location: AUS
Posts: 281
Trader Feedback: 0
Default

Nice work
__________________
Heres to the Wyvern,
Heres to getting Wyvern,
Heres to staying Wyvern,
And if you can't get Wyvern.......
You should become a kingsman!

http://arnold.hyperphp.com/ arnold, Light_AleX and my releases

homemister91 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2009, 10:39 AM   #4
 
Join Date: Apr 2008
Posts: 28
Trader Feedback: 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.
burows is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2009, 02:11 PM   #5
 
Join Date: Aug 2006
Posts: 30
Trader Feedback: 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.
BenHur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2009, 02:07 PM   #6

OMFG
 
Slasher's Avatar
 
Join Date: Jul 2005
Location: Toronto
Posts: 2,816
Trader Feedback: 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?)
Slasher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-15-2009, 09:10 PM   #7
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 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.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-16-2009, 12:39 AM   #8
 
Join Date: Aug 2006
Posts: 30
Trader Feedback: 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
BenHur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-23-2009, 04:05 AM   #9
 
Join Date: Aug 2006
Posts: 30
Trader Feedback: 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.
BenHur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-24-2009, 12:19 PM   #10

Developer
 
xart's Avatar
 
Join Date: Dec 2005
Posts: 1,873
Trader Feedback: 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
__________________
www.xart.co.uk

coreXlib, old school library.

ColorSync Display Profiles for MacBook (LG LCD) & New MacBook (AUO LCD)
Profile for LG LP133WX1
Profile for AUO B133EW01
xart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-24-2009, 01:08 PM   #11
 

 
Join Date: May 2008
Location: The Netherlands
Posts: 330
Trader Feedback: 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]
malliet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-24-2009, 01:31 PM   #12
 
NoEffex's Avatar
 
Join Date: Jul 2008
Posts: 508
Trader Feedback: 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.
NoEffex is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-24-2009, 05:36 PM   #13

Developer
 
xart's Avatar
 
Join Date: Dec 2005
Posts: 1,873
Trader Feedback: 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.
__________________
www.xart.co.uk

coreXlib, old school library.

ColorSync Display Profiles for MacBook (LG LCD) & New MacBook (AUO LCD)
Profile for LG LP133WX1
Profile for AUO B133EW01
xart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-25-2009, 01:29 PM   #14
 
Join Date: Aug 2006
Posts: 30
Trader Feedback: 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)
BenHur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-26-2009, 09:14 AM   #15
 
Join Date: Jun 2008
Posts: 60
Trader Feedback: 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 09:34 AM..
Playboy21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-26-2009, 11:18 AM   #16

Developer
 
xart's Avatar
 
Join Date: Dec 2005
Posts: 1,873
Trader Feedback: 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.
__________________
www.xart.co.uk

coreXlib, old school library.

ColorSync Display Profiles for MacBook (LG LCD) & New MacBook (AUO LCD)
Profile for LG LP133WX1
Profile for AUO B133EW01
xart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-26-2009, 11:37 AM   #17
 
Join Date: Jun 2008
Posts: 60
Trader Feedback: 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
Playboy21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-19-2009, 02:07 PM   #18

OMFG
 
Slasher's Avatar
 
Join Date: Jul 2005
Location: Toronto
Posts: 2,816
Trader Feedback: 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?
Slasher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
025 , benhur , intrafont , release

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 05:22 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us