| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-01-13 | Fix set_fonts() in Xlib/xft and Cairo Graphics_Driver | Albrecht Schlosser | |
| src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx: - fix font_name_process() out of bounds memory access - unify/align font_name_process() code (see also Xlib/xft) - fix font name string allocation src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx - unify/align font_name_process() code (see also Cairo_Graphics) - fix font name string allocation Todo: move common code to Fl_Graphics_Driver or another common file. | |||
| 2023-01-04 | Cairo/Pango: compute character widths fast and string widths accurately | ManoloFLTK | |
| This commit has Fl_Cairo_Graphics_Driver compute string widths in 2 ways: 1) when the string contains several unicode characters, the width of the whole string is computed, accounting for kerning when it occurs; 2) when the string contains a single unicode character, its width is computed, memorised, and re-used next time it's necessary. The effect of this approach is - Fl_Text_Display is fast because it uses memorised single character widths repeatedly - Fl_Input is drawn accurately because the cursor position is determined by string widths, not by sums of character widths. | |||
| 2022-12-30 | Use `FL_OVERRIDE` for all overridden virtual methods (#611) | Matthias Melcher | |
| FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override() | |||
| 2022-12-19 | Complete Fl_Cairo_Graphics_Driver::restore_clip() | ManoloFLTK | |
| The driver's clip_ member was not updated to the new Cairo clip state which rendered function Fl_Cairo_Graphics_Driver::clip_box() inaccurate. | |||
| 2022-12-10 | Text positioning different in 1.4.x vs 1.3.x (#568) - cont'd | ManoloFLTK | |
| @wcout reports that we get better results if function pango_font_metrics_get_height() is not used until version 1.50.6 and above of libpango. The difference is specially visible with underscore characters in unscaled, standard DPI displays. This commit does that. | |||
| 2022-12-06 | Fix issue #537 without damaging test/mandelbrot | ManoloFLTK | |
| 2022-12-04 | Wayland: remove regression in mandelbrot introduced by 1a5d657 | ManoloFLTK | |
| The panel was drawn solid black when test/mandelbrot was unfocussed. | |||
| 2022-12-04 | Fl_Cairo_Graphics_Driver: simpler way to construct font from name+size | ManoloFLTK | |
| 2022-12-03 | Fix dotted line drawing under Cairo graphics driver | ManoloFLTK | |
| 2022-12-02 | Fix text drawn by pango is offset +1 pixel on x and y) (#568) | ManoloFLTK | |
| 2022-11-30 | Remove useless fl_matrix member variable of class Fl_Graphics_Driver | ManoloFLTK | |
| 2022-11-17 | Fix "Cairo: Scaled images draw with wrong size" (#537) | ManoloFLTK | |
| 2022-10-30 | Wayland platform: fix problem with fl_pie() (#512 - cont'd) | ManoloFLTK | |
| 2022-10-30 | Wayland platform: fix problem with fl_pie() (#512 - cont'd) | ManoloFLTK | |
| 2022-10-24 | Include stdint.h may be needed for uint32_t (#522) | ManoloFLTK | |
| 2022-10-12 | Wayland platform: fix for issue #512 with fl_arc(). | ManoloFLTK | |
| 2022-10-10 | Remove duplications between Fl_Graphics_Driver and derived classes. | ManoloFLTK | |
| 2022-10-10 | Fl_Cairo_Graphics_Driver: fix Fl_Bitmap drawing whatever the endianness. | ManoloFLTK | |
| 2022-10-10 | Fix for issue #511: allow fl_circle() even without calls to ↵ | ManoloFLTK | |
| fl_begin/end_loop/polygon(). | |||
| 2022-10-09 | Fl_Cairo_Graphics_Driver: make image drawing correct whatever the host ↵ | ManoloFLTK | |
| endianness. | |||
| 2022-10-09 | Fix issue #510: image transparency is not properly processed. | ManoloFLTK | |
| 2022-10-05 | Fix issue #509: Cairo drawing: unexpected behaviour | ManoloFLTK | |
| This commit fixes " "drawing an fl_pie() with dimension 1x1". But it does not change "drawing fl_line() with begin position = end position does not show" because the same behaviour is observed with Windows and macOS. | |||
| 2022-09-26 | Replace all calls to sprintf() by calls to snprintf(). | ManoloFLTK | |
| 2022-09-15 | Make Fl::set_color(r,g,b,a) effective under Wayland and macOS. | ManoloFLTK | |
| 2022-09-09 | New OPTION_WAYLAND_ONLY for CMake to build pure Wayland platform. | ManoloFLTK | |
| 2022-09-08 | Add necessary virtual qualifier to ~Fl_Font_Descriptor() and derived. | ManoloFLTK | |
| 2022-08-29 | Make hybrid Wayland/X11 platform. | ManoloFLTK | |
| 2022-08-18 | Add a few missing virtual members to Fl_Cairo_Graphics_Driver. | ManoloFLTK | |
| 2022-08-12 | Add virtual Fl_Cairo_Graphics_Driver::cache_size() member function. | ManoloFLTK | |
| 2022-07-24 | Add Pango version check for Fl_PostScript_Graphics_Driver | ManoloFLTK | |
| 2022-07-21 | Fl_Cairo_Graphics_Driver: simpler handling of font size. | ManoloFLTK | |
| 2022-07-20 | Change prototype of virtual Fl_Graphics_Driver::pango_font_description(). | ManoloFLTK | |
| 2022-07-18 | Fl_Cairo_Graphics_Driver: simpler way to construct the PangoLayout object. | ManoloFLTK | |
| 2022-07-11 | Add explanatory comments about text handling by Fl_Cairo_Graphics_Driver. | ManoloFLTK | |
| 2022-07-06 | Move member q_width from class Fl_Font_Descriptor to Fl_Quartz_Font_Descriptor. | ManoloFLTK | |
| That's because this member is used only in Fl_Quartz_Font_Descriptor. | |||
| 2022-07-06 | Fl_Cairo_Graphics_Driver: fix issues in string width computations when ↵ | ManoloFLTK | |
| 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-06-12 | New member Fl_Cairo_Graphics_Driver::bitmap_to_pattern() to avoid code ↵ | ManoloFLTK | |
| duplication. | |||
| 2022-06-04 | Fix for issue #447: dotted focus rectangles are a little "ragged" with some ↵ | ManoloFLTK | |
| scales. | |||
| 2022-05-27 | Fl_Cairo_Graphics_Driver: fix GUI rescaling. | ManoloFLTK | |
| The solution to avoid blurred graphics when the GUI is scaled is to turn off cairo antialiasing when drawing horizontal and vertical lines and rectangles. | |||
| 2022-05-25 | Improve rectf() and push_clip() under cairo and GUI scaling. | ManoloFLTK | |
| 2022-05-05 | Approximate result of pango_font_metrics_get_height() for Pango < 1.44 | ManoloFLTK | |
| 2022-05-05 | Fl_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-04 | Cairo: reduce vertical offset for text position needed by Fl_Text_Display. | ManoloFLTK | |
| 2022-05-02 | Issue #438 : Wayland: Text drawing different from Xft version - cont'd. | ManoloFLTK | |
| 2022-05-02 | Set line height as computed by Pango. | ManoloFLTK | |
| 2022-05-02 | Keep the PangoLayout member private in class Fl_Cairo_Graphics_Driver. | ManoloFLTK | |
| 2022-05-01 | Issue #438 : Wayland: Text drawing different from Xft version - cont'd. | ManoloFLTK | |
| 2022-04-30 | Fix for issue #438 : Wayland: Text drawing different from Xft version - cont'd. | ManoloFLTK | |
| 2022-04-29 | Add explanatory comments about text size and vertical position. | ManoloFLTK | |
| 2022-04-29 | Fix for issue #438 : Wayland: Textdrawing different from Xft version. | ManoloFLTK | |
