Atrinik Client 2.5
Data Structures | Defines | Typedefs | Enumerations | Variables
include/text.h File Reference

Go to the source code of this file.

Data Structures

struct  font_struct

Defines

#define TEXT_MARKUP   1
#define TEXT_WORD_WRAP   2
#define TEXT_SOLID   4
#define TEXT_ALIGN_CENTER   8
#define TEXT_HEIGHT   16
#define TEXT_VALIGN_CENTER   32
#define TEXT_NO_COLOR_CHANGE   64
#define TEXT_OUTLINE   128
#define TEXT_LINES_CALC   256
#define TEXT_LINES_SKIP   512
#define TEXT_NO_FONT_CHANGE   1024
#define TEXT_WIDTH   2048
#define COLOR_WHITE   "ffffff"
#define COLOR_ORANGE   "ff9900"
#define COLOR_NAVY   "00ffff"
#define COLOR_RED   "ff3030"
#define COLOR_GREEN   "00ff00"
#define COLOR_BLUE   "0080ff"
#define COLOR_GRAY   "999999"
#define COLOR_BROWN   "c07f40"
#define COLOR_PURPLE   "cc66ff"
#define COLOR_PINK   "ff9999"
#define COLOR_YELLOW   "ffff33"
#define COLOR_DK_NAVY   "00c4c2"
#define COLOR_DK_GREEN   "006600"
#define COLOR_DK_ORANGE   "ff6600"
#define COLOR_BRIGHT_PURPLE   "ff66ff"
#define COLOR_HGOLD   "d4d553"
#define COLOR_DGOLD   "999900"
#define COLOR_BLACK   "000000"
#define FONT_HEIGHT(font)   (fonts[(font)].height)

Typedefs

typedef struct font_struct font_struct

Enumerations

enum  {
  FONT_SANS7, FONT_SANS8, FONT_SANS9, FONT_SANS10,
  FONT_SANS11, FONT_SANS12, FONT_SANS13, FONT_SANS14,
  FONT_SANS15, FONT_SANS16, FONT_SANS18, FONT_SANS20,
  FONT_SERIF8, FONT_SERIF10, FONT_SERIF12, FONT_SERIF14,
  FONT_SERIF16, FONT_SERIF18, FONT_SERIF20, FONT_SERIF22,
  FONT_SERIF24, FONT_SERIF26, FONT_SERIF28, FONT_SERIF30,
  FONT_SERIF32, FONT_SERIF34, FONT_SERIF36, FONT_SERIF38,
  FONT_SERIF40, FONT_MONO8, FONT_MONO9, FONT_MONO10,
  FONT_MONO12, FONT_MONO14, FONT_MONO16, FONT_MONO18,
  FONT_MONO20, FONT_ARIAL8, FONT_ARIAL10, FONT_ARIAL11,
  FONT_ARIAL12, FONT_ARIAL13, FONT_ARIAL14, FONT_ARIAL15,
  FONT_ARIAL16, FONT_ARIAL18, FONT_ARIAL20, FONT_LOGISOSO8,
  FONT_LOGISOSO10, FONT_LOGISOSO12, FONT_LOGISOSO14, FONT_LOGISOSO16,
  FONT_LOGISOSO18, FONT_LOGISOSO20, FONT_FANWOOD8, FONT_FANWOOD10,
  FONT_FANWOOD12, FONT_FANWOOD14, FONT_FANWOOD16, FONT_FANWOOD18,
  FONT_FANWOOD20, FONT_COURIER8, FONT_COURIER10, FONT_COURIER12,
  FONT_COURIER14, FONT_COURIER16, FONT_COURIER18, FONT_COURIER20,
  FONT_PECITA8, FONT_PECITA10, FONT_PECITA12, FONT_PECITA14,
  FONT_PECITA16, FONT_PECITA18, FONT_PECITA20, FONTS_MAX
}

Variables

font_struct fonts [FONTS_MAX]

Detailed Description

Header file for text drawing API.

Definition in file text.h.


Define Documentation

#define FONT_HEIGHT (   font)    (fonts[(font)].height)

Get font's maximum height.

Definition at line 277 of file text.h.


Typedef Documentation

typedef struct font_struct font_struct

One font.


Enumeration Type Documentation

anonymous enum

The font IDs.

Enumerator:
FONT_SANS7 

Sans, 7px.

FONT_SANS8 

Sans, 8px.

FONT_SANS9 

Sans, 9px.

FONT_SANS10 

Sans, 10px.

FONT_SANS11 

Sans, 11px.

FONT_SANS12 

Sans, 12px.

FONT_SANS13 

Sans, 13px.

FONT_SANS14 

Sans, 14px.

FONT_SANS15 

Sans, 15px.

FONT_SANS16 

Sans, 16px.

FONT_SANS18 

Sans, 18px.

FONT_SANS20 

Sans, 20px.

FONT_SERIF8 

Serif, 8px.

FONT_SERIF10 

Serif, 10px.

FONT_SERIF12 

Serif, 12px.

FONT_SERIF14 

Serif, 14px.

FONT_SERIF16 

Serif, 16px.

FONT_SERIF18 

Serif, 18px.

FONT_SERIF20 

Serif, 20px.

FONT_SERIF22 

Serif, 22px.

FONT_SERIF24 

Serif, 24px.

FONT_SERIF26 

Serif, 26px.

FONT_SERIF28 

Serif, 28px.

FONT_SERIF30 

Serif, 30px.

FONT_SERIF32 

Serif, 32px.

FONT_SERIF34 

Serif, 34px.

FONT_SERIF36 

Serif, 36px.

FONT_SERIF38 

Serif, 38px.

FONT_SERIF40 

Serif, 40px.

FONT_MONO8 

Mono, 8px.

FONT_MONO9 

Mono, 9px.

FONT_MONO10 

Mono, 10px.

FONT_MONO12 

Mono, 12px.

FONT_MONO14 

Mono, 14px.

FONT_MONO16 

Mono, 16px.

FONT_MONO18 

Mono, 18px.

FONT_MONO20 

Mono, 20px.

FONT_ARIAL8 

Arial, 8px.

FONT_ARIAL10 

Arial, 10px, good for general drawing (looks the same across systems).

FONT_ARIAL11 

Arial, 11px.

FONT_ARIAL12 

Arial, 12px.

FONT_ARIAL13 

Arial, 13px.

FONT_ARIAL14 

Arial, 14px.

FONT_ARIAL15 

Arial, 15px.

FONT_ARIAL16 

Arial, 16px.

FONT_ARIAL18 

Arial, 18px.

FONT_ARIAL20 

Arial, 20px.

FONT_LOGISOSO8 

Logisoso, 8px.

FONT_LOGISOSO10 

Logisoso, 10px.

FONT_LOGISOSO12 

Logisoso, 12px.

FONT_LOGISOSO14 

Logisoso, 14px.

FONT_LOGISOSO16 

Logisoso, 16px.

FONT_LOGISOSO18 

Logisoso, 18px.

FONT_LOGISOSO20 

Logisoso, 20px.

FONT_FANWOOD8 

Fanwood, 8px.

FONT_FANWOOD10 

Fanwood, 10px.

FONT_FANWOOD12 

Fanwood, 12px.

FONT_FANWOOD14 

Fanwood, 14px.

FONT_FANWOOD16 

Fanwood, 16px.

FONT_FANWOOD18 

Fanwood, 18px.

FONT_FANWOOD20 

Fanwood, 20px.

FONT_COURIER8 

Courier, 8px.

FONT_COURIER10 

Courier, 10px.

FONT_COURIER12 

Courier, 12px.

FONT_COURIER14 

Courier, 14px.

FONT_COURIER16 

Courier, 16px.

FONT_COURIER18 

Courier, 18px.

FONT_COURIER20 

Courier, 20px.

FONT_PECITA8 

Pecita, 8px.

FONT_PECITA10 

Pecita, 10px.

FONT_PECITA12 

Pecita, 12px.

FONT_PECITA14 

Pecita, 14px.

FONT_PECITA16 

Pecita, 16px.

FONT_PECITA18 

Pecita, 18px.

FONT_PECITA20 

Pecita, 20px.

FONTS_MAX 

Number of the fonts.

Definition at line 52 of file text.h.