25 #include <yaml-cpp/yaml.h> 36 int width, height, spacing;
49 std::vector<FontImage> _images;
50 std::map< UCode, std::pair<size_t, SDL_Rect> > _chars;
53 void init(
size_t index,
const UString &str);
61 void load(
const YAML::Node& node);
69 int getHeight()
const;
71 int getSpacing()
const;
73 SDL_Rect getCharSize(UCode c);
75 SDL_Color *getPalette()
const;
77 void setPalette(SDL_Color *colors,
int firstcolor,
int ncolors);
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:46
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
Definition: BaseInfoState.cpp:40