SDL_ttf Inconsistencies Across Platforms (Win7 Vs. ubuntu Linux)

Hi.

Text rendered using SDL_ttf looks different on different platform OSs
(in my case Windows 7 and ubuntu Linux)

I made a web page to show this issue below:
http://www.silentheroproductions.com/sdl_ttf-Inconsistencies_Across_Platforms.html

Anyone have any ideas?
I need the text to be exactly the same across many OSs…

Thanks!!!

JeZ+Lee
SLNTHERO at aol.com
Silent Hero Productions®
Video Game Design Studio
www.SilentHeroProductions.com

Hi,On Thu, 30 Jul 2009 07:50:20 -0400, Jesse Palser wrote:

Hi.

Text rendered using SDL_ttf looks different on different platform OSs
(in my case Windows 7 and ubuntu Linux)

Anyone have any ideas?

Do you render directly via SDL or do you use OpenGL?
Try using SDL_SaveBMP to dump the full screens and the rendered texts. This
allows better comparison.


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723
MSN : msn at evilazrael.de Yahoo! : eazrael

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

Christoph Nelles wrote:

Hi,

Hi.

Text rendered using SDL_ttf looks different on different platform OSs
(in my case Windows 7 and ubuntu Linux)

Anyone have any ideas?

Do you render directly via SDL or do you use OpenGL?
Try using SDL_SaveBMP to dump the full screens and the rendered texts. This
allows better comparison.

Hi,

Thanks for a response!
I am using only SDL, SDL_ttf, and SDL_mixer (no OpenGL)
I took the screenshots in both OSs by running game and pressing [PrtScr]
button
and then pasting into my drawing program and then saved as lossless PNG
format.

Anyone have any ideas?
http://www.silentheroproductions.com/sdl_ttf-Inconsistencies_Across_Platforms.html

You can download the complete project of my SDL cross-platform Checkers
game here:
Checkers project is Open Source Freeware.
http://silentheroproductions.com/files/checkers-src-0.92.zip
Game builds and runs on both Windows and Linux and probably Mac OS X too.
(makefile is included for building on Linux)

Thanks in advanced…

JeZ+Lee
SLNTHERO at aol.com
Silent Hero Produictions®
Video Game Design Studio
www.SilentHeroProductions.com> On Thu, 30 Jul 2009 07:50:20 -0400, Jesse Palser wrote:

Not sure exactly what we’re looking at, but the text looks the same to me…

I took the screenshots in both OSs by running game and pressing [PrtScr] button
and then pasting into my drawing program and then saved as lossless PNG format.

Anyone have any ideas?
http://www.silentheroproductions.com/sdl_ttf-Inconsistencies_Across_Platforms.htmlFrom: slnthero@aol.com (Jesse Palser)
Subject: Re: [SDL] SDL_ttf Inconsistencies Across Platforms (Win7 Vs. ubuntu Linux)…

Hi,On Thu, 30 Jul 2009 05:42:07 -0700 (PDT), Mason Wheeler wrote:

Not sure exactly what we’re looking at, but the text looks the same to
me…

Take a look at the copyright notice, in the linux version it’s “bolder”.
Perhaps a problem with different DPI values in Windows/Linux.


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723
MSN : msn at evilazrael.de Yahoo! : eazrael

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

Hi,

No the text is slightly differnt
Look closely at the second line of small text:
“2009 by Silent Hero Productions®”

The “®” is past the above “0” in Windows
and on Linux the “®” is not past the above “0”

Anyone have any ideas?
http://www.silentheroproductions.com/sdl_ttf-Inconsistencies_Across_Platforms.html

You can download the complete project of my SDL cross-platform Checkers
game here:
Checkers project is Open Source Freeware.
http://silentheroproductions.com/files/checkers-src-0.92.zip
Game builds and runs on both Windows and Linux and probably Mac OS X too.
(makefile is included for building on Linux)

Thanks in advanced…

JeZ+Lee
SLNTHERO at aol.com
Silent Hero Produictions®
Video Game Design Studio
www.SilentHeroProductions.com

Mason Wheeler wrote:> Not sure exactly what we’re looking at, but the text looks the same to

me…

From: Jesse Palser
**Subject: Re: [SDL] SDL_ttf Inconsistencies Across Platforms (Win7
Vs. ubuntu Linux)…

I took the screenshots in both OSs by running game and pressing
[PrtScr] button
and then pasting into my drawing program and then saved as lossless
PNG format.

Anyone have any ideas?
http://www.silentheroproductions.com/sdl_ttf-Inconsistencies_Across_Platforms.html



SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Christoph Nelles wrote:

Hi,

Hi.

Text rendered using SDL_ttf looks different on different platform OSs
(in my case Windows 7 and ubuntu Linux)

Anyone have any ideas?

Do you render directly via SDL or do you use OpenGL? Try using
SDL_SaveBMP to dump the full screens and the rendered texts. This
allows better comparison.

Hi,

Thanks for a response!
I am using only SDL, SDL_ttf, and SDL_mixer (no OpenGL)
I took the screenshots in both OSs by running game and pressing
[PrtScr] button
and then pasting into my drawing program and then saved as lossless
PNG format.

Anyone have any ideas?
http://www.silentheroproductions.com/sdl_ttf-Inconsistencies_Across_Platforms.html

You can download the complete project of my SDL cross-platform
Checkers game here:
Checkers project is Open Source Freeware.
http://silentheroproductions.com/files/checkers-src-0.92.zip
Game builds and runs on both Windows and Linux and probably Mac OS X too.
(makefile is included for building on Linux)

Thanks in advanced…

(first I assume you’re using exactly the same font :))

SDL_ttf is using the FreeType engine to render the fonts.
FreeType may be compiled differently depending on your platform.

In particular, it can be compiled with or without the “bytecode
interpreter” due to patents threats from Apple, which change the
metrics of the fonts, and all distros do not compile it the same
(check http://freetype.org/patents.html and
http://bugs.debian.org/447801).

AFAIK Ubuntu keeps the Debian behavior of using the bytecode
interpreter. Make sure your MS Woe build is compiled the same way :slight_smile:
(cf. freetype-2.3.X/docs/TRUETYPE and
TT_CONFIG_OPTION_BYTECODE_INTERPRETER)On Thu, Jul 30, 2009 at 08:30:14AM -0400, Jesse Palser wrote:

On Thu, 30 Jul 2009 07:50:20 -0400, Jesse Palser wrote:


Sylvain

I saw :wink: Use SDL_SaveBMP() on the screen surface after rendering the full
scene and on the text surface after you rendered the text. Especially the
last one helps a lot to compare cleanly the render output of FreeType +
SDL_ttf.On Thu, 30 Jul 2009 08:30:14 -0400, Jesse Palser wrote:

Do you render directly via SDL or do you use OpenGL?
Try using SDL_SaveBMP to dump the full screens and the rendered texts.
This
allows better comparison.
Hi,

Thanks for a response!
I am using only SDL, SDL_ttf, and SDL_mixer (no OpenGL)
I took the screenshots in both OSs by running game and pressing [PrtScr]
button
and then pasting into my drawing program and then saved as lossless PNG
format.


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723
MSN : msn at evilazrael.de Yahoo! : eazrael

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

Interesting to see Debian using a patented technology in it’s distribution.On Thu, 30 Jul 2009 14:47:58 +0200, Sylvain Beucler wrote:

In particular, it can be compiled with or without the “bytecode
interpreter” due to patents threats from Apple, which change the
metrics of the fonts, and all distros do not compile it the same
(check http://freetype.org/patents.html and
http://bugs.debian.org/447801).


Christoph Nelles

E-Mail : @Christoph_Nelles
Jabber : eazrael at evilazrael.net ICQ : 78819723
MSN : msn at evilazrael.de Yahoo! : eazrael

PGP-Key : ID 0x424FB55B on subkeys.pgp.net
or http://evilazrael.net/pgp.txt

Every software project is using patented technologies, as almost
everything is patented (and fortunately, not in Europe where software
patents remain illegal):
http://webshop.ffii.org/

You probably mean it’s using a patent whose holder is actively
threatening people with it :)On Thu, Jul 30, 2009 at 03:07:35PM +0200, Christoph Nelles wrote:

On Thu, 30 Jul 2009 14:47:58 +0200, Sylvain Beucler <@Sylvain_Beucler> wrote:

In particular, it can be compiled with or without the “bytecode
interpreter” due to patents threats from Apple, which change the
metrics of the fonts, and all distros do not compile it the same
(check http://freetype.org/patents.html and
http://bugs.debian.org/447801).

Interesting to see Debian using a patented technology in it’s distribution.


Sylvain