36 #include "../api_display.h"
37 #include "../../Core/System/sharedptr.h"
39 class CL_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
82 void throw_if_null()
const;
85 float get_height()
const;
88 float get_ascent()
const;
91 float get_descent()
const;
94 float get_internal_leading()
const;
97 float get_external_leading()
const;
102 float get_average_character_width()
const;
105 float get_max_character_width()
const;
108 float get_weight()
const;
111 float get_overhang()
const;
114 float get_digitized_aspect_x()
const;
117 float get_digitized_aspect_y()
const;
132 bool is_italic()
const;
135 bool is_underlined()
const;
138 bool is_struck_out()
const;
141 bool is_fixed_pitch()
const;
152 void set_height(
float value);
157 void set_ascent(
float value);
162 void set_descent(
float value);
167 void set_internal_leading(
float value);
172 void set_external_leading(
float value);
177 void set_average_character_width(
float value);
182 void set_max_character_width(
float value);
187 void set_weight(
float value);
192 void set_overhang(
float value);
197 void set_digitized_aspect_x(
float value);
202 void set_digitized_aspect_y(
float value);
207 void set_italic(
bool value);
212 void set_underlined(
bool value);
217 void set_struck_out(
bool value);
222 void set_fixed_pitch(
bool value);
230 CL_SharedPtr<CL_FontMetrics_Impl> impl;