19 #ifndef __libgtkmm2ext_emscale_h__
20 #define __libgtkmm2ext_emscale_h__
25 #include <pangomm/fontdescription.h>
37 unsigned int char_pixel_width() {
if (_char_pixel_width < 1) recalc_char_pixel_geometry() ;
return _char_pixel_width; }
38 unsigned int char_pixel_height() {
if (_char_pixel_height < 1) recalc_char_pixel_geometry() ;
return _char_pixel_height; }
39 float char_avg_pixel_width() {
if (_char_pixel_width < 1) recalc_char_pixel_geometry() ;
return _char_avg_pixel_width; }
unsigned int _char_pixel_width
void recalc_char_pixel_geometry()
float _char_avg_pixel_width
unsigned int char_pixel_height()
unsigned int _char_pixel_height
float char_avg_pixel_width()
unsigned int char_pixel_width()
EmScale(const Pango::FontDescription &)
static std::map< std::string, EmScale > _emscales
static EmScale & by_font(const Pango::FontDescription &)
Pango::FontDescription _font