| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
- Switch to an environment() object, to allow for proper escaping
- Use the TAP protocol with GTest
- Put all tests under the Pango suite
|
|
|
|
| |
Works just as well.
|
|
|
|
|
|
|
|
| |
Do not use homegrown assertion and failure macros, when GTest has
perfectly functional API to deal with all the cases Pango covers.
Using GTest also allows us to rely on appropriate formatting for
results and logging.
|
| |
|
|
|
|
| |
Remove an unused function, and rename another.
|
| |
|
| |
|
|
|
|
| |
Test that new underline values work.
|
|\
| |
| |
| |
| | |
Add a test for new font api
See merge request GNOME/pango!154
|
| |
| |
| |
| | |
This test exercises the new font enumeration apis.
|
|/ |
|
|
|
|
| |
The change is a harmless change in attribute list ordering.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We want to make sure that the ink rectangles
we return have positive size.
|
|
|
|
|
|
|
| |
We were crashing when ellipsizing text without
any attributes.
Test included.
|
|\
| |
| |
| |
| |
| |
| | |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a text attribute that allows to suppress
insertion of hyphens at intra-word line breaks.
This is useful for non-paragraph-like contexts,
where line breaks are needed, but hyphens are not
expected.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Use the same logic as PangoLayout for
filtering attributes.
|
|
|
|
|
|
|
| |
Use the same logic as PangoLayout for
filtering attributes.
Update expected output to match.
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of filtering out the attributes we don't
want to influence itemization, explicitly filter
only those attributes that we want to affect itemization.
This makes us no longer break items for custom
attributes, such as GtkTextAppearance attributes
that are created by GtkTextLayout.
Update expected output for layout testcases.
|
| |
|
|\
| |
| |
| |
| | |
Better hyphens
See merge request GNOME/pango!89
|
| | |
|
| | |
|
| |
| |
| |
| | |
Recent changes changed breaks.
|
| |
| |
| |
| | |
pango_get_log_attrs does not apply allow-break attributes.
|
| | |
|
|/ |
|
|
|
|
|
| |
We don't have any testcases for this yet,
no reason to fail the testsuite.
|
|\
| |
| |
| |
| | |
Use harfbuzz for font metrics and glyph lookup
See merge request GNOME/pango!58
|
| |
| |
| |
| |
| | |
For now, just check that we get a non-NULL
hb_font_t that has a space glyph.
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
These are clang warnings.
|
|
|
|
|
| |
Some of the hyphenation fixes affected line
breaks in the layout tests.
|
|
|
|
|
|
|
| |
This is similar in spirit to hb-shape. Take an
input and produce a sequence of glyphs as output.
There are no testcases yet.
|
| |
|
|
|
|
|
| |
We don't care about the particular font here, we just
want to list font metrics of an existing font.
|
|
|
|
|
| |
This is to confirm whether fonts report a nonzero
height on Windows.
|
|
|
|
|
|
|
| |
This tests a situation in which we had a crash
until recently: Multiple paragraphs, with no-break
attributes. We used to free the no-break attribute
list prematurely.
|
| |
|