| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
Remove leftover test files
See merge request GNOME/pango!426
|
| |
| |
| |
| |
| | |
These don't have a corresponding .break file, so
they are useless.
|
| | |
|
| |
| |
| |
| |
| | |
The C locale gives us heartburn wrt to any
non-ASCII chars.
|
| | |
|
|/
|
|
|
|
| |
Add a PangoTextTransform enum, a PangoAttribute
to set it on runs of text, and support for parsing
it out of markup.
|
|
|
|
|
| |
Add a check that tests that layout, line, run,
cluster and char extents are nested as expected.
|
|
|
|
|
|
| |
Update affected tests
Fixes: #598
|
|
|
|
|
| |
Test that we can round-trip with
pango_layout_x_index (most of the time).
|
|
|
|
|
|
|
| |
Some of these aren't reliable, and were only
added for test coverage.
Fixes: #576
|
|
|
|
|
| |
These cover more of the corner cases fixed in the
previous commits.
|
|
|
|
|
|
|
|
|
|
| |
pango_layout_index_to_line_and_extents needs to
return a run rect even if the line has no non-empty
runs. Failing to do so was causing cursors at the
end of lines to have a height of 0 or 1, which is
not what we want.
Add a testcase.
|
|
|
|
|
| |
Some tests used items from PangoFT2, which may not have been enabled on
platforms where that was optionally built.
|
|
|
|
|
|
| |
Now that we are using run extents for cursor positions,
the vertical extents aren't necessarily constant across
a line anymore. Adapt our assertions.
|
|\
| |
| |
| |
| |
| |
| | |
Reimplement pango_layout_move_cursor_visually
Closes #587, #585, and #157
See merge request GNOME/pango!389
|
| |
| |
| |
| |
| | |
Test the line end handling of
pango_layout_move_cursor_visually.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Reimplement this function based on pango_layout_get_cursor_pos.
This is a bit less efficient, but it fixes cases where the old
implementation would get stuck.
Fixes: #587, #585, #157
|
| |
| |
| |
| | |
Some of these currently fail.
|
| |
| |
| |
| |
| | |
We need to apply trailing properly, by skipping
characters.
|
| |
| |
| |
| |
| |
| |
| | |
Accept values like 200%, in addition to other
ways of specifying sizes in markup.
Fixes: #23
|
| | |
|
|/
|
|
|
|
|
|
| |
Accept values like 12.5pt, in addition to
the other ways of specifying font size in
markup.
Fixes: #67
|
|
|
|
| |
Some of these currently fail.
|
|
|
|
|
|
|
| |
When rendering the text char-by-char, use directional
controls to avoid any bidi reordering.
Update affected tests.
|
|
|
|
|
|
| |
This checks that we get split cursors in some
cases where we expect it. One of the cases was
broken until the previous commit.
|
|
|
|
|
|
|
|
| |
This was quite an odyssee:
- Identify commit from 2008 that caused a regression
- Spot the commit message alluding to a crash
- Identify bug number in NEWS for releases from 2008
- Find the bug in the no longer searchable bugzilla.gnome.org
|