Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
font.cpp File Reference
#include "vegastrike.h"
#include "font.h"
#include "guidefs.h"
#include "vs_globals.h"
#include "config_xml.h"

Go to the source code of this file.

Functions

bool useStroke ()
 

Variables

static const double GLUT_WIDTH_HACK = 0.6
 
static const char SPACE_CHAR = ' '
 

Function Documentation

bool useStroke ( )

Definition at line 41 of file font.cpp.

References VegaConfig::getVariable(), XMLSupport::parse_bool(), and vs_config.

Referenced by Font::calcMetrics(), Font::charWidth(), Font::drawChar(), drawChars(), and PaintText::drawLines().

42 {
43  static bool tmp =
44  XMLSupport::parse_bool( vs_config->getVariable( "graphics", "high_quality_font_computer",
45  vs_config->getVariable( "graphics", "high_quality_font", "false" ) ) );
46  return !tmp;
47 }

Variable Documentation

const double GLUT_WIDTH_HACK = 0.6
static

Definition at line 36 of file font.cpp.

Referenced by Font::charWidth().

const char SPACE_CHAR = ' '
static

Definition at line 39 of file font.cpp.

Referenced by Font::calcMetrics(), Font::charWidth(), and Font::drawChar().