SDL_ttfdisplaying fonts in different sizes with same point size set

The difference is that PSP is Rendering the TTF font at 72dpi, where as SDL
is rendering it at the DPI of your monitor, where is probably 96dpi (hence
appearring smaller)

Shawn> ----- Original Message -----

From: ken@homebrewsoftware.com (Ken Rogoway)
To:
Sent: Friday, May 21, 2004 3:26 PM
Subject: [SDL] SDL_ttfdisplaying fonts in different sizes with same point
size set.

Has anyone run into this? I am using SDL_ttf to display a font. With the
same code the font displays one size on one system and much larger on
another.

One possible clue is that if I use a program like MS-Word or PaintShop Pro
to
draw the font at a given point size (32 for instance) it looks much larger
than if I use SDL_ttf to blit it on the screen using the showfont demo.

If anyone has seen this and fixed the problem I would appreciate a
suggestion.

Thanks,


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

The difference is that PSP is Rendering the TTF font at 72dpi, where as SDL
is rendering it at the DPI of your monitor, where is probably 96dpi (hence
appearring smaller)

Shawn

Okay, that explains the difference between PSP and my app, but what about my
app text size appearing different on different machines? I am running in full-
screen mode so it will always be 800x600.

  • Ken