Hey, everybody,
could you advice me which library is the best (fastest, easiest to use, etc.) for work with OpenType fonts, please?
Thanks.
kweensey
[SOLVED] Best OpenType fonts library?
[SOLVED] Best OpenType fonts library?
Last edited by kweensey on Wed Dec 02, 2009 3:17 am, edited 1 time in total.
well they would require the freetype library, but the best psp front end would most likely be pgeFont, by InsertWittyName.
Code: Select all
.øOº'ºOø.
'ºOo.oOº'
I tried to install freetype library several times (I followed this quide) but I always got some error while executing these lines:
I'll reinstall my Cygwin and PSPToolChain and try it again..
Thanks for advice, I'll try pgeFont.. ;)
Code: Select all
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host psp --prefix=$(psp-config --psp-prefix)
Thanks for advice, I'll try pgeFont.. ;)
@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:
Isn't that mean I have not successfully installed freetype library? :( I already thought it would all finally work..
EDIT:
I reinstalled cygwin + psptoolchain and ran psplibraries script. Then I tried to compile pgeFont sample. I got these errors:
Code: Select all
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
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
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: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
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! ;)
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! ;)