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/Fl_Printer.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Fl_Printer.cxx') diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx index 8c587afb9..015592332 100644 --- a/src/Fl_Printer.cxx +++ b/src/Fl_Printer.cxx @@ -2,7 +2,7 @@ // Encompasses platform-specific printing-support code and // PostScript output code 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 @@ -80,15 +80,19 @@ void Fl_PostScript_File_Device::translate(int x, int y) {} void Fl_PostScript_File_Device::untranslate(void) {} int Fl_PostScript_File_Device::end_page (void) {return 1;} void Fl_PostScript_File_Device::end_job(void) {} +FILE* Fl_PostScript_File_Device::file() {return NULL;} Fl_PostScript_File_Device::~Fl_PostScript_File_Device(void) {} -Fl_EPS_File_Surface::Fl_EPS_File_Surface(int width, int height, FILE *eps, Fl_Color background) : Fl_Widget_Surface(NULL) {} +Fl_EPS_File_Surface::Fl_EPS_File_Surface(int width, int height, FILE *eps_output, + Fl_Color background, Fl_PostScript_Close_Command closef) : Fl_Widget_Surface(NULL) {} Fl_EPS_File_Surface::~Fl_EPS_File_Surface() {} void Fl_EPS_File_Surface::origin(int, int) {} void Fl_EPS_File_Surface::origin(int*, int*) {} int Fl_EPS_File_Surface::printable_rect(int*, int*) {return 1;} void Fl_EPS_File_Surface::translate(int, int) {} void Fl_EPS_File_Surface::untranslate() {} +FILE* Fl_EPS_File_Surface::file() {return NULL;} +int Fl_EPS_File_Surface::close() {return 1;} #else -- cgit v1.2.3