Font library for SDL/Photon

Hi,

what font library is working well for SDL/Photon ?

Regards

–Armin

Hello, Armin!

AS> what font library is working well for SDL/Photon ?

Try to search here:
http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.

And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/

With best regards, Mike Gorchak. E-mail: mike@malva.ua

Hello Mike,

Mike Gorchak wrote:

Hello, Armin!

AS> what font library is working well for SDL/Photon ?

Try to search here:
http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.

And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/

Do you have an URL for the documentation?

Regards

–Armin


With best regards, Mike Gorchak. E-mail: > mike@malva.ua

Armin Steinhoff wrote:

Hello Mike,

Mike Gorchak wrote:

Hello, Armin!

AS> what font library is working well for SDL/Photon ?

Try to search here:
http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50

I’ve tested almost all of them, all works.

And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/


Do you have an URL for the documentation?

It’s OK already … the listed URL is working now :slight_smile:

–Armin



Regards

–Armin



With best regards, Mike Gorchak. E-mail: > mike@malva.ua

Mike Gorchak wrote:

Hello, Armin!

AS> what font library is working well for SDL/Photon ?

Try to search here:
http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.

And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/

Is there a freetype version recompiled for SDL/Photon ?

Best Regards

–Armin


With best regards, Mike Gorchak. E-mail: > mike@malva.ua

Hello, Armin!

Try to search here:

http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.
And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/
AS> Is there a freetype version recompiled for SDL/Photon ?

I’m not sure what you mean. freetype is just a library it’s not for photon
or sdl. As for precompiled libraries, I’ve them here:

http://mike.qnx.org.ru/qopencd/qprs/SDL_ttf_x86-1.2.6-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/freetype2_x86-2.1.9-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zlib_x86-1.2.2-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL_x86-1.2.8-x86-public.qpr

That’s all what you need to install.

As for zlib - be careful it overwrites the static libraries of zlib and
headers, which are shipped with QNX by default. Dymanic libraries can
coexist, because they are have different .so numbers. Zlib was needed due to
bad zlib, which is shipped with QNX, it lack of few functions (low level
zlib function for processing fragments of the stream), which are must be
exported in dynamic library, because many opensource applications uses them.
If you have some doubts about installing of my build of zlib, try to create
symbol link from the shipped libz.so.2 to the libz.so.3, on which all
packages are depends. As far as I remember freetype2 is not that library
which needs the low level zlib functions.

With best regards, Mike Gorchak. E-mail: mike@malva.ua

Mike Gorchak wrote:

Hello, Armin!

Try to search here:

http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.
And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/
AS> Is there a freetype version recompiled for SDL/Photon ?

I’m not sure what you mean. freetype is just a library it’s not for photon
or sdl. As for precompiled libraries, I’ve them here:

http://mike.qnx.org.ru/qopencd/qprs/SDL_ttf_x86-1.2.6-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/freetype2_x86-2.1.9-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zlib_x86-1.2.2-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL_x86-1.2.8-x86-public.qpr

Thank you. I have already recompiled SDL, SDL_Gfx (patched with
QNX.diff) and and SDL_ttf.

But I have problems with the fonts. The ‘TestFonts’ example of SDL_Gfx
works only stable with 8 bpp … it crashes with 16bpp and 32bpp.
(The video mode is set to 16bpp) The demo example for SDL_ttf works only
if the optimization -O2 is not used (strange). I have tried to fix these
problems but I always running into gdb problems.

Best Regards

–Armin






That’s all what you need to install.

As for zlib - be careful it overwrites the static libraries of zlib and
headers, which are shipped with QNX by default. Dymanic libraries can
coexist, because they are have different .so numbers. Zlib was needed due to
bad zlib, which is shipped with QNX, it lack of few functions (low level
zlib function for processing fragments of the stream), which are must be
exported in dynamic library, because many opensource applications uses them.
If you have some doubts about installing of my build of zlib, try to create
symbol link from the shipped libz.so.2 to the libz.so.3, on which all
packages are depends. As far as I remember freetype2 is not that library
which needs the low level zlib functions.

With best regards, Mike Gorchak. E-mail: > mike@malva.ua

Hello, Armin!

http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.
And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/
AS>> Is there a freetype version recompiled for SDL/Photon ?
I’m not sure what you mean. freetype is just a library it’s not for
photon or sdl. As for precompiled libraries, I’ve them here:
http://mike.qnx.org.ru/qopencd/qprs/SDL_ttf_x86-1.2.6-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/freetype2_x86-2.1.9-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zlib_x86-1.2.2-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL_x86-1.2.8-x86-public.qpr

AS> Thank you. I have already recompiled SDL, SDL_Gfx (patched with
AS> QNX.diff) and and SDL_ttf.

AS> But I have problems with the fonts. The ‘TestFonts’ example of SDL_Gfx
AS> works only stable with 8 bpp … it crashes with 16bpp and 32bpp.
AS> (The video mode is set to 16bpp) The demo example for SDL_ttf works
AS> only if the optimization -O2 is not used (strange). I have tried to fix
AS> these problems but I always running into gdb problems.

I will take a look onto both on weekend. The problem sounds very
interesting.

With best regards, Mike Gorchak. E-mail: mike@malva.ua

Mike Gorchak wrote:

Hello, Armin!


http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50
I’ve tested almost all of them, all works.
And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/
AS>> Is there a freetype version recompiled for SDL/Photon ?
I’m not sure what you mean. freetype is just a library it’s not for
photon or sdl. As for precompiled libraries, I’ve them here:
http://mike.qnx.org.ru/qopencd/qprs/SDL_ttf_x86-1.2.6-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/freetype2_x86-2.1.9-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zlib_x86-1.2.2-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL_x86-1.2.8-x86-public.qpr

AS> Thank you. I have already recompiled SDL, SDL_Gfx (patched with
AS> QNX.diff) and and SDL_ttf.

AS> But I have problems with the fonts. The ‘TestFonts’ example of SDL_Gfx
AS> works only stable with 8 bpp … it crashes with 16bpp and 32bpp.
AS> (The video mode is set to 16bpp) The demo example for SDL_ttf works
AS> only if the optimization -O2 is not used (strange). I have tried to fix
AS> these problems but I always running into gdb problems.

I will take a look onto both on weekend. The problem sounds very

The SDL_Gfx problem with the fonts depends on the video adapter/driver.
It’s working with an ATI adapter which is set to 32 bits per pixel …
The problem is related to a CT adapter/driver … the
SDL_UpdataRect(screen,0,0,0,0) is crashing.

The compile problem with the demo of SDL_ttf is independend from the
video adapter … it is just strange :slight_smile:

Many thanks so far

–Armin

PS: message reposted

interesting.

With best regards, Mike Gorchak. E-mail: > mike@malva.ua

Hi Mike,

I have recompiled all SDL stuff with the gcc 3.3.1 and all is working now.

In the moment I’m trying to port the latest libsigc++ … but it seems
to be very hard to do.

That’s current status :slight_smile: :

DEPDIR=.deps depmode=gcc /bin/sh …/depcomp
/bin/sh …/libtool --tag=CXX --mode=compile QCC -DHAVE_CONFIG_H -I…
-I… -g -O2 -c -o s
mkdir .libs
QCC -DHAVE_CONFIG_H -I… -I… -g -O2 -c signal.cc
-Wp,-MD,.deps/signal.TPlo -fPIC -DPIC -o
In file included from …/sigc++/signal.h:8,
from signal.cc:22:
…/sigc++/signal_base.h: In instantiation of std::list<sigc::slot_base, std::allocator<sigc .../sigc++/signal_base.h:195: instantiated from std::list<sigc::slot_base, std::allocator<
…/sigc++/signal_base.h:195: instantiated from here
/usr/qnx630/target/qnx6/usr/include/cpp/list:74: error: typedef class std::allocator<sigc::slot_base> std::_List_val<sigc::slot_base, std::allocator<sigc::slot_base> >::_Alty' is protected .../sigc++/signal_base.h:195: error: within this context /usr/qnx630/target/qnx6/usr/include/cpp/list:74: error: typedef class
std::allocatorsigc::slot_base std::_List_val<sigc::slot_base,
std::allocatorsigc::slot_base >::_Alty’ is protected
…/sigc++/signal_base.h:195: error: within this context
/usr/qnx630/target/qnx6/usr/include/cpp/list:74: error: typedef class std::allocator<sigc::slot_base> std::_List_val<sigc::slot_base, std::allocator<sigc::slot_base> >::_Alty' is protected .../sigc++/signal_base.h:195: error: within this context cc: /usr/qnx630/host/qnx6/x86/usr/lib/gcc-lib/i386-pc-nto-qnx6.3.0/3.3.1/cc1plus error 1 make[3]: *** [signal.lo] Error 1 make[3]: Leaving directory /opt/libsigc+±2.0.16/sigc++’

Regards

–Armin


Armin Steinhoff wrote:

Mike Gorchak wrote:

Hello, Armin!


http://www.libsdl.org/libraries.php?order=name&category=any&completed=0&os=any&match_name=font&perpage=50

I’ve tested almost all of them, all works.
And there is “native” library for the TTF fonts:
http://www.libsdl.org/projects/SDL_ttf/
AS>> Is there a freetype version recompiled for SDL/Photon ?
I’m not sure what you mean. freetype is just a library it’s not for
photon or sdl. As for precompiled libraries, I’ve them here:
http://mike.qnx.org.ru/qopencd/qprs/SDL_ttf_x86-1.2.6-x86-public.qpr

http://mike.qnx.org.ru/qopencd/qprs/freetype2_x86-2.1.9-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zlib_x86-1.2.2-x86-public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL_x86-1.2.8-x86-public.qpr

AS> Thank you. I have already recompiled SDL, SDL_Gfx (patched with
AS> QNX.diff) and and SDL_ttf.

AS> But I have problems with the fonts. The ‘TestFonts’ example of
SDL_Gfx
AS> works only stable with 8 bpp … it crashes with 16bpp and 32bpp.
AS> (The video mode is set to 16bpp) The demo example for SDL_ttf works
AS> only if the optimization -O2 is not used (strange). I have tried
to fix
AS> these problems but I always running into gdb problems.

I will take a look onto both on weekend. The problem sounds very



The SDL_Gfx problem with the fonts depends on the video adapter/driver.
It’s working with an ATI adapter which is set to 32 bits per pixel …
The problem is related to a CT adapter/driver … the
SDL_UpdataRect(screen,0,0,0,0) is crashing.

The compile problem with the demo of SDL_ttf is independend from the
video adapter … it is just strange > :slight_smile:

Many thanks so far

–Armin

PS: message reposted

interesting.

With best regards, Mike Gorchak. E-mail: > mike@malva.ua

Hello, Armin!

AS> I have recompiled all SDL stuff with the gcc 3.3.1 and all is working
AS> now.

FYI: SDL 1.2.10 is out today/yesterday, but there is no QNX improvements.
And QNX version doesn’t support few new APIs yet. I’m planning to schedule a
bit of my time to take a look on to it and to try synchronize QNX port with
the current tree.

With best regards, Mike Gorchak. E-mail: mike@malva.ua

Mike Gorchak wrote:

Hello, Armin!

AS> I have recompiled all SDL stuff with the gcc 3.3.1 and all is working
AS> now.

FYI: SDL 1.2.10 is out today/yesterday, but there is no QNX improvements.
And QNX version doesn’t support few new APIs yet. I’m planning to schedule a
bit of my time to take a look on to it and to try synchronize QNX port with
the current tree.

AFAIK … there are no dramatical improvments in 1.2.10, so I will stay
with 1.2.9 for a while.
I’m using also SDL_Gfx and wGui for programming of Photon based GUI
applications with our graphical functionblock tool DACHSview-SDL.
(Widgets defined by hierachically defined (embedded) functionblocks)

Many thanks for your efforts

–Armin

Hi Mike,

the last stable release of SDL is 1.2.11. Are there any changes
necessary in the Photon interface ??

Best Regards

–Armin


Mike Gorchak wrote:

Hello, Armin!

AS> I have recompiled all SDL stuff with the gcc 3.3.1 and all is working
AS> now.

FYI: SDL 1.2.10 is out today/yesterday, but there is no QNX improvements.
And QNX version doesn’t support few new APIs yet. I’m planning to schedule a
bit of my time to take a look on to it and to try synchronize QNX port with
the current tree.

With best regards, Mike Gorchak. E-mail: > mike@malva.ua