1.1.0
font-size.h
1 #ifndef FONT_CHEF_FONT_SIZE_H
2 #define FONT_CHEF_FONT_SIZE_H
3 
14 #include "font-chef/font-chef-export.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
25  fc_size_type__pt,
26  fc_size_type__px
27 };
28 
33 struct fc_font_size {
37  float value;
38 
43 };
44 
51 FONT_CHEF_EXPORT extern struct fc_font_size fc_pt(float value);
52 
59 FONT_CHEF_EXPORT extern struct fc_font_size fc_px(float value);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* FONT_CHEF_FONT_SIZE_H */
fc_font_size::type
enum fc_font_size_type type
Specifies if the font size is in pixels or points.
Definition: font-size.h:42
fc_font_size
Specifies the size of a font either in pixels or in points.
Definition: font-size.h:33
fc_font_size_type
fc_font_size_type
Used to tell if a fc_font_size value is specified in pixels or in points.
Definition: font-size.h:24
fc_pt
struct fc_font_size fc_pt(float value)
Constructs and returns a fc_size value specified as points.
fc_font_size::value
float value
The value of this font size.
Definition: font-size.h:37
fc_px
struct fc_font_size fc_px(float value)
Constructs and returns a fc_size value specified as pixels.