Add eps printing format, add option to print widget/window size and support for greek letters

12 views
Skip to first unread message

Nuno Cardoso

unread,
Oct 18, 2020, 6:25:02 AM10/18/20
to fltk.coredev
In the older versions, there was support to print only the window/widget into a page with the size of the object, without selecting any page format
There is a way to do this in 1.3.5 version?
 
Also, how can I include greek letters without the system convert to image and having a ugly view, and also when printing to ps?

Thanks


Manolo

unread,
Oct 19, 2020, 4:22:14 AM10/19/20
to fltk.coredev
The support for EPS format has been added to FLTK 1.4. It's not in 1.3.5.

With 1.3.5, it's possible to print any widget or window on a page as detailed there:

This way, there's no page format selection in the program. The page format is determined by the selection
of the printer.

Nothing possible in older versions is absent from version 1.3.5

FLTK uses only standard PostScript fonts and, unfortunately, these support only the Latin script.

Manolo

unread,
Nov 1, 2020, 1:33:06 AM11/1/20
to fltk.coredev
Following this post, support for PostScript/EPS output of Greek letters (and any other script)
has been added to FLTK 1.4.

This requires to activate Pango support at FLTK build time, which is done either by
   ./configure --enable-pango
or
  cmake   -D OPTION_USE_PANGO=1
With that support, non-Latin scripts can be drawn by fl_draw() whatever is the current font.
That is, it's no longer necessary to match the chosen font with the character repertoire in the drawn text.

Reply all
Reply to author
Forward
0 new messages