22 #ifndef ULTIMA8_GFX_FONTS_TTFONT_H 23 #define ULTIMA8_GFX_FONTS_TTFONT_H 25 #include "ultima/ultima8/gfx/fonts/font.h" 26 #include "graphics/font.h" 27 #include "graphics/pixelformat.h" 35 bool antiAliased,
bool SJIS);
42 bool isAntialiased() {
47 int32 &width, int32 &height)
override;
50 int32 &resultwidth, int32 &resultheight,
unsigned int &remaining,
51 int32 width = 0, int32 height = 0, TextAlign align = TEXT_LEFT,
52 bool u8specials =
false,
bool pagebreaks =
false)
override;
55 unsigned int &remaining, int32 width = 0, int32 height = 0,
56 TextAlign align = TEXT_LEFT,
bool u8specials =
false,
57 bool pagebreaks =
false,
58 Std::string::size_type cursor = Std::string::npos)
override;
Definition: managed_surface.h:51
int getBaselineSkip() override
get the baselineskip of the font (distance between two baselines)
void getStringSize(const Std::string &text, int32 &width, int32 &height) override
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
Definition: rendered_text.h:30
int getBaseline() override
get the baseline of the font (relative from the top)
Definition: detection.h:27
int getHeight() override
get the height of the font
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