summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-03-29 12:52:28 +0000
committerManolo Gouy <Manolo>2010-03-29 12:52:28 +0000
commitb3d47552867d9425035918efb76b549615df4f99 (patch)
tree88a152e11c638ffea815fc9ea4b4ece1d019b9b1
parent24c6e23e25f0dd42784dee65be70e4bec6f05722 (diff)
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
-rw-r--r--FL/Fl_PSfile_Device.H4
-rw-r--r--FL/Fl_Printer.H5
-rw-r--r--src/Fl_PS_Printer.cxx2
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.
+ <p>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 @@
</ul>
In both cases, begin by start_job(), start_page(), printable_rect() and origin() calls
and finish by end_page() and end_job() calls.
- <p>On Xlib-based platforms (<i>e.g.</i>, Linux, Unix), the static public attributes of this class
+ <p>On Xlib-based platforms (<i>e.g.</i>, Linux, Unix), this class is implemented as
+ a subclass of Fl_PSfile_Device.
+ <p>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"
};