| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This includes stdlib.h for strtol, strtoll and strtod functions declaration
|
|
|
|
|
|
|
|
|
|
| |
pango_attr_iterator_get_attributes only returns
the innermost attribute of each kind. That is correct
for attributes that supersede each other, but not for
font descriptions, which get merged. So, keep all
font attributes in the returned list.
Update affected tests.
|
|
|
|
|
|
| |
For tests where the wrong fonts break things,
check that we have Cantarell, and skip them
if not.
|
|
|
|
|
| |
We were rounding things differently, giving
us off-by-one errors on MacOs.
|
|
|
|
|
| |
The return value of setlocale is only good until
the next call. Also, consistently use en_US.UTF-8.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This is sometimes useful, even if we want to avoid
it in ci. So add an environment variable,
PANGO_TEST_SHOW_FONT to make it show the actual font
instead of 'OMITTED'.
|
|
|
|
|
|
| |
Add more cases to cover move of the branches
in this complicated function. Among other things,
this tests the fix in the previous commit.
|
|
|
|
|
|
|
|
|
|
| |
Make attribute_from_string() parse enum attribute values
in the same way as PangoMarkup, and use it in the
attribute tests.
Still to do: Do the same for flags. The flags parsing
function isn't exported, so this needs our tests to be
statically linked.
|
|
|
|
|
|
|
|
| |
The documentation for this function states that all
bidi control chars are zero width, but it was missing
the Isolate ones. Add them.
Updated tests included.
|
|
|
|
|
| |
This recreates the scenario described in #564.
It works fine.
|
|
|
|
|
|
|
|
| |
Correctly classify tag characters as Grapheme_Extend,
so that we don't end up putting grapheme boundaries
in the middle of tag sequences.
Includes a test.
|
| |
|
|
|
|
|
|
|
| |
Add grapheme boundaries to the output of test-break,
so we can check those easily, too.
Update expected test output for this.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Also add some tests for bidi embedding levels.
|
| |
|
| |
|
|
|
|
|
| |
Avoid g_test_init if we are just generating expected output,
for easier updating.
|
|
|
|
|
|
|
|
| |
Allow setting more layout properties in test-layout,
and check their values after setting them.
Also print out directions and cursor positions.
Update existing tests, and add more.
|
|
|
|
| |
Spot-check a copied layout in test-break.
|
| |
|
| |
|
|
|
|
|
| |
We need space for G_MAXUINT and 4294967285 (in testattributes.c). On
i686, this requires long long, as long is only 32 bits wide.
|
|
|
|
|
|
|
| |
It turns out that we can still see non-scalable fonts
which report a list of sizes. Take that into account.
Fixes: #570
|
|
|
|
| |
Now that we aren't using the M_ constants, drop math.h.
|
|
|
|
|
|
|
|
|
|
| |
Math implementations are platform dependent, and for
example msvc requires a define before enabling the
constants [1]
Use G_SQRT2 implementation which is independent instead.
[1] https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-160
|
|
|
|
|
| |
The api is deprecated, but it is very ugly to randomly
miss a few values here. Just add them.
|
| |
|
|
|
|
| |
Exercise the list model apis, for coverage.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Check the previous change.
|
|
|
|
| |
These improve converage for misc PangoContext apis.
|
|
|
|
| |
These improve test coverage for some corner cases.
|
| |
|
|
|
|
| |
Cover many more error cases.
|
|
|
|
|
|
|
| |
Add a way to deserialize a PangoAttrList from a string,
for less cumbersome tests.
And use it in testattributes.
|
|
|
|
|
| |
This tests that we handle more cases of overlapping
attributes properly.
|
|
|
|
| |
Test the fix in the previous commit.
|
|
|
|
| |
This captures bug fixed in the previous commit.
|
|
|
|
|
|
|
|
|
| |
The commit message for d476d2a944500f8553 said
"word boundaries", but the code checked for line
breaks. That was wrong, since it also made hyphens
disappear at SHY, where we very much want them.
Update affected tests.
|
|
|
|
|
|
|
| |
test-break has a helpful text that explains
the maining of the output. Unfortunately,
the --help option is taken by g_test_init(),
so make this available with --legend.
|
|
|
|
|
|
|
| |
We were just never setting the height. Ouch!
Test included.
Fixes: #487
|