| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Implement the other tab alignments by adjusting
the tab width as we go.
Based on an old patch by Itai Bar-Haim.
This also includes a fix for the previously
supported left tab alignment in the presence
of indent.
Fixes: #34
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
Add right, center, decimal tab alignments and support
them in serialization. They are not implemented yet.
|
| | |
| | |
| | |
| | | |
We want to use this without initializing tests.
|
| |/
| |
| |
| |
| | |
Explain that tabs really only work with
PANGO_ALIGN_LEFT.
|
|\ \
| | |
| | |
| | |
| | | |
Fix pango-view crash
See merge request GNOME/pango!528
|
|/ /
| |
| |
| |
| | |
Remove cairo_debug_reset_static_data function call in pango-view
to avoid crash.
|
|\ \
| |/
| |
| |
| | |
Never show variation selectors
See merge request GNOME/pango!526
|
| | |
|
|/
|
|
|
|
|
|
| |
Even when we show ignorables, we still want to
ignore variation selectors and other ignorables
that we don't have nicks for.
Test included.
|
|\
| |
| |
| |
| |
| |
| | |
Fix misplaced glyphs in gravity east
Closes #631
See merge request GNOME/pango!524
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
| |
This was showing up as glyphs placed outside
their logical extents.
|
| |
|
|\
| |
| |
| |
| | |
Avoid cosmetic ugliness
See merge request GNOME/pango!522
|
| |
| |
| |
| |
| | |
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.
|
|\
| |
| |
| |
| | |
Make sure glyphinfo is fully initialized
See merge request GNOME/pango!523
|
| |
| |
| |
| |
| | |
We can only use the width of the previous char
if we are not at the first char. Found by asan.
|
| | |
|
| |
| |
| |
| | |
We need to copy the scale hack for bitmaps.
|
| | |
|
| |
| |
| |
| |
| | |
The alternative is random test failures, now
that we check all these fields in test-layout.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The previous code was calculating the rounded up version of the
difference between the unhinted ascender and uninted descender. This
however would only result in the correct height if both unhinted
extentss together only differ by less then an a Pango unit from their
hinted counterparts. Otherwise the resulting height would be 1 unit too
short.
Fix this by using the difference between the hinted extents as height.
Fixes: https://gitlab.gnome.org/GNOME/pango/-/issues/626
|
| |
| |
| |
| |
| |
| |
| | |
This replaces the code that was trying to implement those via the ROUND
macro. This avoids a potential issue with values that already were on
whole units being rounded up to the next whole unit in the code that was
implementing CEIL this way.
|
|\ \
| | |
| | |
| | |
| | | |
Rename the serialize errors
See merge request GNOME/pango!520
|
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Another debug api. This function produces a serialization
of a font that is enough to uniquely identify the font.
This is more detailed than what pango_font_describe
creates.
|
| | |
| | |
| | |
| | |
| | | |
These were produced with the help of
http://gitlab.gnome.org/matthiasc/layout-editor
|
| | |
| | |
| | |
| | |
| | |
| | | |
Json doesn't have comments, so we have to add
an explicit comment value. This will be useful
to describe what test cases are about.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add some private api for the serializer to get
the font matrix. This is needed to let the serializer
write a unique fingerprint for the font.
|
| | |
| | |
| | |
| | |
| | | |
This lets us transfer things like base gravity
from layout-editor to pango-view.
|
| | | |
|
| | |
| | |
| | |
| | | |
Avoid writing out empty attributes or tabs.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|