sprint 1-alpha
Classes | Namespaces | Enumerations | Functions
sprint/image/font.h File Reference

methods to use ANGELCODE bitmap font More...

#include <sprint/image/image.h>
#include <vector>

Go to the source code of this file.

Classes

struct  sprint::CharDescr
 the font character layout More...
struct  sprint::kerning_pair
 kernings pair for font More...
struct  sprint::font
 A FONT structure handler. More...

Namespaces

namespace  sprint
 

Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux.


Enumerations

enum  sprint::TextAlign {
  TextAlign_Default = 0, TextAlign_Left = 1, TextAlign_Right = 2, TextAlign_HCenter = 3,
  TextAlign_HMask = 3, TextAlign_Top = 4, TextAlign_Bottom = 8, TextAlign_VCenter = 12,
  TextAlign_VMask = 12
}
 text alignment macros

Functions

void sprint::print (imageview &dst, int x, int y, const char *text, unsigned int color, const font &font, int text_align=TextAlign_Default)
 draw a text on a image

Detailed Description

methods to use ANGELCODE bitmap font

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines