| View previous topic :: View next topic |
| Author |
Message |
kweensey
Joined: 29 Jan 2009 Posts: 26
|
Posted: Mon Nov 30, 2009 6:54 pm Post subject: [SOLVED] Best OpenType fonts library? |
|
|
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 |
|
 |
a_noob
Joined: 17 Sep 2006 Posts: 97 Location: _start: jr 0xDEADBEEF
|
Posted: Tue Dec 01, 2009 1:03 am Post subject: |
|
|
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 |
|
 |
kweensey
Joined: 29 Jan 2009 Posts: 26
|
Posted: Tue Dec 01, 2009 1:58 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Dec 01, 2009 3:51 am Post subject: |
|
|
| 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 |
|
 |
kweensey
Joined: 29 Jan 2009 Posts: 26
|
Posted: Wed Dec 02, 2009 12:48 am Post subject: |
|
|
@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 |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Wed Dec 02, 2009 2:20 am Post subject: |
|
|
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 |
|
 |
kweensey
Joined: 29 Jan 2009 Posts: 26
|
Posted: Wed Dec 02, 2009 2:36 am Post subject: |
|
|
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 |
|
 |
|