From 461750c38e1835e4a730e0f83a48fe090f41feae Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 21 Dec 2016 15:05:02 +0000 Subject: X11 platform: Add optional use of the pango library to draw text, gaining the possibility to draw text in any script supported by Unicode. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Xlib/Fl_Font.H | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/drivers/Xlib/Fl_Font.H') diff --git a/src/drivers/Xlib/Fl_Font.H b/src/drivers/Xlib/Fl_Font.H index d3b121bef..0bc4b200e 100644 --- a/src/drivers/Xlib/Fl_Font.H +++ b/src/drivers/Xlib/Fl_Font.H @@ -45,8 +45,12 @@ public: Fl_Fontsize size; /**< font size */ #ifndef FL_DOXYGEN // don't bother with platorm dependant details in the doc. # if USE_XFT - XftFont* font; - //const char* encoding; +# if USE_PANGO + int descent_; + int height_; +# else + XftFont* font; +# endif int angle; FL_EXPORT Fl_Font_Descriptor(const char* xfontname, Fl_Fontsize size, int angle); # else -- cgit v1.2.3