GNOME Bugzilla – Bug 655588
conform/cally/cally_text fails
Last modified: 2021-06-10 11:32:39 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.
*** Bug 655583 has been marked as a duplicate of this bug. ***
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.
(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 :)
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.