| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
Don't calculate line width the hard way when
we can do it much easier.
|
| |
|
|
|
|
| |
Use newlines to separate tabs, rather than spaces.
|
|
|
|
|
|
|
| |
This is useful for PANGO_TAB_DECIMAL.
Implement this in PangoLayout, in the
serializer, and update tests.
|
|
|
|
|
|
|
|
|
| |
Serialize tab alignment in addition to tab
position. We still accept the old format
and default alignment to left.
Update testserialize and layout tests
for this.
|
|
|
|
| |
We want to use this without initializing tests.
|
| |
|
|
|
|
|
|
|
|
| |
Even when we show ignorables, we still want to
ignore variation selectors and other ignorables
that we don't have nicks for.
Test included.
|
|
|
|
|
|
|
|
|
|
|
| |
Without this, we end up with line height being
zero in gravity north or west. The visible symptom
is that wrapped lines are drawn on top of each
other with line-height != 0.
Affected tests have been updated.
Fixes: #631
|
|
|
|
|
| |
Now that we have fonts in git, we can
reliably test this.
|
|
|
|
|
|
|
|
| |
When setting variations to "", font descriptions
would add an ugly useless " @" at the end of their
serialization. Avoid that.
Test included.
|
| |
|
|
|
|
| |
We need to copy the scale hack for bitmaps.
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Hinted metrics fixes
Closes #626
See merge request GNOME/pango!518
|
| |
| |
| |
| |
| |
| | |
This would have caught the issue fixed in the previous commit, because
the default font choice of "serif 12" happened to not be affected by it.
Most other fonts or font sizes however were.
|
| |
| |
| |
| | |
It should work there, but it doesn't.
|
| |
| |
| |
| | |
This makes more sense.
|
| |
| |
| |
| |
| |
| |
| | |
Our new, more precise font checks rely on
data from fontconfig to identify fonts
uniquely. So make sure that we use a custom
fc fontmap, if we have one.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Otherwise editing the output in an editor
is likely to make the data not match anymore,
since most editors will add a final newline.
Update all tests
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Not used anymore.
|
| |
| |
| |
| |
| | |
These were produced with the help of
http://gitlab.gnome.org/matthiasc/layout-editor
|
| |
| |
| |
| |
| |
| | |
Use the new output serialization in test-layout
to store both the input and output in the same
file.
|
| |
| |
| |
| |
| |
| |
| | |
If requested, serialize lines, runs, and log attrs.
This will let us use the serialization format to
record not just the test inputs, but outputs as
well.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Optionally include context information in the
serialization and restore it. This will be useful
for transporting for giving tests complete data
that affects their output.
Some tests included.
|
| |
| |
| |
| |
| |
| |
| | |
This gives us some room to add more things
to these apis, e.g. a way to store not just
the input part of a layout, but also the
output.
|
| |
| |
| |
| |
| | |
They are produced by deserialization,
so call them that.
|
| |
| |
| |
| |
| |
| |
| | |
When looking at scripts, we want to look
at the script of the *previous* character.
And then we need to exclude SHY from the
common script.
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
When we take a complete item because there are
no breakpoints, we were inserting a hyphen at
the end even though there may not be a breakpoint
there, and ending up with a hyphen in the middle
of an (overlong) line: Brat-wurst.
Test included.
This but was discovered with the help of
http://gitlab.gnome.org/matthiasc/layout-editor
|
|
|
|
|
|
|
|
|
|
|
| |
I went a bit overboard in #603. The vertical bar
is too common, and this usage to specialized to
do it by default. To enable this, we should rather
make log attrs tweakable.
We still replace hyphenation points with hyphens.
Fixes: #630
|
|
|
|
|
| |
Now that we have this api, lets use it for
our tests.
|
|
|
|
|
|
|
|
| |
Add api to serialize PangoLayout, for the benefit
of testing and debugging. Currently, this uses
json, but that is an implementation detail.
Some tests included.
|
| |
|
| |
|
|
|
|
| |
Update affected test outputs.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Our asan ci is unforgiving, and point out
every memory leak.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
Some of the layout tests now get better line breaks.
|
| |
|
|
|
|
|
|
|
|
|
| |
We were not passing the correct split_offset to
pango_item_split().
Testcase included.
Fixes: #627
|
| |
|