Gimp/app/text
Jehan 926d5c6daa app, libgimp*, plug-ins: fix previous commit and add gimp_cairo_surface_get_buffer().
The previous commit was not taking into account usages of
gimp_cairo_surface_create_buffer(), other than the text layer rendering
usage, as it was focused on fixing #14970.

In particular, in other pieces of code, we were using a temporary
GeglBuffer as a way to edit the original Cairo surface but the syncing
back was not happening anymore. So previous commit was breaking all
thumbnails of layers or images, as well as PDF export for all raster
layers.

After some thought, I decided to implement a new function
gimp_cairo_surface_get_buffer() which would do what
gimp_cairo_surface_create_buffer() was doing, but adding a boolean flag
to declare whether or not we were expecting to sync back into the Cairo
surface's data. After all, when we don't need to sync back, better avoid
the useless work of copying possibly huge data.

I also added back the possibility of returning a linear-memory backed
buffer, after some discussion with pippin. Because for very small
surfaces, and if we are indeed looking to sync back into the source
Cairo surface, the advantages of using a linear buffer may still be
worth it, even though it's not true for the general case (where tiled
buffers will be much more efficient). I used 4096 (64^2 because our
current tile dimensions are 64 right now in GIMP), though this number is
kinda random and doesn't matter too much (it doesn't have to be the
square of the tile's width or height). I don't put any info about this
in the new function's documentation because developers should not have
any expectations on the type of buffer they get (only whether or not it
will sync back to the source).

As a consequence of all this, gimp_cairo_surface_create_buffer() has
been deprecated as of GIMP 3.2, though it will still work the same. The
new function will be recommended as a replacement.
2025-11-08 20:34:55 +01:00
..
gimpfont.c app: use more recent harfbuzz API. 2025-09-22 00:43:11 +02:00
gimpfont.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimpfontfactory.c GimpFontFactory: don't match postscript name on Skia font family 2025-10-12 10:10:29 +02:00
gimpfontfactory.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptext-compat.c text: keep fonts usable if the current one becomes missing 2024-08-04 11:02:09 +01:00
gimptext-compat.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptext-parasite.c text: Fix loading XCFs with XLFD fonts 2024-05-21 17:19:33 +01:00
gimptext-parasite.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptext-path.c app: rename app/vectors/ to app/path/ 2025-07-07 15:44:15 +02:00
gimptext-path.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptext-xlfd.c Issue #8900 and #9923: reimplementing GimpUnit as a proper class. 2024-08-02 10:46:38 +02:00
gimptext-xlfd.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptext.c text, pdb: Connect text outline unit to PDB 2025-10-25 12:00:52 -04:00
gimptext.h text, pdb: Connect text outline unit to PDB 2025-10-25 12:00:52 -04:00
gimptextlayer-transform.c app, pdb, po: new GimpRasterizable interface. 2025-10-13 15:37:11 +02:00
gimptextlayer-transform.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptextlayer-xcf.c app, pdb: do not push undos on rasterizables when loading a XCF. 2025-10-23 01:16:58 +02:00
gimptextlayer-xcf.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptextlayer.c app, libgimp*, plug-ins: fix previous commit and add gimp_cairo_surface_get_buffer(). 2025-11-08 20:34:55 +01:00
gimptextlayer.h tools: prevent on-canvas text editor from being dragged outside the image bounds 2025-10-31 15:39:10 +01:00
gimptextlayout-render.c MR !19: Add support for vertical text writing. 2018-07-30 19:14:49 +02:00
gimptextlayout-render.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptextlayout.c text: Add additional outline options 2025-05-24 16:12:39 +00:00
gimptextlayout.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00
gimptextundo.c app, pdb, po: new GimpRasterizable interface. 2025-10-13 15:37:11 +02:00
gimptextundo.h app, pdb, po: new GimpRasterizable interface. 2025-10-13 15:37:11 +02:00
meson.build Declare gexiv2 dependency on many targets (due to gimpmetadata.h) 2025-10-03 18:31:53 -03:00
text-enums.c text, libgimpbase: Move text enums 2025-10-08 11:34:57 +00:00
text-enums.h text, libgimpbase: Move text enums 2025-10-08 11:34:57 +00:00
text-types.h app, pdb, libgimp: use "#pragma once" instead of: 2025-07-13 03:21:37 +02:00