summaryrefslogtreecommitdiff
path: root/src/Fl_Printer.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-10-28 17:19:05 +0100
committerGitHub <noreply@github.com>2020-10-28 17:19:05 +0100
commit8accc6e8409819316fa296642c1d23e5638fcb2d (patch)
tree33c6237919989f120f2179cb1e7b410cb7cdd01e /src/Fl_Printer.cxx
parentf718943e6fbcf89297e61466068405452d7f8ae6 (diff)
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.
Diffstat (limited to 'src/Fl_Printer.cxx')
-rw-r--r--src/Fl_Printer.cxx8
1 files changed, 6 insertions, 2 deletions
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