Move member q_width from class Fl_Font_Descriptor to Fl_Quartz_Font_Descriptor.
That's because this member is used only in Fl_Quartz_Font_Descriptor.
This commit is contained in:
parent
c6659c9a29
commit
f097141662
@ -390,7 +390,7 @@ public:
|
||||
Fl_Fontsize size; /**< font size */
|
||||
Fl_Font_Descriptor(const char* fontname, Fl_Fontsize size);
|
||||
FL_EXPORT ~Fl_Font_Descriptor() {}
|
||||
short ascent, descent, q_width;
|
||||
short ascent, descent;
|
||||
unsigned int listbase;// base of display list, 0 = none
|
||||
};
|
||||
|
||||
|
||||
@ -1090,10 +1090,9 @@ Fl_Cairo_Font_Descriptor::Fl_Cairo_Font_Descriptor(const char* name, Fl_Fontsize
|
||||
#else
|
||||
line_height = (pango_font_metrics_get_ascent(metrics) + pango_font_metrics_get_descent(metrics)) * 1.025 + 0.5;
|
||||
#endif
|
||||
q_width = 0; // useless;
|
||||
pango_font_metrics_unref(metrics);
|
||||
g_object_unref(fontset);
|
||||
//fprintf(stderr, "[%s](%d) ascent=%d descent=%d q_width=%d\n", name, size, ascent, descent, q_width);
|
||||
//fprintf(stderr, "[%s](%d) ascent=%d descent=%d\n", name, size, ascent, descent);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -39,6 +39,7 @@ public:
|
||||
ATSUTextLayout layout;
|
||||
ATSUStyle style;
|
||||
# endif
|
||||
short q_width;
|
||||
};
|
||||
|
||||
extern FL_EXPORT Fl_Fontdesc *fl_fonts; // the table
|
||||
|
||||
Loading…
Reference in New Issue
Block a user