From cd60ea17b021ce4442bc5efea8b7082463c682b8 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 24 Jul 2022 08:46:52 +0200 Subject: Add Fl_PostScript_File_Device::set_current() and end_current() members. --- FL/Fl_PostScript.H | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'FL/Fl_PostScript.H') diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H index 546145576..bb9b27d79 100644 --- a/FL/Fl_PostScript.H +++ b/FL/Fl_PostScript.H @@ -71,6 +71,10 @@ class Fl_PostScript_Graphics_Driver; */ class FL_EXPORT Fl_PostScript_File_Device : public Fl_Paged_Device { +private: + // memorize the display's current font to restore it when the object ceases being current + Fl_Font display_font_; + Fl_Fontsize display_size_; protected: /** \brief Returns the PostScript driver of this drawing surface. @@ -139,6 +143,8 @@ public: FILE *file(); /** Sets the function end_job() calls to close the file() */ void close_command(Fl_PostScript_Close_Command cmd); + virtual void set_current(); + virtual void end_current(); }; /** Encapsulated PostScript drawing surface. -- cgit v1.2.3