A FontFreeType implements the interface of FontBase from a scalable font loaded by libfreetype.
More...
#include <font_freetype.hpp>
|
| FontFreeType (const reference_counted_ptr< FreeTypeFace::GeneratorBase > &pface_generator, const reference_counted_ptr< FreeTypeLib > &plib=reference_counted_ptr< FreeTypeLib >(), unsigned int num_faces=8) |
|
| FontFreeType (const reference_counted_ptr< FreeTypeFace::GeneratorBase > &pface_generator, const FontProperties &props, const reference_counted_ptr< FreeTypeLib > &plib=reference_counted_ptr< FreeTypeLib >(), unsigned int num_faces=8) |
|
virtual bool | can_create_rendering_data (enum glyph_type tp) const override final |
|
virtual void | compute_metrics (uint32_t glyph_code, GlyphMetricsValue &metrics) const override final |
|
virtual GlyphRenderData * | compute_rendering_data (GlyphRenderer render, GlyphMetrics glyph_metrics, Path &path, vec2 &render_size) const override final |
|
const reference_counted_ptr< FreeTypeFace::GeneratorBase > & | face_generator (void) const |
|
virtual void | glyph_codes (enum CharacterEncoding::encoding_value_t encoding, c_array< const uint32_t > in_character_codes, c_array< uint32_t > out_glyph_codes) const override final |
|
const reference_counted_ptr< FreeTypeLib > & | lib (void) const |
|
virtual unsigned int | number_glyphs (void) const override final |
|
| FontBase (const FontProperties &pprops, const FontMetrics &pmetrics) |
|
uint32_t | glyph_code (uint32_t pcharacter_code) const |
|
void | glyph_codes (c_array< const uint32_t > in_character_codes, c_array< uint32_t > out_glyph_codes) const |
|
const FontMetrics & | metrics (void) const |
|
const FontProperties & | properties (void) const |
|
unsigned int | unique_id (void) const |
|
| reference_counted_base (void) |
|
A FontFreeType implements the interface of FontBase from a scalable font loaded by libfreetype.
Definition at line 38 of file font_freetype.hpp.
◆ FontFreeType() [1/2]
◆ FontFreeType() [2/2]
◆ can_create_rendering_data()
virtual bool fastuidraw::FontFreeType::can_create_rendering_data |
( |
enum glyph_type |
tp | ) |
const |
|
finaloverridevirtual |
◆ compute_font_metrics_from_face() [1/3]
static void fastuidraw::FontFreeType::compute_font_metrics_from_face |
( |
FT_Face |
in_face, |
|
|
FontMetrics & |
out_metrics |
|
) |
| |
|
static |
Fill the field of a FontMetrics from the values of an FT_Face. Beware that the foundary name is not assigned!
◆ compute_font_metrics_from_face() [2/3]
static FontMetrics fastuidraw::FontFreeType::compute_font_metrics_from_face |
( |
FT_Face |
in_face | ) |
|
|
static |
Return a FontMetrics from the values of an FT_Face. Beware that the foundary name is not assigned!
◆ compute_font_metrics_from_face() [3/3]
Return a FontMetrics from the values of an FT_Face. Beware that the foundary name is not assigned!
◆ compute_font_properties_from_face() [1/3]
static void fastuidraw::FontFreeType::compute_font_properties_from_face |
( |
FT_Face |
in_face, |
|
|
FontProperties & |
out_properties |
|
) |
| |
|
static |
Fill the field of a FontProperties from the values of an FT_Face. Beware that the foundary name is not assigned!
◆ compute_font_properties_from_face() [2/3]
static FontProperties fastuidraw::FontFreeType::compute_font_properties_from_face |
( |
FT_Face |
in_face | ) |
|
|
static |
Return a FontProperties from the values of an FT_Face. Beware that the foundary name is not assigned!
◆ compute_font_properties_from_face() [3/3]
Return a FontProperties from the values of an FT_Face. Beware that the foundary name is not assigned!
◆ compute_metrics()
virtual void fastuidraw::FontFreeType::compute_metrics |
( |
uint32_t |
glyph_code, |
|
|
GlyphMetricsValue & |
metrics |
|
) |
| const |
|
finaloverridevirtual |
To be implemented by a derived class to provide the metrics data for the named glyph.
- Parameters
-
| glyph_code | glyph code of glyph to compute the metric values |
[out] | metrics | location to which to place the metric values for the glyph |
Implements fastuidraw::FontBase.
◆ compute_rendering_data()
To be implemented by a derived class to generate glyph rendering data given a glyph code and GlyphRenderer.
- Parameters
-
| render | specifies object to return via GlyphRenderer::type(), it is guaranteed by the caller that can_create_rendering_data() returns true on render.type() |
| glyph_metrics | GlyphMetrics values as computed by compute_metrics() |
[out] | path | location to which to write the Path of the glyph |
[out] | render_size | location to which to write the render size of the glyph |
Implements fastuidraw::FontBase.
◆ face_generator()
◆ glyph_codes()
To be implemented by a derived class to return the index values (glyph codes) for a sequence of character code. A glyph code of 0 indicates that a character code is not present in the font.
- Parameters
-
| encoding | character encoding of character codes |
| in_character_codes | character codes from which to fetch glyph codes |
[out] | out_glyph_codes | location to which to write glyph codes. |
Implements fastuidraw::FontBase.
◆ lib()
◆ number_glyphs()
virtual unsigned int fastuidraw::FontFreeType::number_glyphs |
( |
void |
| ) |
const |
|
finaloverridevirtual |
The documentation for this class was generated from the following file: