28 #ifndef _CEGUIFontGlyph_h_
29 #define _CEGUIFontGlyph_h_
31 #include "CEGUIImage.h"
58 {
return d_image->getImageset(); }
61 Size getSize(
float x_scale,
float y_scale)
const
62 {
return Size(getWidth(x_scale), getHeight(y_scale)); }
65 float getWidth(
float x_scale)
const
66 {
return d_image->getWidth() * x_scale; }
69 float getHeight(
float y_scale)
const
70 {
return d_image->getHeight() * y_scale; }
79 float getRenderedAdvance(
float x_scale)
const
80 {
return (d_image->getWidth() + d_image->getOffsetX()) * x_scale; }
91 float getAdvance(
float x_scale = 1.0)
const
92 {
return d_advance * x_scale; }
95 void setAdvance(
float advance)
96 { d_advance = advance; }
99 void setImage(
const Image* image)
104 const Image* d_image;
111 #endif // end of guard _CEGUIFontGlyph_h_