View topic - Font library for SDL/Photon

Font library for SDL/Photon

Read-only archive of qnx.gui (Creating graphical applications within a GUI environment, such as Photon or PhAB) at inn.qnx.com

Font library for SDL/Photon

Postby Steinhoff » Wed May 10, 2006 7:16 am

Hi,

what font library is working well for SDL/Photon ?

Regards

--Armin
Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Mike Gorchak » Wed May 10, 2006 7:33 am

Hello, Armin!

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

Try to search here:
http://www.libsdl.org/libraries.php?ord ... 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
Mike Gorchak
 

Re: Font library for SDL/Photon

Postby Steinhoff » Wed May 10, 2006 1:02 pm

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?ord ... 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

Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Steinhoff » Wed May 10, 2006 8:39 pm

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

--Armin



Regards

--Armin



With best regards, Mike Gorchak. E-mail: mike@malva.ua
Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Steinhoff » Thu May 11, 2006 11:58 am

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?ord ... 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

Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Mike Gorchak » Thu May 11, 2006 12:33 pm

Hello, Armin!

Try to search here:

http://www.libsdl.org/libraries.php?ord ... 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 ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/fre ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zli ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL ... 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
 

Re: Font library for SDL/Photon

Postby Steinhoff » Fri May 12, 2006 7:10 am

Mike Gorchak wrote:
Hello, Armin!

Try to search here:

http://www.libsdl.org/libraries.php?ord ... 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 ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/fre ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zli ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL ... 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

Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Mike Gorchak » Fri May 12, 2006 7:14 am

Hello, Armin!

http://www.libsdl.org/libraries.php?ord ... 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 ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/fre ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zli ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL ... 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
 

Re: Font library for SDL/Photon

Postby Steinhoff » Fri May 12, 2006 11:02 am

Mike Gorchak wrote:
Hello, Armin!


http://www.libsdl.org/libraries.php?ord ... 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 ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/fre ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zli ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL ... 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 :)

Many thanks so far

--Armin

PS: message reposted

interesting.

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

Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Steinhoff » Fri May 12, 2006 8:23 pm

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

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::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::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?ord ... 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 ... public.qpr

http://mike.qnx.org.ru/qopencd/qprs/fre ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/zli ... public.qpr
http://mike.qnx.org.ru/qopencd/qprs/SDL ... 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 :)

Many thanks so far

--Armin

PS: message reposted

interesting.

With best regards, Mike Gorchak. E-mail: mike@malva.ua
Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Mike Gorchak » Thu May 18, 2006 12:59 pm

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
 

Re: Font library for SDL/Photon

Postby Steinhoff » Tue May 23, 2006 9:59 am

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
Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am

Re: Font library for SDL/Photon

Postby Steinhoff » Sun Aug 06, 2006 2:52 pm

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

Steinhoff
QNX Master
 
Posts: 279
Joined: Tue Sep 03, 2002 11:56 am


Return to qnx.gui

Who is online

Users browsing this forum: No registered users and 2 guests