class::sgfx::FileFont

class sgfx::FileFont
  : public sgfx::Font

The File Font class is used to access fonts that are stored as files.

Summary

FileFont()

FileFont(

const arg::SourceFilePath & name,
const arg::Location & offset
)

~FileFont()

virtual sg_size_t get_height() const

virtual sg_size_t get_width() const

int set_file(

const arg::SourceFilePath & name,
const arg::Location & offset
)

protected void draw_char_on_bitmap(

const sg_font_char_t & ch,
Bitmap & dest,
const Point & point
) const

protected int load_char(

sg_font_char_t & ch,
char c,
bool ascii
) const

protected int load_kerning(

u16 first,
u16 second
) const

Members

FileFont()

FileFont(

const arg::SourceFilePath & name,
const arg::Location & offset
)


~FileFont()

virtual sg_size_t get_height() const

Returns the maximum height of any character in the font.


virtual sg_size_t get_width() const

Returns the maximum width of any character in the font.


int set_file(

const arg::SourceFilePath & name,
const arg::Location & offset
)


protected void draw_char_on_bitmap(

const sg_font_char_t & ch,
Bitmap & dest,
const Point & point
) const


protected int load_char(

sg_font_char_t & ch,
char c,
bool ascii
) const


protected int load_kerning(

u16 first,
u16 second
) const


X

Thanks for Coming!

Subscribe to news and updates