ManaPlus
Variables
font.cpp File Reference

(986a3bf)

#include "gui/fonts/font.h"
#include "fs/files.h"
#include "fs/paths.h"
#include "fs/virtfs/tools.h"
#include "gui/fonts/textchunk.h"
#include "render/graphics.h"
#include "resources/imagehelper.h"
#include "resources/image/image.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/sdlcheckutils.h"
#include "utils/stringutils.h"
#include "utils/timer.h"
#include "debug.h"

Go to the source code of this file.

Variables

const unsigned int CACHE_SIZE = 256
 
const unsigned int CACHE_SIZE_SMALL1 = 2
 
const unsigned int CACHE_SIZE_SMALL2 = 50
 
const unsigned int CACHE_SIZE_SMALL3 = 170
 
const unsigned int CLEAN_TIME = 7
 
char * strBuf
 
static int fontCounter
 

Variable Documentation

◆ CACHE_SIZE

const unsigned int CACHE_SIZE = 256

Definition at line 94 of file font.cpp.

Referenced by Font::drawString(), and Font::generate().

◆ CACHE_SIZE_SMALL1

const unsigned int CACHE_SIZE_SMALL1 = 2

Definition at line 95 of file font.cpp.

Referenced by Font::doClean().

◆ CACHE_SIZE_SMALL2

const unsigned int CACHE_SIZE_SMALL2 = 50

Definition at line 96 of file font.cpp.

Referenced by Font::doClean().

◆ CACHE_SIZE_SMALL3

const unsigned int CACHE_SIZE_SMALL3 = 170

Definition at line 97 of file font.cpp.

Referenced by Font::doClean().

◆ CLEAN_TIME

const unsigned int CLEAN_TIME = 7

Definition at line 98 of file font.cpp.

Referenced by Font::slowLogic().

◆ fontCounter

int fontCounter
static

Definition at line 104 of file font.cpp.

Referenced by Font::Font(), Font::loadFont(), and Font::~Font().

◆ strBuf

char* strBuf
extern

Definition at line 46 of file textchunk.cpp.

Referenced by Font::Font(), TextChunk::generate(), Font::getWidth(), and Font::~Font().