22#ifndef ULTIMA_SHARED_GFX_FONT_H
23#define ULTIMA_SHARED_GFX_FONT_H
25#include "common/array.h"
26#include "common/stream.h"
27#include "graphics/managed_surface.h"
28#include "ultima/shared/core/rect.h"
37 size_t _startingChar, _endingChar;
39 Font(
const byte *data,
size_t startingChar = 0,
size_t charCount = 256);
45 Point &pt,
byte color,
byte bgColor = 0);
51 byte color,
byte bgColor = 0);
Definition: managed_surface.h:51
uint charWidth(char c) const
int writeString(Graphics::ManagedSurface &surface, const Common::String &msg, Point &pt, byte color, byte bgColor=0)
uint stringWidth(const Common::String &msg) const
void writeChar(Graphics::ManagedSurface &surface, unsigned char c, Point &pt, byte color, byte bgColor=0)