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/Posix/Fl_Posix_Printer_Driver.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/drivers/Posix') diff --git a/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx b/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx index dbb966a76..5fcb4645a 100644 --- a/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx +++ b/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx @@ -1,7 +1,7 @@ // // PostScript priting support for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2016 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 @@ -19,6 +19,7 @@ #if defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT) #include +#include "../PostScript/Fl_PostScript_Graphics_Driver.H" #include #include @@ -326,7 +327,7 @@ int Fl_Posix_Printer_Driver::begin_job(int pages, int *firstpage, int *lastpage, return 2; } ps->close_command(pclose); - this->set_current(); + Fl_Surface_Device::push_current(this); return ps->start_postscript(pages, format, layout); // start printing } -- cgit v1.2.3