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 Std::string::size_type cursor = Std::string::npos)
override;
58 unsigned int _fontNum;
Definition: shape_font.h:31
RenderedText * renderText(const Std::string &text, unsigned int &remaining, int32 width=0, int32 height=0, TextAlign align=TEXT_LEFT, bool u8specials=false, bool pagebreaks=false, Std::string::size_type cursor=Std::string::npos) override
void getStringSize(const Std::string &text, int32 &width, int32 &height) override
int getHeight() override
get the height of the font
Definition: rendered_text.h:30
Definition: detection.h:27
void getTextSize(const Std::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
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)