37 INLINE
bool FreetypeFont::
38 set_point_size(PN_stdfloat point_size) {
39 _point_size = point_size;
48 INLINE PN_stdfloat FreetypeFont::
49 get_point_size()
const {
68 INLINE
bool FreetypeFont::
69 set_pixels_per_unit(PN_stdfloat pixels_per_unit) {
70 _requested_pixels_per_unit = pixels_per_unit;
80 INLINE PN_stdfloat FreetypeFont::
81 get_pixels_per_unit()
const {
82 return _tex_pixels_per_unit;
93 INLINE
bool FreetypeFont::
94 set_pixel_size(PN_stdfloat pixel_size) {
95 return set_pixels_per_unit(pixel_size * _points_per_unit / _point_size);
104 INLINE PN_stdfloat FreetypeFont::
105 get_pixel_size()
const {
106 return _tex_pixels_per_unit * _point_size / _points_per_unit;
125 INLINE
bool FreetypeFont::
126 set_scale_factor(PN_stdfloat scale_factor) {
127 _requested_scale_factor = scale_factor;
128 return reset_scale();
137 INLINE PN_stdfloat FreetypeFont::
138 get_scale_factor()
const {
139 return _scale_factor;
157 INLINE
void FreetypeFont::
158 set_native_antialias(
bool native_antialias) {
159 _native_antialias = native_antialias;
168 INLINE
bool FreetypeFont::
169 get_native_antialias()
const {
170 return _native_antialias;
186 INLINE
int FreetypeFont::
187 get_font_pixel_size()
const {
188 return _pixel_height;
197 INLINE PN_stdfloat FreetypeFont::
198 get_line_height()
const {
207 INLINE PN_stdfloat FreetypeFont::
208 get_space_advance()
const {
209 return _space_advance;
219 INLINE PN_stdfloat FreetypeFont::
220 get_points_per_unit() {
221 return _points_per_unit;
230 INLINE PN_stdfloat FreetypeFont::
231 get_points_per_inch() {
232 return _points_per_inch;
244 INLINE FT_Face FreetypeFont::
245 acquire_face()
const {
246 nassertr(_face != NULL, NULL);
247 return _face->acquire_face(_char_size, _dpi, _pixel_width, _pixel_height);
257 INLINE
void FreetypeFont::
258 release_face(FT_Face face)
const {
259 nassertv(_face != NULL);
260 _face->release_face(face);