Matthias Clasen
cc17577763
Merge branch 'fix-emoji-pres' into 'main'
...
emoji: Fix presentation selector handling
See merge request GNOME/gtk!6986
2024-03-07 00:23:41 +00:00
Matthias Clasen
e04ea3f311
Merge branch 'fix-mis-scaled-text' into 'main'
...
gsk: Fix mis-scaled text rendering
Closes #6504
See merge request GNOME/gtk!6977
2024-03-06 23:22:42 +00:00
Matthias Clasen
77a2cd4d8d
gsk: Fix mis-scaled text rendering
...
This was happening when rotated text was partially redrawn.
A test that failed before this change is included.
Fixes : #6504
2024-03-06 17:52:35 -05:00
Matthias Clasen
0986981d1a
gpu: Empty clip is still empty after transform
...
When transforming an empty clip, it stays empty.
Previously, we were setting it to CONTAINED, but that's wrong, because
the bounds are not contained in the clip, the clip is contained in the bounds.
This reverts part of commit a51c6aed47
.
Related: !6692
2024-03-06 17:52:22 -05:00
Benjamin Otte
913f850f83
Merge branch 'wip/otte/for-main' into 'main'
...
Update "snapshot: linear-gradients cannot be affine-transformed"
See merge request GNOME/gtk!6989
2024-03-06 22:44:48 +00:00
Benjamin Otte
ed31da3730
Update "snapshot: linear-gradients cannot be affine-transformed"
...
This is a better fix for commit 7ed6c39862
.
The linear-gradient-nonorthogonal-linear-gradient test tests this.
Related: !6692
2024-03-06 22:35:30 +01:00
Benjamin Otte
428ff6c4ab
Merge branch 'wip/otte/for-main' into 'main'
...
snapshot: Fix wrong nodes with transformed shadows
See merge request GNOME/gtk!6988
2024-03-06 21:06:49 +00:00
Benjamin Otte
53786841cc
snapshot: Fix wrong nodes with transformed shadows
...
Test included.
The test is disabled for Cairo because the Cairo blurring code can't
deal with scaling, which makes things come out wrong for the test that
checks that we do the right thing with the blur radius when scaling.
Related: !6977
2024-03-06 21:52:16 +01:00
Vincent Chatelain
8f8ece44a8
Update French translation
2024-03-06 19:00:59 +00:00
Anders Jonsson
41a892b958
Update Swedish translation
2024-03-06 17:50:54 +00:00
Baurzhan Muftakhidinov
b494ed5876
Update Kazakh translation
2024-03-06 03:10:20 +00:00
Josh Brobst
7b589f991d
emoji: Fix presentation selector handling
...
The emoji presentation selector (FE0F) was being appended to every emoji
sequence inserted by GtkEmojiChooser and GtkEmojiCompletion, often
leading to invalid sequences. Modify the emoji data to include FE0F
only when necessary, and change skin tone handling to account for cases
where the generic (no tone) variation needs a presentation selector.
2024-03-05 18:44:55 -05:00
Christian Hergert
d83faf82d7
Merge branch 'macos-move-maximized' into 'main'
...
macos: Fix moving maximized windows
Closes #6436
See merge request GNOME/gtk!6914
2024-03-05 21:53:26 +00:00
Matthias Clasen
cd46016238
Merge branch 'preserve-font-dpi' into 'main'
...
gsk: Preserve dpi when modifying fonts
Closes #6508
See merge request GNOME/gtk!6985
2024-03-05 21:43:00 +00:00
Matthias Clasen
f2a3218455
Merge branch 'wip/chergert/fix-textviewchild-double-draw' into 'main'
...
textview: only snapshot GtkTextViewChild once
See merge request GNOME/gtk!6984
2024-03-05 21:37:37 +00:00
Matthias Clasen
85b1959714
Merge branch 'wip/fl/macos-cursor-from-texture' into 'main'
...
gdk: Implement cursor from texture on MacOS
See merge request GNOME/gtk!6981
2024-03-05 21:34:30 +00:00
Matthias Clasen
b23600ae4b
gsk: Preserve dpi when modifying fonts
...
When scaling a font or changing font options, we need to be
careful to preserve the dpi as well, otherwise the rendering
might leak out of the node bounds, leading to spectacular
glitches.
Fixes : #6508
2024-03-05 16:22:26 -05:00
Christian Hergert
bdc43b8fca
textview: only snapshot GtkTextViewChild once
...
This was causing double snapshotting of textview children because the
parent snapshot will also iterate and snapshot children.
2024-03-05 11:41:11 -08:00
Matthias Clasen
da2ef6911f
Merge branch 'ebassi/accessible-text-util' into 'main'
...
Rename GtkAccessibleText private header
See merge request GNOME/gtk!6982
2024-03-05 13:23:11 +00:00
Emmanuele Bassi
0626246367
a11y: Add utilify method for text attributes
...
Simplify the AT-SPI implementation by having a convenience function to
extract the text attributes of a GtkAccessibleText, with or without the
default attributes.
2024-03-05 12:23:17 +00:00
Matthias Clasen
0edfafdfdf
Merge branch 'macos-maximized-window' into 'main'
...
macos: Fix window state of initially maximized windows
Closes #5898
See merge request GNOME/gtk!6882
2024-03-05 11:35:49 +00:00
Bruce Cowan
1863b79fb3
Update British English translation
2024-03-05 11:35:24 +00:00
Emmanuele Bassi
9aa90f8df0
Rename GtkAccessibleText private header
...
Follow the existing naming convention, and drop the hyphen.
2024-03-05 11:00:20 +00:00
Fabio Lagalla
8080d9e7c1
gdk: Implement cursor from texture on MacOS
...
This is done with a NSCursor whose content is an NSImage. Image pixels are filled by a NSBitmap, and the format is premultiplied RGBA. So we can just use the texture downloader with GDK_MEMORY_R8G8B8A8_PREMULTIPLIED format.
2024-03-05 10:26:27 +01:00
Matej Urbančič
f432ee775f
Update Slovenian translation
2024-03-04 21:51:10 +00:00
Matthias Clasen
77f9cb11a9
Merge branch 'wip/chergert/for-main' into 'main'
...
gsk/gpu: add profiler node for shader loading
See merge request GNOME/gtk!6978
2024-03-04 21:36:37 +00:00
Asier Sarasua Garmendia
d92e3cb864
Update Basque translation
2024-03-04 19:58:53 +00:00
Matthias Clasen
733fa156b9
Merge branch 'ebassi/accessible-text-default-attrs' into 'main'
...
a11y: Add GtkAccessibleText.get_default_attributes
See merge request GNOME/gtk!6973
2024-03-04 19:54:33 +00:00
Christian Hergert
d181d53762
gsk/gpu: add profiler node for shader loading
...
This is helpful when tracking down why a frameclock cycle took so long. In
quick recordings it seems to often correlate with a shader compile.
2024-03-04 11:54:13 -08:00
Emmanuele Bassi
644e6f8ebe
Consolidate TextView/TextBuffer attribute serialization
...
Use dictionaries of string pairs instead of abusing GVariant; we can
convert the dictionary into a GVariant when we send the data over the
wire.
2024-03-04 19:13:29 +00:00
Matthias Clasen
0b4c695d65
Merge branch 'hinting-proper-positioning' into 'main'
...
gsk: Handle hinted fonts better
Closes #6502
See merge request GNOME/gtk!6966
2024-03-03 23:27:00 +00:00
Matthias Clasen
448287bd58
Merge branch 'camelCaseNick/a11y-text-contents-at' into 'main'
...
a11y: implement get_contents_at for Gtk.Text, Gtk.TextView, Gtk.Inscription
See merge request GNOME/gtk!6971
2024-03-03 23:03:13 +00:00
Benjamin Otte
5e6aff69c6
Merge branch 'wip/otte/for-main' into 'main'
...
demos: shadertoy only handles GL
See merge request GNOME/gtk!6976
2024-03-03 22:38:22 +00:00
Benjamin Otte
d88e616711
demos: shadertoy only handles GL
...
If somebody wants to add GLES support, go for it.
For now we enforce GL.
2024-03-03 22:20:44 +00:00
Aurimas Černius
0e5c94a094
Update Lithuanian translation
2024-03-03 20:47:02 +00:00
Brage Fuglseth
bb0aeec99c
Update Norwegian Bokmål translation
2024-03-03 20:08:02 +00:00
Matthias Clasen
880e3ef289
Add tests for glyph positioning
...
These tests check that we round glyph positions to integral device
pixel coordinates when hinting is enabled, and to device subpixel
positions if it isn't.
2024-03-03 14:28:19 -05:00
Sabri Ünal
94a09263d7
Update Turkish translation
2024-03-03 18:22:30 +00:00
Markus Göllnitz
ab9106ac89
testsuite: test for implementation of accessible_text_get_contents_at
...
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2024-03-03 19:13:40 +01:00
Markus Göllnitz
ff6451a77e
a11y: implement get_contents_at for Gtk.TextView
...
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2024-03-03 19:13:40 +01:00
Matthias Clasen
4f2d63b8ac
gsk: Handle hinted fonts better
...
Enforce the following rules:
- No hinting or subpixel positioning in transformed context
- glyph-align determines if we use integral or fractional
device pixel positions
- For hinting, always use an integral y position (the hinter
assumes integral positions, and only operates vertically).
2024-03-03 13:08:29 -05:00
Matthias Clasen
81c97f0910
gsk: Add a private helper
...
Add a function to get the hint style of a font.
2024-03-03 13:08:29 -05:00
Matthias Clasen
d1b52cc292
gsk: Preserve the antialiasing setting of the font
...
When we get an unhinted font for text node extents, don't change
the antialiasing setting. It doesn't affect the extents we get
here, but if we later need an unhinted font for rendering, the
one we create this way will be the right one, so it will already
exist.
2024-03-03 13:08:29 -05:00
Matthias Clasen
ddedb39329
gsk: Tweak gsk_get_hinted_font slightly
...
Make it possible to preserve some of the fonts original options.
2024-03-03 13:08:29 -05:00
Matthias Clasen
d45987e637
Merge branch 'fallback-to-gl+llvmpipe' into 'main'
...
Don't fall back to cairo for software rendering
See merge request GNOME/gtk!6975
2024-03-03 17:54:07 +00:00
Matthias Clasen
b95eceea60
Don't fall back to cairo for software rendering
...
The experience with gl+llvmpipe is not great, in particular on
fractional scales. But it is less broken than cairo in that
situation.
2024-03-03 12:28:20 -05:00
Emmanuele Bassi
2774e80fc4
a11y: Ensure that attributes are unique before sending them
...
The default attributes are overridden by the run attributes.
2024-03-03 17:08:39 +00:00
Matthias Clasen
7c207c4868
Merge branch 'matthiasc/for-main' into 'main'
...
Improve subpixel positioning tests
See merge request GNOME/gtk!6974
2024-03-03 16:33:46 +00:00
Matthias Clasen
c6c8abcf21
Improve subpixel positioning tests
...
We want to test subpixel positioning, so turn off hinting, since
hinting and subpixel positioning are opposing forces.
This does not currently change test outcomes, but it will prevent
the tests from breaking in the future when we make changes to
improve hinting.
2024-03-03 11:19:04 -05:00
Emmanuele Bassi
a59c967675
a11y: Implement AtspiText.GetDefaultAttributes
...
The new GtkAccessibleText.get_default_attributes() vfunc gives us the
ability to implement this AT-SPI method.
2024-03-03 15:17:53 +00:00