34 #include "../api_display.h"
42 class FontMetrics_Impl;
57 float internal_leading=0.0f,
58 float external_leading=0.0f,
59 float average_character_width=0.0f,
60 float max_character_width=0.0f,
63 float digitized_aspect_x=0.0f,
64 float digitized_aspect_y=0.0f,
66 bool underlined=
false,
67 bool struck_out=
false,
68 bool fixed_pitch=
false
79 float get_height()
const;
82 float get_ascent()
const;
85 float get_descent()
const;
88 float get_internal_leading()
const;
91 float get_external_leading()
const;
96 float get_average_character_width()
const;
99 float get_max_character_width()
const;
102 float get_weight()
const;
105 float get_overhang()
const;
108 float get_digitized_aspect_x()
const;
111 float get_digitized_aspect_y()
const;
114 std::string::value_type get_first_char()
const;
117 std::string::value_type get_last_char()
const;
120 std::string::value_type get_default_char()
const;
123 std::string::value_type get_word_break_char()
const;
126 bool is_italic()
const;
129 bool is_underlined()
const;
132 bool is_struck_out()
const;
135 bool is_fixed_pitch()
const;
146 void set_height(
float value);
151 void set_ascent(
float value);
156 void set_descent(
float value);
161 void set_internal_leading(
float value);
166 void set_external_leading(
float value);
171 void set_average_character_width(
float value);
176 void set_max_character_width(
float value);
181 void set_weight(
float value);
186 void set_overhang(
float value);
191 void set_digitized_aspect_x(
float value);
196 void set_digitized_aspect_y(
float value);
201 void set_italic(
bool value);
206 void set_underlined(
bool value);
211 void set_struck_out(
bool value);
216 void set_fixed_pitch(
bool value);
224 std::shared_ptr<FontMetrics_Impl> impl;
Font metrics class.
Definition: font_metrics.h:47