[SOLVED] Best OpenType fonts library?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
kweensey
Posts: 26
Joined: Thu Jan 29, 2009 5:43 pm

[SOLVED] Best OpenType fonts library?

Post by kweensey »

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.
a_noob
Posts: 97
Joined: Sun Sep 17, 2006 8:33 am
Location: _start: jr 0xDEADBEEF

Post by a_noob »

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º'
kweensey
Posts: 26
Joined: Thu Jan 29, 2009 5:43 pm

Post by kweensey »

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

Code: Select all

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.. ;)
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Check psplibraries out of the repo and run the libraries script. That will build and install most of the major libs, including freetype.
kweensey
Posts: 26
Joined: Thu Jan 29, 2009 5:43 pm

Post by kweensey »

@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: 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&#58;25&#58;10&#58; error&#58; #include expects "FILENAME" or <FILENAME>
../../pgeFont.c&#58; In function 'pgeFontLoad'&#58;
../../pgeFont.c&#58;102&#58; error&#58; 'FT_Library' undeclared &#40;first use in this function&#41;

../../pgeFont.c&#58;102&#58; error&#58; &#40;Each undeclared identifier is reported only once
../../pgeFont.c&#58;102&#58; error&#58; for each function it appears in.&#41;
../../pgeFont.c&#58;102&#58; error&#58; expected ';' before 'library'
../../pgeFont.c&#58;103&#58; error&#58; 'FT_Face' undeclared &#40;first use in this function&#41;
../../pgeFont.c&#58;103&#58; error&#58; expected ';' before 'face'
../../pgeFont.c&#58;105&#58; warning&#58; implicit declaration of function 'FT_Init_FreeType
'
../../pgeFont.c&#58;105&#58; error&#58; 'library' undeclared &#40;first use in this function&#41;
../../pgeFont.c&#58;108&#58; warning&#58; implicit declaration of function 'FT_New_Face'
../../pgeFont.c&#58;108&#58; error&#58; 'face' undeclared &#40;first use in this function&#41;
../../pgeFont.c&#58;111&#58; error&#58; 'FT_GlyphSlot' undeclared &#40;first use in this functio
n&#41;
../../pgeFont.c&#58;111&#58; error&#58; expected ';' before 'slot'
../../pgeFont.c&#58;132&#58; warning&#58; implicit declaration of function 'FT_Set_Pixel_Siz
es'
../../pgeFont.c&#58;140&#58; warning&#58; implicit declaration of function 'FT_Set_Char_Size
'
../../pgeFont.c&#58;147&#58; error&#58; 'slot' undeclared &#40;first use in this function&#41;
../../pgeFont.c&#58;151&#58; warning&#58; implicit declaration of function 'FT_Load_Char'
../../pgeFont.c&#58;151&#58; error&#58; 'FT_LOAD_RENDER' undeclared &#40;first use in this funct
ion&#41;
../../pgeFont.c&#58;263&#58; warning&#58; implicit declaration of function 'FT_Done_Face'
../../pgeFont.c&#58;264&#58; warning&#58; implicit declaration of function 'FT_Done_FreeType
'
make&#58; *** &#91;../../pgeFont.o&#93; Error 1
Isn't that mean I have not successfully installed freetype library? :( I already thought it would all finally work..
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

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: Select all

int main&#40;&#41;&#123;
     SetupCallbacks&#40;&#41;;
     makeNiceGame&#40;&#41;;
     sceKernelExitGame&#40;&#41;;
&#125;
kweensey
Posts: 26
Joined: Thu Jan 29, 2009 5:43 pm

Post by kweensey »

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.. :)

Image

Problem solved! ;)
Post Reply