20 #ifndef FASTUIDRAW_FONT_HPP 21 #define FASTUIDRAW_FONT_HPP 27 #include <fastuidraw/text/character_encoding.hpp> 32 #include <fastuidraw/text/glyph_metrics_value.hpp> 133 uint32_t return_value(0);
187 Path &path,
vec2 &render_size)
const = 0;
GlyphRenderData provides an interface to specify data used for rendering glyphs and to pack that data...
encoding_value_t
Enumeration type to define character encodings.
virtual GlyphRenderData * compute_rendering_data(GlyphRenderer render, GlyphMetrics glyph_metrics, Path &path, vec2 &render_size) const =0
FontBase(const FontProperties &pprops, const FontMetrics &pmetrics)
unsigned int unique_id(void) const
file glyph_render_data.hpp
all classes and functions of FastUIDraw are in the namespace fastuidraw.
virtual unsigned int number_glyphs(void) const =0
FontBase provides an interface for a font to generate glyph rendering data.
A GlyphMetricsValue is to be used by a FontBase derived object to specify the values of a GlyphMetric...
Represents defining properties of a font used by FontDatabase to perform font merging.
glyph_type
Provides an enumeration of the rendering data for a glyph.
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 =0
virtual bool can_create_rendering_data(enum glyph_type tp) const =0
Defines default reference counting base classes.
virtual void compute_metrics(uint32_t glyph_code, GlyphMetricsValue &metrics) const =0
A GlyphMetrics provides information on the metrics of a glyph, all the values are in units of the fon...
uint32_t glyph_code(uint32_t pcharacter_code) const
A Path represents a collection of PathContour objects.
Represents various metric values global to an entire font.
Specifies how to render a glyph.
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
file reference_counted.hpp