Sfont wierdness

anyone run into problems where they can only access one SFont object,
always the last one loaded. if i try to access any others it will
always return the last loaded font.

anyone run into problems where they can only access one SFont object,
always the last one loaded. if i try to access any others it will
always return the last loaded font.

IIRC, SFont is done in C, so no objects there. Look at SoFont for a (albeit a
bit weird) port to C++.

HTH KaiOn Wednesday 06 November 2002 21:29, Brian Sugar wrote:


Kai Blin Linux system administrator Tel: Ring-86592
Allgemeine Chirurgie Universitaetsklinikum Tuebingen

QOTD:
“Like this rose, our love will wilt and die.”

It’s true there aren’t any objects, however, if you use InitFont2 and
retain a copy of the SFont_FontInfo and send it into PutString2 any time
you need to use that font. Then you can access as many fonts as you
need.
RobertOn Thu, 2002-11-07 at 02:57, Kai Blin wrote:

On Wednesday 06 November 2002 21:29, Brian Sugar wrote:

anyone run into problems where they can only access one SFont object,
always the last one loaded. if i try to access any others it will
always return the last loaded font.

IIRC, SFont is done in C, so no objects there. Look at SoFont for a (albeit a
bit weird) port to C++.

HTH Kai


Kai Blin Linux system administrator Tel: Ring-86592
Allgemeine Chirurgie Universitaetsklinikum Tuebingen

QOTD:
“Like this rose, our love will wilt and die.”


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