forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] Best OpenType fonts library?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
kweensey



Joined: 29 Jan 2009
Posts: 26

PostPosted: Mon Nov 30, 2009 6:54 pm    Post subject: [SOLVED] Best OpenType fonts library? Reply with quote

Hey, everybody,
could you advice me which library is the best (fastest, easiest to use, etc.) for work with OpenType fonts, please?

Thanks.
kweensey


Last edited by kweensey on Wed Dec 02, 2009 3:17 am; edited 1 time in total
Back to top
View user's profile Send private message
a_noob



Joined: 17 Sep 2006
Posts: 97
Location: _start: jr 0xDEADBEEF

PostPosted: Tue Dec 01, 2009 1:03 am    Post subject: Reply with quote

well they would require the freetype library, but the best psp front end would most likely be pgeFont, by InsertWittyName.
_________________
Code:
.øOº'ºOø.
'ºOo.oOº'
Back to top
View user's profile Send private message AIM Address MSN Messenger
kweensey



Joined: 29 Jan 2009
Posts: 26

PostPosted: Tue Dec 01, 2009 1:58 am    Post subject: Reply with quote

I tried to install freetype library several times (I followed this quide) but I always got some error while executing these lines:

Code:
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host psp --prefix=$(psp-config --psp-prefix)


I'll reinstall my Cygwin and PSPToolChain and try it again..

Thanks for advice, I'll try pgeFont.. ;)
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Dec 01, 2009 3:51 am    Post subject: Reply with quote

Check psplibraries out of the repo and run the libraries script. That will build and install most of the major libs, including freetype.
Back to top
View user's profile Send private message AIM Address
kweensey



Joined: 29 Jan 2009
Posts: 26

PostPosted: Wed Dec 02, 2009 12:48 am    Post subject: Reply with quote

@J.F.: Thanks, I'll try it..

EDIT:

I reinstalled cygwin + psptoolchain and ran psplibraries script. Then I tried to compile pgeFont sample. I got these errors:

Code:

kweensey@AcutakeViper ~/projects/pgefont/samples/graphics
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -g -D_PSP_FW_VERSI
ON=150   -c -o fonttest.o fonttest.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -g -D_PSP_FW_VERSI
ON=150   -c -o graphics.o graphics.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -g -D_PSP_FW_VERSI
ON=150   -c -o framebuffer.o framebuffer.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -g -D_PSP_FW_VERSI
ON=150   -c -o ../../pgeFont.o ../../pgeFont.c
In file included from ../../pgeFont.c:24:
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/include/ft2build.h:56:38: er
ror: freetype/config/ftheader.h: No such file or directory
../../pgeFont.c:25:10: error: #include expects "FILENAME" or <FILENAME>
../../pgeFont.c: In function 'pgeFontLoad':
../../pgeFont.c:102: error: 'FT_Library' undeclared (first use in this function)

../../pgeFont.c:102: error: (Each undeclared identifier is reported only once
../../pgeFont.c:102: error: for each function it appears in.)
../../pgeFont.c:102: error: expected ';' before 'library'
../../pgeFont.c:103: error: 'FT_Face' undeclared (first use in this function)
../../pgeFont.c:103: error: expected ';' before 'face'
../../pgeFont.c:105: warning: implicit declaration of function 'FT_Init_FreeType
'
../../pgeFont.c:105: error: 'library' undeclared (first use in this function)
../../pgeFont.c:108: warning: implicit declaration of function 'FT_New_Face'
../../pgeFont.c:108: error: 'face' undeclared (first use in this function)
../../pgeFont.c:111: error: 'FT_GlyphSlot' undeclared (first use in this functio
n)
../../pgeFont.c:111: error: expected ';' before 'slot'
../../pgeFont.c:132: warning: implicit declaration of function 'FT_Set_Pixel_Siz
es'
../../pgeFont.c:140: warning: implicit declaration of function 'FT_Set_Char_Size
'
../../pgeFont.c:147: error: 'slot' undeclared (first use in this function)
../../pgeFont.c:151: warning: implicit declaration of function 'FT_Load_Char'
../../pgeFont.c:151: error: 'FT_LOAD_RENDER' undeclared (first use in this funct
ion)
../../pgeFont.c:263: warning: implicit declaration of function 'FT_Done_Face'
../../pgeFont.c:264: warning: implicit declaration of function 'FT_Done_FreeType
'
make: *** [../../pgeFont.o] Error 1


Isn't that mean I have not successfully installed freetype library? :( I already thought it would all finally work..
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Dec 02, 2009 2:20 am    Post subject: Reply with quote

The problem is that the compiler can't find any of the freetype headers.

You can solve this problem by tweaking your include dirs.

You now have:
sdkpath/psp/sdk/include/freetype2/freetype

You have to copy the freetype folder to the include folder so you have

sdkpath/psp/sdk/include/freetype
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
kweensey



Joined: 29 Jan 2009
Posts: 26

PostPosted: Wed Dec 02, 2009 2:36 am    Post subject: Reply with quote

Of course! I know this problem was in regural installation of freetype but I thought this problem is solved in psplibraries installation.. Thanks a lot!

EDIT: It's working! It's really working!!! Aaaa! :D Thank you! Thank you very much for help! Thanks to J.F. for psplibraries hint and thanks to a_noob for pgeFont hint, too.. I'm so happy.. :)



Problem solved! ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group