| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Update affected test outputs.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This will make the font serialization useful
in GTK, where we serialize fonts in node files.
|
| |
|
| |
|
|
|
|
|
| |
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.
|