Colobot
Classes | Namespaces | Typedefs | Enumerations | Variables
text.h File Reference

Text rendering - CText class. More...

#include "graphics/core/color.h"
#include "math/intpoint.h"
#include "math/point.h"
#include <map>
#include <memory>
#include <vector>
Include dependency graph for text.h:

Go to the source code of this file.

Classes

struct  Gfx::UTF8Char
 UTF-8 character in font cache. More...
 
struct  Gfx::CharTexture
 Texture of font character. More...
 
class  Gfx::CText
 Text rendering engine. More...
 

Namespaces

 Gfx
 Namespace for (new) graphics code.
 

Typedefs

typedef short Gfx::FontMetaChar
 Type used for font character metainfo. More...
 

Enumerations

enum  Gfx::TextAlign { TEXT_ALIGN_RIGHT, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER }
 Type of text alignment. More...
 
enum  Gfx::FontType {
  Gfx::FONT_BOLD = 0x04, Gfx::FONT_ITALIC = 0x08, Gfx::FONT_COLOBOT = 0x00, Gfx::FONT_COLOBOT_BOLD = FONT_COLOBOT | FONT_BOLD,
  Gfx::FONT_COLOBOT_ITALIC = FONT_COLOBOT | FONT_ITALIC, Gfx::FONT_COURIER = 0x01, Gfx::FONT_COURIER_BOLD = FONT_COURIER | FONT_BOLD, Gfx::FONT_BUTTON = 0x03
}
 Type of font. More...
 
enum  Gfx::FontTitle { FONT_TITLE_BIG = 0x01 << 4, FONT_TITLE_NORM = 0x02 << 4, FONT_TITLE_LITTLE = 0x03 << 4 }
 Size of font title. More...
 
enum  Gfx::FontHighlight {
  FONT_HIGHLIGHT_NONE = 0x00 << 6, Gfx::FONT_HIGHLIGHT_TABLE = 0x02 << 6, Gfx::FONT_HIGHLIGHT_KEY = 0x03 << 6, Gfx::FONT_HIGHLIGHT_TOKEN = 0x04 << 6,
  Gfx::FONT_HIGHLIGHT_TYPE = 0x05 << 6, Gfx::FONT_HIGHLIGHT_CONST = 0x06 << 6, Gfx::FONT_HIGHLIGHT_THIS = 0x07 << 6, Gfx::FONT_HIGHLIGHT_COMMENT = 0x08 << 6,
  Gfx::FONT_HIGHLIGHT_KEYWORD = 0x09 << 6, Gfx::FONT_HIGHLIGHT_STRING = 0x0A << 6
}
 Type of color highlight for text. More...
 
enum  Gfx::FontMask {
  Gfx::FONT_MASK_FONT = 0x00f, Gfx::FONT_MASK_TITLE = 0x030, Gfx::FONT_MASK_HIGHLIGHT = 0x3c0, Gfx::FONT_MASK_LINK = 0x400,
  Gfx::FONT_MASK_IMAGE = 0x800
}
 Masks in FontMetaChar for different attributes. More...
 
enum  Gfx::SpecialChar {
  CHAR_TAB = '\t', Gfx::CHAR_NEWLINE = '\n', Gfx::CHAR_DOT = 1, Gfx::CHAR_SQUARE = 2,
  Gfx::CHAR_SKIP_RIGHT = 5, Gfx::CHAR_SKIP_LEFT = 6
}
 Special codes for certain characters. More...
 

Variables

const float Gfx::FONT_SIZE_SMALL = 12.0f
 Standard small font size. More...
 
const float Gfx::FONT_SIZE_BIG = 18.0f
 Standard big font size. More...
 

Detailed Description

Text rendering - CText class.