33 #include "../api_display.h"
41 class VectorFont_Impl;
44 class VectorFont_Impl;
61 VectorFont(
Canvas &canvas,
const std::string &typeface_name,
int height,
const std::string &filename);
86 Rectf get_bounding_box(
const std::string &reference_string)
const;
88 const std::vector<Vec2f> &get_glyph_filled(
unsigned int glyph);
89 const std::vector< std::vector<Vec2f> > &get_glyph_outline(
unsigned int glyph);
99 Size get_text_size(
Canvas &canvas,
const std::string &text);
107 Size get_glyph_size(
Canvas &canvas,
unsigned int glyph);
185 void set_filled(
bool enable =
true);
192 void set_texture(
const Texture2D &src_texture,
const Rectf &bounding_rect,
const Rectf &texture_rect =
Rectf(0.0f, 0.0f, 1.0f, 1.0f) );
193 void set_texture(
const Texture2D &src_texture,
const Rectf &bounding_rect,
const Rect &texture_rect );
196 void reset_texture();
201 std::shared_ptr<VectorFont_Impl>
impl;
Floating point color description class (for float).
Definition: color.h:661
Font description class.
Definition: font_description.h:47
static Colorf white
Definition: color.h:1245
2D Graphics Canvas
Definition: canvas.h:70
Vector font drawing class.
Definition: vector_font.h:47
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:453
2D texture object class.
Definition: texture_2d.h:42
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:467
std::shared_ptr< VectorFont_Impl > impl
Definition: vector_font.h:201
Font class.
Definition: font.h:52
2D (width,height) size structure - Integer
Definition: size.h:157
2D (x,y) point structure - Float
Definition: point.h:73
Font metrics class.
Definition: font_metrics.h:47