From b3d47552867d9425035918efb76b549615df4f99 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 29 Mar 2010 12:52:28 +0000 Subject: Fl_Printer & Fl_PSfile_Device : added some implementation details in doc git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_PSfile_Device.H | 4 +++- FL/Fl_Printer.H | 5 ++++- src/Fl_PS_Printer.cxx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/FL/Fl_PSfile_Device.H b/FL/Fl_PSfile_Device.H index 5eb9fa5db..a0fdba70d 100644 --- a/FL/Fl_PSfile_Device.H +++ b/FL/Fl_PSfile_Device.H @@ -36,7 +36,9 @@ \brief Sends all graphics to a local PostScript file; same API as Fl_Printer class. * This class has the same API as class Fl_Printer except for start_job() member function. - \see class Fl_Printer. +

PostScript text output is presently implemented only for the latin character set. + FLTK's standard fonts are output using PostScript's standard fonts: Helvetica, Courier, + Times (and their bold, oblique, italic variants), Symbol, ZapfDingbats. */ FL_EXPORT class Fl_PSfile_Device : public Fl_Abstract_Printer { public: diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index ccb2b6158..f8dc9844c 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -52,7 +52,9 @@ In both cases, begin by start_job(), start_page(), printable_rect() and origin() calls and finish by end_page() and end_job() calls. -

On Xlib-based platforms (e.g., Linux, Unix), the static public attributes of this class +

On Xlib-based platforms (e.g., Linux, Unix), this class is implemented as + a subclass of Fl_PSfile_Device. +

On Xlib-based platforms, the static public attributes of this class can be used to set the print dialog to other languages than English. For example, the "Printer:" dialog item Fl_Printer::dialog_printer can be set to French with: \code @@ -62,6 +64,7 @@ \endcode Use Fl_PSfile_Device::file_chooser_title to customize the title of the file chooser dialog that opens when using the "Print To File" option of the print dialog. + \see Fl_PSfile_Device. */ class Fl_Printer : public Fl_Abstract_Printer { private: diff --git a/src/Fl_PS_Printer.cxx b/src/Fl_PS_Printer.cxx index e6c128818..57bfe7336 100644 --- a/src/Fl_PS_Printer.cxx +++ b/src/Fl_PS_Printer.cxx @@ -852,7 +852,7 @@ static const char *_fontNames[] = { "Times-BoldItalic", "Symbol", "Courier", -"CourierBold", +"Courier-Bold", "ZapfDingbats" }; -- cgit v1.2.3