Photon 1.0.0
Loading...
Searching...
No Matches
Font Class Referenceabstract

#include <Font.h>

Inheritance diagram for Font:
litehtml::font_metrics OutlineFont RasterFont

Public Member Functions

virtual int text_width (string text)=0
 
virtual void draw_text (canvas &canvas, string text, color color, int x, int y)=0
 
- Public Member Functions inherited from litehtml::font_metrics
 font_metrics ()
 
int base_line () const
 

Static Public Member Functions

static Fontcreate (string face, int size, int weight)
 

Additional Inherited Members

- Public Attributes inherited from litehtml::font_metrics
int font_size
 
int height
 
int ascent
 
int descent
 
int x_height
 
int ch_width
 
bool draw_spaces
 

Member Function Documentation

◆ create()

Font * Font::create ( string  face,
int  size,
int  weight 
)
static

◆ draw_text()

virtual void Font::draw_text ( canvas canvas,
string  text,
color  color,
int  x,
int  y 
)
pure virtual

Implemented in RasterFont, and OutlineFont.

◆ text_width()

virtual int Font::text_width ( string  text)
pure virtual

Implemented in RasterFont, and OutlineFont.


The documentation for this class was generated from the following files: