| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This tests that we turn off ligatures when letterspacing
is enabled.
|
|
|
|
| |
Fixes: #648
|
|
|
|
|
| |
This test verifies the fixes for the
situation described in #646.
|
|
|
|
|
|
|
|
|
|
|
| |
HarfBuzz knows how to synthesize spaces, we just
need to tickle it in the right way.
Test included.
Update affected tests.
Fixes: #641
|
|
|
|
| |
This tests the fix in the previous commit.
|
|
|
|
|
|
|
|
|
| |
We can't break in a tab run.
This fixes an assertion found by afl.
Testcase included.
Fixes: #638
|
|
|
|
|
|
|
|
|
|
| |
We an only use the line_width - remaining_width
shortcut if we are actually maintaining remaining_width,
i.e. not if we don't wrap lines.
Testcase included.
Fixes: #635
|
|
|
|
|
|
|
|
|
|
| |
When we uninsert the current tab run, we need to reset
our tab state to prevent last_tab->glyphs to become a
dangling pointer.
Test included.
Fixes: #634
|
| |
|
| |
|
|
|
|
|
| |
Now that we have fonts in git, we can
reliably test this.
|
|
|
|
| |
It should work there, but it doesn't.
|
|
|
|
|
|
|
|
|
| |
Add Cantarell, DejaVu Sans and a subset of Noto Color Emoji
to git, and make test-layout use just those fonts. This
should help with keeping the ci from breaking due to different
system fonts.
Update tests.
|
|
|
|
|
|
| |
Add an api to serialize PangoAttrList.
This will be useful in testing and debugging.
|
|
|
|
|
| |
It fails there (although it shouldn't), and I
don't have the means to debug it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Generate random string that looks like a sentence.
* Measure the size at 100 random widths.
* assert that for those widths, when sorted, the measured widths
are increasing and the heights are decreasing.
* Generate random string that looks like a sentence.
* Generate a 2nd string adding hyphen + newline after every char of
original string.
* Assert that wrap-char wrap with width=0 is not larger than the width
of the 2nd string
The tests also generate random strings in LTR, RTL or both at the same
time to spice the test up even more.
It does that by picking random words out of hunspell directories, and if
none are installed, it falls back to lorem ipsum.
|
|
|
|
|
|
| |
This is just used in tests for now. If we decide
to make an external log attr api, we can make this
public.
|
|
|
|
|
|
| |
We have more tests than meson knows about.
Fixes: #600
|
|
|
|
| |
Some of these currently fail.
|
|
|
|
|
| |
The return value of setlocale is only good until
the next call. Also, consistently use en_US.UTF-8.
|
|
|
|
| |
Also add some tests for bidi embedding levels.
|
| |
|
| |
|
| |
|
|
|
|
| |
These improve converage for misc PangoContext apis.
|
|
|
|
| |
Cover many more error cases.
|
|
|
|
|
| |
Add tests that test some of the corner cases handled
in the previous commit.
|
|
|
|
|
|
|
|
|
| |
Test that round-tripping through pango_font_describe
works. This is currently broken for scalable bitmap
fonts, such as color Emoji fonts.
We skip the test on OS X where we are most likely
missing the fonts.
|
|
|
|
|
|
|
| |
As pointed out by Werner Lemberg, we were adding
four.break twice if libthai is used.
Fixes: #508
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are using the deprecated python3 module for historical reasons. We
used to support both Python 2 and Python 3 in the Autotools build, but
since we switched to Meson we *know* we have Python 3 available. This
allows us to use a shebang line in the Python scripts we use in the
build, instead of invoking them through the Python interpreter in a
custom target; Meson knows how to handle shebangs portably as well.
This change removes the only deprecation warning coming from Meson when
configuring the Pango build.
|
|
|
|
| |
Added meson features for disabling the dependencies libthai, cairo and xft such that they won't be used even if present on the system. Changed meson dependencies for some tests accordingly.
|
|
|
|
| |
This verifies the fix in the previous commit.
|
|
|
|
|
|
| |
- Switch to an environment() object, to allow for proper escaping
- Use the TAP protocol with GTest
- Put all tests under the Pango suite
|
| |
|
|
|
|
|
|
| |
If we don't have libthai, these tests fail.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/420
|
|
|
|
|
|
|
| |
Thai language requires word dictionary from libthai project
for word/sentence breaks.
Adding this test case to check the results of sentence breaks.
|
|
|
|
| |
This reverts commit 086183f9df9fd8fcfdf83a3801710fdcb2e8316a.
|
|\
| |
| |
| |
| |
| |
| | |
Pass the right attributes when shaping ellipses
Closes #397
See merge request GNOME/pango!127
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Now that we are splitting attributes into those that
are relevant for itemization and shaping, we need to
make sure to pass the right ones along when ellipsizing,
or we risk picking a wildly mismatching font for the
ellipsis run, causing things to shift vertically.
Test included.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/397
Thanks to Jorge Luis Martinez Gomez for his help
in tracking this down.
|
|/
|
|
|
|
|
|
| |
Without this file one of the tests is always skipped:
/text/break/line: /usr/libexec/installed-tests/pango/LineBreakTest.txt not found. Skipping test.
Taken from the Unicode 12.0.0 release.
|
|
|
|
|
| |
For now, just check that we get a non-NULL
hb_font_t that has a space glyph.
|
|
|
|
|
|
|
| |
This is similar in spirit to hb-shape. Take an
input and produce a sequence of glyphs as output.
There are no testcases yet.
|
| |
|
|
|
|
| |
Some tests were not having the right dependencies.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This is similar to test-break in that it produces
useful output for understanding itemization.
Non testcases for now. One issue is that this,
like so many other tests is font-dependent.
|
|
|
|
|
| |
We were not diffing the output against the
expected results.
|
|
|
|
| |
This is useful for exploring line breaking.
|
|
|
|
| |
Closes: https://gitlab.gnome.org/GNOME/pango/issues/354
|