mutter/clutter/tests/conform
Marco Trevisan (Treviño) af3662775e clutter/text: Generate resource scaled text and paint it at proper scaling
When resource scale is set we need to generate a scaled PangoLayout (by adding
a new scale attribute, or adjusting the one we already have according the
resource scale), then it has to be painted with proper scaling matrix.

So everything that has to do with PangoLayout has to be in real coordinates,
then clutter logical coords multiplied by resource scaling.
While the actual size of the layout is the one of the PangoLayout divided by
resource scale.

We map the text positions to logical coords by default, while using
the pixel coordinates when painting.

We fall back to scale 1 when calculating preferred size if no scale is
known. The pango layout will not have set a layout scale attribute,
meaning it'll be 1, thus we should just assume the layout scale is 1 here.
Not doing so might result in the preferred size being 0x0 meaning the
actor won't be laid out properly.

Fixes https://gitlab.gnome.org/GNOME/mutter/issues/135

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/mutter/merge_requests/3
2019-03-01 17:46:49 +00:00
..
scripts
actor-anchors.c clutter/tests: Update expectations in actor-anchors test 2018-12-18 13:51:44 +01:00
actor-destroy.c
actor-graph.c clutter: conform/actor-graph: Add missing null-termination 2017-05-05 09:53:51 -04:00
actor-invariants.c
actor-iter.c
actor-layout.c
actor-meta.c
actor-offscreen-redirect.c clutter: Fix offscreen-effect painting of clones 2019-01-24 17:00:25 +00:00
actor-paint-opacity.c
actor-pick.c
actor-shader-effect.c tests: Don't check pixels outside actor allocation 2018-12-18 13:54:09 +01:00
actor-size.c
behaviours.c
binding-pool.c
cairo-texture.c
cally-text.c
color.c
group.c
interval.c
meson.build clutter: Remove tests/conform/model.c 2019-02-28 13:01:29 -05:00
path.c
rectangle.c
script-parser.c
state.c
text-cache.c
text.c clutter/text: Generate resource scaled text and paint it at proper scaling 2019-03-01 17:46:49 +00:00
texture-fbo.c
texture.c
timeline-interpolate.c
timeline-progress.c
timeline-rewind.c
timeline.c
units.c