Search found 28 matches

by BenHur
Tue Feb 09, 2010 6:54 am
Forum: PSP Development
Topic: freetype
Replies: 6
Views: 4569

Re: freetype

I wasn't able to look at the intrafont thing... can you post a link or somethinf for the wrapper lib? The intraFont archive (link provided above) contains 2 samples - just study them. (Hint: intraFont uses a lot of stuff from pgeFont and its usage is very similar. And remember: intraFont does NOT r...
by BenHur
Fri Feb 05, 2010 12:42 am
Forum: PSP Development
Topic: freetype
Replies: 6
Views: 4569

Why not use an existing and proven solution: pgeFont by InsertWittyName does it nicely and you don't have to worry about the details (get it e.g. from here ). The source code is included, so you could also learn from that. BTW: If you want to display text using the PSP's internal fonts use intraFont...
by BenHur
Tue Dec 22, 2009 6:45 am
Forum: PSP Development
Topic: access user mode memory from kernel mode
Replies: 1
Views: 1827

access user mode memory from kernel mode

Hi, I'm using the htmlviewer (from the pspsdk sample dir) and hook some sceIO-functions to intercept file-queries to serve websites to it (the goal is a simple offline wiki-reader). However, I seem to have problems in the kernel module with allocating memory from the user mode memory block (kernel m...
by BenHur
Thu Dec 17, 2009 10:51 pm
Forum: PSP Development
Topic: current url in the embedded browser
Replies: 4
Views: 3294

Good idea, I'll look into hooking the sceIoOpen function.

Thanks Torch!
by BenHur
Thu Dec 17, 2009 8:54 am
Forum: PSP Development
Topic: current url in the embedded browser
Replies: 4
Views: 3294

current url in the embedded browser

Hi, I'm launching the embedded browser from homebrew (sceUtilityHtmlViewer*) displaying a local file. I'd like to detect when the user clicks on a link and retrieve the new url. Is there a field where the current url is stored? Can anybody point me in the right direction? Or: how would you go about ...
by BenHur
Mon Aug 31, 2009 11:52 pm
Forum: PSP Development
Topic: Get ltn0.pgf from XMB
Replies: 1
Views: 1832

Re: Get ltn0.pgf from XMB

Hi, im creating a graphic library for the XMB. I want to use IntraFont, but it uses too much RAM, so I think it's possible to dump the memory and retrieve the adress of the already loaded font by XMB. But how ? Anyone know the "real" PGFHeader structure used by XMB ? intraFont was created...
by BenHur
Sat Mar 07, 2009 7:52 am
Forum: PSP Development
Topic: Unicode conversion
Replies: 2
Views: 1384

Re: Unicode conversion

I read the Game Title from PARAM.SFO, which is in UTF-8. I need to convert it into Unicode. Please note that I deal with multi-byte characters in game title (Chinese/Japanese etc.) Please help me what are the library functions available to do this conversion. UTF-8 to unicode conversion is simple (...
by BenHur
Mon Dec 15, 2008 6:52 pm
Forum: PSP Development
Topic: Need fast font library
Replies: 26
Views: 11824

Yes, I've seen this function, ( intraFontMeasure* ) but if I try to measure a string that contains special characters ( like 'è' or 'à' ) I've the lenght of he string form the first char to the firs special char! 'è' and 'à' are not part of the standard ascii table (0x8A and 0x85), but part of the ...
by BenHur
Sun Dec 14, 2008 6:24 am
Forum: PSP Development
Topic: Need fast font library
Replies: 26
Views: 11824

Next I doesn't have a monospaced font, intraFont has not a constant width, so... Yes, it does (but it's ugly). Study the sample provided with intraFont. The 4th parameter of intraFontSetStyle lets you set the monospace-width, e.g. to 12 pixels: intraFontSetStyle(ltn[8], 1.0f...
by BenHur
Thu Aug 07, 2008 7:23 am
Forum: PSP Development
Topic: dc v6 graphics
Replies: 241
Views: 355148

Moonlight, really cool! I'm in the middle of writing the intraGUI library (reading and decrypting rcos, loading gims and displaying dialogs with the PSP look-and-feel) and boom: everything's here! Out of curiosity: is the font displaying that much of a pain that you use intraFont? Again, this is a l...
by BenHur
Fri Jun 06, 2008 7:49 am
Forum: PSP Development
Topic: Int and float from file to array, been stumped for 5 hours
Replies: 2
Views: 1738

@Crux Shouldn't your output contain the words "noteTime:" and "noteButton:"? Did it really print 3 digits after the decimal point (0.000), even though you specified 1 digit? Anyway, if atof conversion fails it returns 0.0. Thus I would check the input strings and make sure there ...
by BenHur
Tue Dec 04, 2007 4:04 am
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

intraFont 0.22 is out, it has a couple of fixes and optimizations and two new features: 1. S-JIS string parsing for developers using Japanese 2. ASCII characters caching (for those who need only the standard character set, but want to save on memory and loadtime) More details in the readme. Cheers,...
by BenHur
Wed Nov 28, 2007 8:45 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

A cachewriteback at the proper position might solve that issue. Not sure yet where that might be. EDIT: On another note, it might be (seeing how only a few out of that lot of text drawn are messed up) that the artifacts are caused by hitting the font texture 'wrap' boundary (unless you use CACHEALL...
by BenHur
Tue Nov 27, 2007 3:54 am
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

Well, I thought about that point too and it's only an issue when having to rasterize whole strings - in which case the easy solution would be rasterizing all shadows first, then the glyphs. Not really complicated :) Sorry, I don't get it - maybe it's because of the word "rasterizing". At ...
by BenHur
Tue Nov 27, 2007 12:33 am
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

Only problem I'm thinking about atm is how to properly handle glyph shadows. Either I'm providing a functionality to choose whether to grab the glyph OR the shadow image, then render them both using GU (as done in intraFont), or I write some software code that mixes them both together into one glyp...
by BenHur
Mon Nov 26, 2007 11:18 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

Should pspFont library be low-level and only provide the ability to render the glyphs or strings into an image buffer (no dependency on sceGu) or have an inbuilt back-end for the rasterization too (like intraFont currently does)? Just an idea if you're heading towards the first approach: freetype (...
by BenHur
Mon Nov 26, 2007 6:58 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

There seems to be another issues relating to caching when drawing lots of text. I get a lot of 'noise' as Daedalus's UI is rendering lots of text. Just for narrowing down the cause: have you tried INTRAFONT_CACHE_ALL or INTRAFONT_CACHE_LARGE when loading the fonts with intraFontLoad? The former fin...
by BenHur
Fri Nov 23, 2007 7:43 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

It's definitely fine mixing indexed and non-indexed textures - check out the pspsdk samples. FWIW Daedalus quite happily mixes a number of different texture formats. I just call sceGuTextMode and sceGuTexImage to install each texture. Thanks for the info. A small note on the bug you reported earlie...
by BenHur
Fri Nov 23, 2007 7:05 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

What am I missing? Can I not mix indexed and non-indexed textures? That's my first guess, too. BUT, I'm by no means a GU-expert: the intraFont rendering stuff is pretty much identical to that of pgeFont. So you shouldn't rely on my opinion, but hopefully get a reply from someone who knows/wrote thi...
by BenHur
Fri Nov 23, 2007 1:05 am
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

intraFont 0.21 (bugfix version) and PGF binary format doc

I released version 0.21 of intraFont which fixes the bugs discovered by StrmnNrmn (possible graphical glitches, function could return a wrong value). You can download it from http://www.psp-programming.com/benhur For those interested in the binary format of PGF files: at the same place you'll find a...
by BenHur
Wed Nov 21, 2007 7:00 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

the samples work fine on fw 1.50 but will crash at 84% on 3.52 M33 under booth kernels. maybe its caused by some mods. will try it on a clean system again asap. Since my PSP is a 3.52 M33-2, I would assume it's a moded font that causes the problem. ttf2pgf was written with little knowledge of the p...
by BenHur
Wed Nov 21, 2007 6:58 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

There is a bug in the call to sceGuDrawArray though. It's passing in twice as many verts as it should do for GU_SPRITES: sceGuDrawArray&#40;GU_SPRITES, GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_2D, &#40;n_glyphs+n_sglyphs&#41;<<2, 0, v&#41;; It should be: sceGuDr...
by BenHur
Wed Nov 21, 2007 1:35 am
Forum: PSP Development
Topic: TRS (phone jack) plugged + Speaker sound output possible?
Replies: 21
Views: 10228

I don't have insight into firmware/hardware functionality, but know of this thread:
http://forums.ps2dev.org/viewtopic.php?t=8732

Hope it helps, BenHur
by BenHur
Tue Nov 20, 2007 11:20 pm
Forum: PSP Development
Topic: genuine PSP font with intraFont & PGF binary format
Replies: 51
Views: 39288

genuine PSP font with intraFont & PGF binary format

Here's a simple solution to use (all of) the genuine PSP fonts: http://www.psp-programming.com/benhur/intraFont_0.2.png It features the stuff you see above plus: variable size glyph cache, pre-caching, fast speed (as little as 35ms initial loadtime per font; up to 100,000 chars/sec), low memory requ...
by BenHur
Wed Nov 14, 2007 9:05 am
Forum: PSP Development
Topic: Displaying japanese characters in homebrews
Replies: 12
Views: 15045

That looks nice, hope you release it soon :) Here it is: intraFont - version 0.1 http://rapidshare.com/files/69530117/intraFont_0.1.zip.html It's still in an early stage (not everything implemented and probably a few bugs), but it works. The archive contains samples for GU and graphics.h - just loo...
by BenHur
Wed Nov 14, 2007 6:14 am
Forum: PSP Development
Topic: Displaying japanese characters in homebrews
Replies: 12
Views: 15045

Nice.. But How can we verify the authenticity, my eyes hint at P.S. :(? [seeing it's a publically available font] Sorry, I don't understand (my first language isn't Enlish): - what authenticity? what's a P.S. ? - do you mean the PSPs internal font is publically available? I thought some japanese co...
by BenHur
Wed Nov 14, 2007 5:56 am
Forum: PSP Development
Topic: Displaying japanese characters in homebrews
Replies: 12
Views: 15045

Hi plebihan, I'm just about to finish a little library (called intraFont) which let's you use the PSPs internal fonts: http://img151.imageshack.us/img151/3129/scrshottg7.png As you can see it can also render japanese characters (these are random, I do not know what they mean!). Before I finalize it ...
by BenHur
Sat Oct 20, 2007 10:29 pm
Forum: PSP Development
Topic: pgf format
Replies: 13
Views: 9808

I'm not aware of a program capable of handling pgf files. The file format is known good enough to generate pgf files (thanks to Skylark and Freeplay), but not to read generic pgf files. I did some more research (sorry for the long post, skip it if you're not interested in the pgf file format): ****p...