| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Test some more tests for roundtripping
casing variants from font description to
font and back.
|
|
|
|
|
|
|
| |
Add a test that verifies that PANGO_VARIANT_SMALL_CAPS
survives a roundtrip from font description to font and
back, and that it shows up in the font as smcp=1 in
the OpenType features.
|
|
|
|
|
| |
I can't debug this using just the ci runner,
so skip it until somebody can.
|
| |
|
|
|
|
| |
This reverts commit 7a4af7a052e7e4187955aad9c4c60853bad806f9.
|
| |
|
|
|
|
|
| |
These need to wait until 20ec670e124e4461075
can be reapplied.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Fix empty line heights
Closes #421
See merge request GNOME/pango!481
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When metrics hinting is on, we used to provide rounded
font metrics. We should keep doing that since otherwise
we end up with logical rects sometimes being rounded
and sometimes not, leading to jumping empty lines.
Test included.
Fixes: #421
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't really have firm control over the way
attributes are ordered in the list, so the
assumtion that we see proper nesting for baseline
shifts was a bit optimistic.
Just look through all open stack items for a match,
and remove that.
Test included.
|
|\
| |
| |
| |
| | |
Implement baseline shifts
See merge request GNOME/pango!462
|
| |
| |
| |
| | |
A bit more natural than the environment variable.
|
| |
| |
| |
| |
| |
| |
| | |
I added these for improved coverage, but they
get in the way, Should probably just move these
kind of checks to another place and leave this
test focused on dumps.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Use the new baseline-shift and font-scale attributes
to reimplement <sup> and <sub>.
Now they take font metrics into account and nest
properly.
|
| |
| |
| |
| |
| |
| |
| | |
Add a new font-scale attribute to indicate font size
changes due to super- and subscript shifts, and handle
it during item post-processing to find the right font
sizes.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a new baseline-shift attribute, which is similar to
rise, but accumulates. In addition, it supports font-
relative values such as superscript and subscript.
We implement support for this by computing baseline
shifts for run during line post-processing, and storing
them in the runs. The renderer now takes these shifts
into account when rendering layout lines.
|
|/ |
|
|
|
|
|
|
| |
We were skipping the test that would have found
the brokenness in the previous fix. Lets see if
we can get the test working on MacOs.
|
| |
|
| |
|
|
|
|
|
|
| |
These are not very reliable for things other than
marks, but even that is useful for debugging cluster
handling.
|
|
|
|
|
|
| |
This really needs some more generic treatment.
Update affected test outputs.
|
|
|
|
|
|
| |
Now that we have introspection helpers for
attributes, we can use them ourselves to make
this code less brittle.
|
|
|
|
|
|
|
| |
Print out the items num_chars and char_offset, so we
can check that the char_offset implementation works.
Update affected test outputs.
|
|
|
|
|
|
|
|
|
| |
It is very annoying that gtest will dump its
random seed into the output as soon as one calls
g_test_init(). This pollutes our generated output.
Work around that by deferring the g_test_init()
call until after we've dealt with generating
output.
|
|
|
|
| |
We're going to steal one bit for private purposes.
|
|
|
|
|
|
| |
Cluster boundaries were cutting off the first
character of a new cluster. Not great if the
tools print out misleading information.
|
|
|
|
|
| |
This is useful when trying to understand the output
for scripts I don't read.
|
| |
|
|
|
|
|
|
| |
This is just used in tests for now. If we decide
to make an external log attr api, we can make this
public.
|
|
|
|
|
|
|
| |
We were not correctly handling overlapping segments
in all cases, with <span segment='word'>. Improve this.
Update affected tests.
|
|
|
|
|
|
|
|
| |
We were not putting a line break at the end of the
text, in cases where a paragraph ends with a newline.
Enforce this in all break apis.
Update affected tests.
|
|
|
|
| |
This helps with understanding clusters.
|
|
|
|
|
|
| |
There was some extra code here that was getting
in the way of using all the dumper tests on
the same input files. Get rid of it.
|
|
|
|
|
|
|
| |
Add attributes that let us override word and
sentence boundaries (and, indirectly, line breaks).
Tests included.
|
| |
|
|
|
|
|
|
| |
Print out all the log attrs we have.
Update expected test outputs.
|
|
|
|
|
|
|
|
| |
Replace ‧ and | with a - when we break there.
Update affected test output.
Fixes: #603
|
|
|
|
|
|
|
|
|
|
|
| |
We want to insert word start+end if libthai
hands us line breaks between letters. But must
be careful not to overwrite existing word boundaries,
or we end up with a nonsense sequence.
This was found by checking log attr invariants.
Regenerate affected test outputs.
|
|
|
|
|
|
| |
We have more tests than meson knows about.
Fixes: #600
|
| |
|
| |
|
|
|
|
|
| |
This wasn't working when passed a file
on the commandline. Fix that.
|
|
|
|
|
| |
Handle all attribute types when testing copying,
and add tests for the binding helpers.
|
|
|
|
| |
Fix a comment
|
|
|
|
|
|
| |
Change the order in test-break output to be
sentence, word, grapheme. Update all affected
test outputs.
|