22#ifndef ULTIMA8_GFX_FONTS_JPFONT_H
23#define ULTIMA8_GFX_FONTS_JPFONT_H
25#include "ultima/ultima8/gfx/fonts/font.h"
44 int32 &width, int32 &height)
override;
46 int32 &resultheight,
unsigned int &remaining, int32 width = 0,
47 int32 height = 0, TextAlign align = TEXT_LEFT,
48 bool u8specials =
false,
bool pagebreaks =
false)
override;
51 unsigned int &remaining, int32 width = 0, int32 height = 0,
52 TextAlign align = TEXT_LEFT,
bool u8specials =
false,
53 bool pagebreaks =
false,
54 Common::String::size_type cursor = Common::String::npos)
override;
58 unsigned int _fontNum;
int getHeight() override
get the height of the font
int getBaselineSkip() override
get the baselineskip of the font (distance between two baselines)
int getBaseline() override
get the baseline of the font (relative from the top)
void getTextSize(const Common::String &text, int32 &resultwidth, int32 &resultheight, unsigned int &remaining, int32 width=0, int32 height=0, TextAlign align=TEXT_LEFT, bool u8specials=false, bool pagebreaks=false) override
RenderedText * renderText(const Common::String &text, unsigned int &remaining, int32 width=0, int32 height=0, TextAlign align=TEXT_LEFT, bool u8specials=false, bool pagebreaks=false, Common::String::size_type cursor=Common::String::npos) override
void getStringSize(const Common::String &text, int32 &width, int32 &height) override
Definition: rendered_text.h:32
Definition: shape_font.h:31