From 8accc6e8409819316fa296642c1d23e5638fcb2d Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 28 Oct 2020 17:19:05 +0100 Subject: Pango ps (#148) Use cairo-PostScript to output PostScript when pango is available. This allows to draw in vectorial form any script. Before, only the Latin script could be drawn to PostScript in vectorial form. --- src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H') diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H index 322b45c68..4f1906d59 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H @@ -1,7 +1,7 @@ // // Definition of class Fl_Xlib_Graphics_Driver for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2018 by Bill Spitzak and others. +// Copyright 2010-2020 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -82,6 +82,9 @@ protected: static PangoContext *pctxt_; static PangoFontMap *pfmap_; static PangoLayout *playout_; +public: + static PangoFontDescription* pango_font_description(Fl_Font fnum) { return pfd_array[fnum]; } +private: static PangoFontDescription **pfd_array; // one array element for each Fl_Font static int pfd_array_length; void do_draw(int from_right, const char *str, int n, int x, int y); -- cgit v1.2.3