Advanced Strategic Command
Classes | Macros | Typedefs | Functions | Variables
newfont.h File Reference
#include "global.h"
#include "basestrm.h"
#include "palette.h"
Include dependency graph for newfont.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toldcharacter
 
struct  toldfont
 
struct  tcharacter
 
struct  tfont
 
struct  tfontsettings
 

Macros

#define lefttext   0
 
#define centertext   1
 
#define righttext   2
 

Typedefs

typedef char charr [49]
 
typedef signed char tkerning [101][101]
 
typedef char tkernchartable [256]
 
typedef tfontpfont
 

Functions

void expand (void *p1, void *q1, int size)
 
void showtext2 (const ASCString &TextToOutput, int x1, int x2)
 
void showtext2c (const ASCString &TextToOutput, int x1, int x2)
 
pfont loadfont (tnstream *stream)
 
void showtext4 (const char *TextToOutput, int x1, int y1,...)
 
void showtext4c (const char *TextToOutput, int x1, int y1,...)
 
void showtext3 (const char *txt, int xpos, int ypos)
 
void showtext3c (const char *txt, int xpos, int ypos)
 
int gettextwdth (const char *txt, pfont font)
 
void shrinkfont (pfont font, int diff)
 
char * int2string (int i, char *buf)
 

Variables

tfontsettings activefontsettings
 
const char * fontid
 

Macro Definition Documentation

#define centertext   1
#define lefttext   0
#define righttext   2

Typedef Documentation

typedef char charr[49]

Definition at line 110 of file newfont.h.

typedef tfont* pfont

Definition at line 162 of file newfont.h.

typedef char tkernchartable[256]

Definition at line 121 of file newfont.h.

typedef signed char tkerning[101][101]

Definition at line 120 of file newfont.h.

Function Documentation

void expand ( void *  p1,
void *  q1,
int  size 
)

Definition at line 53 of file newfont.cpp.

Referenced by loadfont().

int gettextwdth ( const char *  txt,
pfont  font 
)
char* int2string ( int  i,
char *  buf 
)

Definition at line 448 of file newfont.cpp.

References digit, gettextwdth(), itoa(), tfontsettings::length, and strrr().

pfont loadfont ( tnstream stream)
void showtext2 ( const ASCString TextToOutput,
int  x1,
int  x2 
)
void showtext2c ( const ASCString TextToOutput,
int  x1,
int  x2 
)

Definition at line 1958 of file basegfx.cpp.

References showtext().

Referenced by showtext3c(), and showtext4c().

void showtext3 ( const char *  txt,
int  xpos,
int  ypos 
)
void showtext3c ( const char *  txt,
int  xpos,
int  ypos 
)
void showtext4 ( const char *  TextToOutput,
int  x1,
int  y1,
  ... 
)

Definition at line 416 of file newfont.cpp.

References showtext2().

void showtext4c ( const char *  TextToOutput,
int  x1,
int  y1,
  ... 
)

Definition at line 428 of file newfont.cpp.

References showtext2c().

void shrinkfont ( pfont  font,
int  diff 
)

Definition at line 206 of file newfont.cpp.

References tfont::character, tfont::kerning, and tcharacter::size.

Referenced by loadLegacyFonts().

Variable Documentation

tfontsettings activefontsettings
const char* fontid

Definition at line 45 of file newfont.cpp.

Referenced by loadfont().