ManoloFLTK
4ae905cc9d
Change prototype of virtual Fl_Graphics_Driver::pango_font_description().
2022-07-20 08:37:21 +02:00
ManoloFLTK
536c32ee99
Fl_Cairo_Graphics_Driver: simpler way to construct the PangoLayout object.
2022-07-18 22:58:02 +02:00
ManoloFLTK
c6659c9a29
Fl_Cairo_Graphics_Driver: fix issues in string width computations when scaling applies.
...
The implemented approach is to create and use the pango_layout_ object only relatively
to an unscaled cairo context. With this, the pixel width of a drawn string equals
the sum of the widths of its characters.
2022-07-06 10:05:00 +02:00
ManoloFLTK
c6516673ee
New member Fl_Cairo_Graphics_Driver::bitmap_to_pattern() to avoid code duplication.
2022-06-12 09:04:22 +02:00
ManoloFLTK
049cef17f7
Set line height as computed by Pango.
2022-05-02 12:41:20 +02:00
ManoloFLTK
85cf597765
Keep the PangoLayout member private in class Fl_Cairo_Graphics_Driver.
2022-05-02 11:05:23 +02:00
ManoloFLTK
71dedbc886
Issue #438 : Wayland: Text drawing different from Xft version - cont'd.
2022-05-01 09:44:20 +02:00
ManoloFLTK
cf1c8b1125
Fix for issue #438 : Wayland: Text drawing different from Xft version - cont'd.
2022-04-30 16:37:28 +02:00
ManoloFLTK
8808d11578
Create member function Fl_Cairo_Graphics_Driver::set_cairo().
2022-04-25 10:22:23 +02:00
ManoloFLTK
285e8e843a
Create Fl_Cairo_Graphics_Driver::handle_dummy_cairo(cairo_t *cr).
2022-04-23 16:15:05 +02:00
Albrecht Schlosser
e91d65cd2f
Fix whitespace errors (no code changes)
2022-03-31 16:00:11 +02:00
ManoloFLTK
d9a6ec88e4
Add support of Fl_Region to the Cairo graphics driver
...
and remove it from the Wayland graphics driver.
2022-03-31 10:36:01 +02:00
ManoloFLTK
427e4dbc7a
Remove platform-dependent type Fl_Bitmask (not in documented public API).
2022-03-24 10:00:01 +01:00
Albrecht Schlosser
fa84b58cd5
Fix silly MSVC 2010 parser warnings
...
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-21 17:03:13 +01:00
ManoloFLTK
f97fbffa7b
Move all font stuff to Fl_Cairo_Graphics_Driver from Fl_Wayland_Graphics_Driver.
2022-03-09 08:46:49 +01:00
ManoloFLTK
f8db18597a
Complete class Fl_Cairo_Graphics_Driver using Fl_Wayland_Graphics_Driver
2022-03-06 19:47:06 +01:00
ManoloFLTK
08e59770aa
Remove compiler warnings about unused parameters (issue #307 ) - cont'd
2021-12-09 11:40:55 +01:00
ManoloFLTK
596a937530
PostScript output: initialise member variables in Fl_Cairo_Graphics_Driver constructor.
...
Also, remove inadequate Fl_Surface_Device::push_current(this) call in Fl_Posix_Printer_Driver::begin_job().
2021-12-02 10:54:40 +01:00
Albrecht Schlosser
6ac305a508
Remove compiler warnings '-Wextra-semi' (see also PR #266 )
...
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-08-27 14:52:43 +02:00
ManoloFLTK
ef41409759
Add guard against multiple inclusion of header file.
2021-03-27 19:05:29 +01:00
ManoloFLTK
4657e988f7
Remove X11-specific code from platform-independent Fl_PostScript.cxx
2021-03-26 07:52:21 +01:00
ManoloFLTK
1fbcae13bd
Create class Fl_Cairo_Graphics_Driver.
...
That class is extracted from inside Fl_PostScript_Graphics_Driver and might
become handy in the future.
2021-03-15 14:09:50 +01:00