After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655588 - conform/cally/cally_text fails
conform/cally/cally_text fails
Status: RESOLVED OBSOLETE
Product: clutter
Classification: Platform
Component: cally
unspecified
Other Linux
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
: 655583 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-07-29 16:20 UTC by Philippe Normand
Modified: 2021-06-10 11:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philippe Normand 2011-07-29 16:20:08 UTC
It seems that the font family configured for the test is not taken in account depending on the DE used to run the tests.

GTest: run: /conform/cally/cally_text
extents x position at index 0 differs (current value=65)
extents y position at index 0 differs (current value=100)
default attributes mismatch
text attribute left-margin = 0
text attribute right-margin = 0
text attribute indent = 0
text attribute invisible = false
text attribute editable = false
text attribute pixels-above-lines = 0
text attribute pixels-below-lines = 0
text attribute pixels-inside-wrap = 0
text attribute bg-full-height = 0
text attribute bg-stipple = false
text attribute fg-stipple = false
text attribute fg-color = 0,0,0
text attribute wrap-mode = word
text attribute justification = left
text attribute size = 11
text attribute weight = 400
text attribute family-name = Ubuntu
text attribute stretch = normal
text attribute variant = normal
text attribute style = normal
text attribute language = en-us
text attribute direction = ltr

Notice the Ubuntu font-family, this trace comes from GNOME-Classic in Ubuntu.
I also tried the test in GNOME-Shell and the test reports Cantarell being used.

One possible solution would be to enforce the use of a font file, shipped in Clutter tests/data directory so we don't depend on the running DE.
Anyway, further investigation is required.
Comment 1 Emmanuele Bassi (:ebassi) 2011-07-30 11:10:30 UTC
*** Bug 655583 has been marked as a duplicate of this bug. ***
Comment 2 Emmanuele Bassi (:ebassi) 2011-08-15 15:30:01 UTC
shipping a known font under a suitable license sounds fine by me — we have the tests/data directory for shared data for tests. on the other hand, I don't know whether Pango can actually support this yet.

an alternative solution might be to check for a specific font family inside the test and, if not found, skip the test altogether.
Comment 3 Philippe Normand 2011-08-18 10:13:54 UTC
(In reply to comment #2)
> shipping a known font under a suitable license sounds fine by me — we have the
> tests/data directory for shared data for tests. on the other hand, I don't know
> whether Pango can actually support this yet.
> 

Right, doesn't seem supported by Pango. Maybe we could use the Fontconfig API though, FcConfigAppFontAddFile() seems like a good candidate. When I get some spare time I'll give this a shot :)
Comment 4 André Klapper 2021-06-10 11:32:39 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of clutter, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a ticket at
  https://gitlab.gnome.org/GNOME/clutter/-/issues/

Thank you for your understanding and your help.