#define DEFAULT_MARGIN 16
#define DEFAULT_FORE "#000000"
#define DEFAULT_BACK "#FFFFFF"
-#define DEFAULT_FONT_SIZE 256
+#define FONT_SIZE_UPEM 0x7FFFFFFF
+#define FONT_SIZE_NONE 0
struct view_options_t : option_group_t
{
back = DEFAULT_BACK;
line_space = 0;
margin.t = margin.r = margin.b = margin.l = DEFAULT_MARGIN;
- font_size = DEFAULT_FONT_SIZE;
add_options (parser);
}
struct margin_t {
double t, r, b, l;
} margin;
- double font_size;
};
struct font_options_t : option_group_t
{
- font_options_t (option_parser_t *parser) {
+ font_options_t (option_parser_t *parser,
+ int default_font_size_,
+ unsigned int subpixel_bits_) {
+ default_font_size = default_font_size_;
+ subpixel_bits = subpixel_bits_;
font_file = NULL;
face_index = 0;
+ font_size_x = font_size_y = default_font_size;
font_funcs = NULL;
font = NULL;
const char *font_file;
int face_index;
+ int default_font_size;
+ unsigned int subpixel_bits;
+ mutable double font_size_x;
+ mutable double font_size_y;
const char *font_funcs;
private: