Commit Graph

50551 Commits

Author SHA1 Message Date
Jehan 68167ae01b app: fix counting of similar fonts with largest similarity value and a crash.
Previous code was incrementing the similar_fonts count each time we found a
better candidate. So we ended up computing the hash even when we had only 1
candidate with maximum similarity.

Moreover this commit fixes a crash happening with the "standard font". The
lookup name must always be allocated, even when it's an empty string (otherwise
it crashes at free).

Additionally this commit factorizes the code so that gimp_font_get_hash() takes
care of hash computation instead of duplicating code.

Finally I do some code organization.
2023-09-12 14:23:40 +00:00
Idriss Fekir 899dee5926 (De)Serialize fonts in pango markup 2023-09-12 14:23:40 +00:00
Idriss Fekir 7be3f56f5c Serialize GimpFont and fix loading older xcf files
MR #1011 breaks that because now we have a display name
and a lookup name, so font info is saved in the xcf file,
and when loading, the font which matches these info is used.

This doesn't fix pango markup having the wrong fonts names.
2023-09-12 14:23:40 +00:00
Idriss Fekir a966297498 Port GimpText to GimpFont
In GimpText, The font used to be stored as a string containing its name,
Now, it is stored as a GimpFont object, which makes more sense and makes
operations on fonts easier (such as serialization).
2023-09-12 14:23:40 +00:00
Rafael Fontenelle b5895aca9a Update Brazilian Portuguese translation 2023-09-12 13:44:20 +00:00
Alx Sa f5ae105f49 themes: Add border for canvas size in Resize Dialog
Adds a class "gimp-offset-area-frame" to the frame containing a GimpOffsetArea in resize dialogues.
This allows the styling from 2.10 to be applied to indicate canvas size when resizing layers.
Since GimpOffsetArea is a GtkDrawingArea object, it can't have CSS directly
applied to it - that's why the class is added to the frame instead.
2023-09-11 20:07:17 +00:00
Vasil Pupkin f0f7c0cd2c Update Belarusian translation 2023-09-09 23:05:49 +00:00
Vasil Pupkin d0d4239e36 Update Belarusian translation 2023-09-09 09:54:48 +00:00
Sabri Ünal b76947361e Update Turkish translation 2023-09-07 15:33:14 +00:00
Luming Zh 5e399ebd2b Update Chinese (China) translation 2023-09-07 13:48:06 +00:00
dimspingos cf1dca4347 Updated Greek translation 2023-09-07 16:42:13 +03:00
Sabri Ünal 703be5a103 Update Turkish translation 2023-09-07 10:41:21 +00:00
Sabri Ünal 06e6aa14a3 Update Turkish translation 2023-09-07 10:34:42 +00:00
Martin d2ea6617da Update Slovenian translation 2023-09-07 07:33:04 +00:00
Alx Sa a69c7736c2 core: Handle ASE palettes with header padding
This removes any padding the color space label might have originally,
which interfered with g_str_has_prefix ().
2023-09-06 20:15:59 +00:00
Yuri Chornoivan 7372521802 Update Ukrainian translation 2023-09-06 17:43:04 +00:00
lillolollo ade8cad5d1 gitlab-ci: Windows update python 3.11 2023-09-06 15:08:03 +02:00
bootchk 61c1acbead tinyscheme: enhance: rearrange error msg so error kind is stable prefix
Error kind should be first to read, is most important.

Makes testing error message easier when prefix is stable.
2023-09-06 06:37:29 -04:00
bootchk 14c30f6514 ScriptFu tests: Add some tests and remove hardcoded ID's
Buffer, palette, parasite, unit, context

Also test only a prefix of error message.
2023-09-06 09:53:31 +00:00
dimspingos 6b2cdb3154 Updated Greek translation 2023-09-06 10:24:09 +03:00
Jordi Mas 75033ab6b7 Update Catalan translation 2023-09-06 06:37:42 +02:00
Alx Sa 19050ce7c0 dialog: Use column value from imported palettes
GIMP's .gpl palette format and Swatchbooker's .sbz format can contain
metadata on the number of columns. This value was ignored before;
now the import dialogue checks for this value and uses it.
2023-09-06 01:12:48 +00:00
Alx Sa 6597dabeb3 core: Add support for SwatchBooker palettes 2023-09-06 01:12:48 +00:00
programmer_ceds 9e06e2aa53 Fix Zoom Shortcuts (fixes issue #9797) 2023-09-05 22:35:06 +00:00
Balázs Úr 9c965efd81 Update Hungarian translation 2023-09-05 19:02:16 +00:00
Heiko Becker 8b2574e917 meson: Add explicit options for cfitsio and openmp
...instead of automagically enabling them if the dependency happens
to be installed.
2023-09-03 22:41:04 +02:00
Luming Zh 6f77a661c9 Update Chinese (China) translation 2023-09-03 14:21:47 +00:00
Luming Zh 1d496c8c81 Update Chinese (China) translation 2023-09-03 14:17:02 +00:00
Idriss Fekir e93e7a124c Improve text quality of UI on Windows
When using the default pangocairo backend (win32),
AA is not enabled.

Switching to the FontConfig backend fixes the problem.
2023-09-02 21:09:06 +00:00
Martin 73ea5464ef Update Slovenian translation 2023-09-02 20:39:08 +00:00
Yuri Chornoivan e11e21b55d Update Ukrainian translation 2023-09-02 16:26:53 +00:00
Víttor Paulo Vieira da Costa d812b0d9a6 Update Brazilian Portuguese translation 2023-09-02 13:11:23 +00:00
Víttor Paulo Vieira da Costa d5805cba34 Update Brazilian Portuguese translation 2023-09-02 13:11:20 +00:00
Víttor Paulo Vieira da Costa acc4fe982f Update Brazilian Portuguese translation 2023-09-02 13:11:14 +00:00
Alx Sa 531da1560d Issue #30: Add onClick, accesskey, and tabindex tags to Image Map plug-in 2023-09-02 03:30:35 +00:00
Jacob Boerema b53f7c10e4 libgimp: fix #9902 Critical when calling gimp_text_layer_new ...
from plug-in

I get a critical error when calling gimp_text_layer_new and the function
doesn't return a GimpTextLayer:

(file-psd:47120): LibGimp-CRITICAL **: 16:00:59.035:
gimp_gp_param_to_value: type name GimpTextLayer is not registered

Adding the above line to libgimp/gimp.c fixes the problem.
2023-08-31 21:42:13 +00:00
Sabri Ünal e425678bcf Update Turkish translation 2023-08-31 18:50:46 +00:00
Sabri Ünal e22ddb7806 Update Turkish translation 2023-08-31 18:48:39 +00:00
Sabri Ünal 5657feded8 Update Turkish translation 2023-08-31 18:44:03 +00:00
Jehan 459836ee09 Issue #9710: layers borders not properly refreshed.
This was a regression appeared with commit 1b3af8a89b. We still don't want to
flush the whole image, but if the selected layers change, we want to flush the
display shell.
2023-08-31 20:33:31 +02:00
Jehan 79fe90646f NEWS: update. 2023-08-30 17:25:01 +02:00
Alx Sa caff8dbb7b core: Fix crash when filling with Middle Gray color
Filling with Middle Gray requires getting the image format
for conversion from CIE Lab. This works when filling a layer,
but new images are not yet available in the context.
This adds the image to the context before gimp_drawable_fill ()
is called so it has access to the image format.
2023-08-28 22:42:31 +00:00
Martin 27f18ff872 Update Slovenian translation 2023-08-28 21:55:08 +00:00
Martin 9157211fa4 Update Slovenian translation 2023-08-28 21:53:03 +00:00
Yuri Chornoivan 4d1d8803c4 Update Ukrainian translation 2023-08-28 17:23:30 +00:00
Ekaterine Papava a04c3cd614 Update Georgian translation 2023-08-28 04:36:54 +00:00
Tim Sabsch bdf55cd9d4 Update German translation 2023-08-27 20:19:38 +00:00
Alx Sa 38495c7b2d Issue #9901: Add Adobe Swatch Exchange palette import 2023-08-27 16:51:02 +00:00
Piotr Drąg 081b8e65a4 Update Polish translation 2023-08-27 16:23:24 +02:00
Ekaterine Papava 21061bfa31 Update Georgian translation 2023-08-27 14:07:27 +00:00