summaryrefslogtreecommitdiff
path: root/src/drivers/PostScript
AgeCommit message (Collapse)Author
2022-07-20Change prototype of virtual Fl_Graphics_Driver::pango_font_description().ManoloFLTK
2022-07-18Fl_Cairo_Graphics_Driver: simpler way to construct the PangoLayout object.ManoloFLTK
2022-05-05Fl_Cairo_Graphics_Driver: simpler code with early calls to ↵ManoloFLTK
cairo_surface_destroy(). Add also replacement for pango_font_metrics_get_height() which requires Pango 1.44
2022-05-02Keep the PangoLayout member private in class Fl_Cairo_Graphics_Driver.ManoloFLTK
2022-03-24Remove platform-dependent type Fl_Bitmask (not in documented public API).ManoloFLTK
2022-03-23Remove vsscanf_l() call from Win32 driver (it appears to be a BSD-ism and ↵ian.macarthur
unsupported by the MS tools) and rename several clocale specific methods from "name" to "vname" since they take a va_list not a variable list of arguments.
2022-03-21Fix silly MSVC 2010 parser warningsAlbrecht Schlosser
Code like "void copy(const char */*stuff*/, ...)" would issue the warning "'*/' seen outside comment" which is formally true but ... These warnings don't appear with newer MS compilers, but I fixed them anyway.
2022-03-06Complete class Fl_Cairo_Graphics_Driver using Fl_Wayland_Graphics_DriverManoloFLTK
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2021-12-09Remove compiler warnings about unused parameters (issue #307) - cont'dManoloFLTK
2021-12-02PostScript output: initialise member variables in Fl_Cairo_Graphics_Driver ↵ManoloFLTK
constructor. Also, remove inadequate Fl_Surface_Device::push_current(this) call in Fl_Posix_Printer_Driver::begin_job().
2021-10-31Consistently make Fl_Paged_Device::begin_page call ↵ManoloFLTK
Fl_Surface_Device::push_current.
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-05-26Fix trailing whitespace and formattingAlbrecht Schlosser
2021-03-26Remove X11-specific code from platform-independent Fl_PostScript.cxxManoloFLTK
2021-03-23Optimization for pixel loop.Greg Ercolano
As per erco's comments on fltk.coredev, Mar 21 2021 in thread Subject: Re: 1.4 build failing on OSX for me
2021-03-22Remove unused #include statementsAlbrecht Schlosser
Cairo is not used in this file, math.h is not necessary, and stdio.h is only required if USE_PANGO is false.
2021-03-22Add missing include file stdlib.h for abs(int)Albrecht Schlosser
This file was included (in math.h or elsewhere) on Linux and latest macOS versions but maybe not in earlier macOS versions or with other configuration options.
2021-03-15Create class Fl_Cairo_Graphics_Driver.ManoloFLTK
That class is extracted from inside Fl_PostScript_Graphics_Driver and might become handy in the future.
2021-03-15Class Fl_PostScript_Graphics_Driver: better separation of what varies with ↵ManoloFLTK
USE_PANGO
2021-03-01Remove warnings about hidden virtual member functions.ManoloFLTK
2021-02-16Use <config.h> when appropriate.ManoloFLTK
2021-02-13Remove compilation warnings issued by Visual Studio 2019.ManoloFLTK
2020-11-17Fix whitespace and minor formatting issuesAlbrecht Schlosser
2020-11-10Remove useless typedef declaration.ManoloFLTK
2020-11-01Add Fl_PostScript_File_Device::close_command(Fl_PostScript_Close_Command cmd)ManoloFLTK
Also expand Doxygen doc of class Fl_Printer for the X11 platform.
2020-10-30X11+GTK: remove warning when native file chooser runs on WaylandManoloFLTK
2020-10-29Fix PostScript driver for fl_draw_image(buf,X,Y,W,H,D,L) with negative D or LManoloFLTK
2020-10-29Cairo-based PostScript: fix image tilingManoloFLTK
2020-10-28Pango ps (#148)ManoloFLTK
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.
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-06-27Add classes Fl_SVG_File_Surface and Fl_EPS_File_Surface to draw to SVG and EPS.ManoloFLTK
Test programs device and pixmap_browser use these new classes. Class Fl_SVG_File_Surface can be optionally made non functional using the --disable-svg configure option or turning off OPTION_USE_SVG in CMake. Class Fl_EPS_File_Surface can be optionally made non functional using the --disable-print configure option or turning off OPTION_PRINT_SUPPORT in CMake.
2020-04-22Add optional argument to Fl_Printer::begin_job() to inform caller when an ↵ManoloFLTK
error occurs. This solves an issue raised in fltk.general : Fl_Printer errors - how can I interpret them? https://www.fltk.org/newsgroups.php?s38419+gfltk.general+v38427
2020-04-10Give example of use of Fl_Native_File_Chooser::USE_FILTER_EXT option.ManoloFLTK
2020-04-05Update standard file headersManoloFLTK
2020-01-20Fix Fl_PostScript_Graphics_Driver::clip_box()Albrecht Schlosser
2020-01-15Fix uninitialized vars in calls to fl_clip_box() (issue #6)Albrecht Schlosser
The main fixes are only to avoid static code analyzer warnings reported in issue #5, but there are also minor bug fixes included. These bug fixes are more of theoretical concerns though. Close #6.
2019-04-09Fix for STR 3519: the PostScript graphics driver fails with some narrow ↵ManoloFLTK
unicode characters
2019-02-02STR #2714: remove new shadow lint for MacOSMatthias Melcher
2018-06-26Move Fl_System_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Doxygen only: fixed all block comments starting with an asterisk to ↵Matthias Melcher
space-only, fixed doxygen keywords prepended with @ to use a backward slash instead. No code was changed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Doxygen: created Group to document drivers, disabled by defaultMatthias Melcher
Uncomment `ENABLED_SECTIONS += DriverDev` in documentation/Doxyfile.in to enable driver documentation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-09Rename Fl_Paged_Device::start_job() to begin_job() and ↵Manolo Gouy
Fl_Paged_Device::start_page() to begin_page(). The new function names begin_job() and begin_page() better match end_job() and end_page() with which they must be used by pair. The old names start_job() and start_page() are maintained for API compatibility with FLTK 1.3.x git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19Fix handling of bg argument of fl_draw_pixmap(char**, int , int , Fl_Color ↵Manolo Gouy
bg) during direct drawing of pixmap image data. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16Remove Fl_PostScript_Graphics_Driver::mask_bitmap(char **) that is useless.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-13Simplify code for image drawing by PostScript graphics driver.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12832 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-12SVG support: improve printed SVG images by increasing the resolution when ↵Manolo Gouy
printing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-12Image drawing: simplify the code organisation to better support ↵Manolo Gouy
Fl_Image::scale() - continued This completes changes introduced at r.12828. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-12Image drawing: simplify the code organisation to better support ↵Manolo Gouy
Fl_Image::scale(). Graphics drivers now use up to 6 virtual member functions to support Fl_Image drawing in the context of GUI and image rescaling : virtual void draw_pixmap(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) virtual void draw_bitmap(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy) virtual void draw_rgb(Fl_RGB_Image *rgb, int XP, int YP, int WP, int HP, int cx, int cy) and virtual void draw_fixed(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy) virtual void draw_fixed(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy) virtual void draw_fixed(Fl_RGB_Image *rgb, int XP, int YP, int WP, int HP, int cx, int cy) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121