- 16 Nov, 2021 1 commit
-
-
Matthias Clasen authored
-
- 15 Nov, 2021 6 commits
-
-
Matthias Clasen authored
More line breaking fixes See merge request !507
-
Matthias Clasen authored
Some of the layout tests now get better line breaks.
-
Matthias Clasen authored
-
Matthias Clasen authored
It turns out that we do need to look for longer breakpoints after all if we want to find optimal solutions.
-
Matthias Clasen authored
When looking for breakpoints, we were assuming that there is no point to keep looking forward once we hit a spot where the broken off part is too long. But with hyphen insertion, that is no longer true, necessarily. Consider 'bli '. Breaking after 'bl' will insert 'bl-', which might be longer than 'bli', which is what will be inserted when we break after the i. To fix this, keep looking for breakpoints as long as there is still a chance to find one.
-
Matthias Clasen authored
We always need to check if we still fit, after shaping. The width we use before is just an estimate.
-
- 14 Nov, 2021 2 commits
-
-
Matthias Clasen authored
The key insight here is that if we find a broken item does not fit, we are only interested in finding an *earlier* breakpoint - the later ones aren't going to produce a shorter run. So we can just keep track of the last char we want to allow breaking at. This fixes the case of finding the minimum width with wrap mode PANGO_WRAP_WORD.
-
Matthias Clasen authored
-
- 13 Nov, 2021 3 commits
-
-
Matthias Clasen authored
Fix a bug in Small Caps handling Closes #627 See merge request !505
-
Matthias Clasen authored
-
Matthias Clasen authored
We were not passing the correct split_offset to pango_item_split(). Testcase included. Fixes: #627
-
- 12 Nov, 2021 19 commits
-
-
Matthias Clasen authored
Simplify breakpoint disabling See merge request !504
-
Matthias Clasen authored
-
Matthias Clasen authored
This keeps spiraling :(
-
Matthias Clasen authored
If the break is at the end of the item, we were forgetting to check for the space before the break.
-
Matthias Clasen authored
When we are breaking after a space, we must not count the width of the space towards the line, since we are zeroing it later. It is a bit annoying that there are multiple places where this has to be taken into account. Another missing bit in this code is that we are only looking at a single whitespace character before the break, when we should really look for a sequence of spaces.
-
Matthias Clasen authored
When unsplitting an item, we were sometimes calculating the remaining_width incorrectly.
-
Matthias Clasen authored
We can use the log_widths that we already have.
-
Matthias Clasen authored
We only want this inside process_item, so we can make this a purely local thing, without modifying log_attrs.
-
Matthias Clasen authored
Cosmetics See merge request !503
-
Matthias Clasen authored
-
Matthias Clasen authored
coretext: correctly clamp the core text weights at min/max values See merge request !502
-
Jeremy Tan authored
Addresses bug found in #624
-
Matthias Clasen authored
layout: Try harder to not produce overlong lines See merge request !501
-
Matthias Clasen authored
Our accounting for run lengths is imperfect (mainly due to log widths for clusters being evenly distributed), so it can happen that after reshaping the split item, we find that it does not actually fit in the remaining width. Previously, we would just use the split run at that point and produce an overlong line. Instead, undo the split, disable the breakpoint we used, and try again.
-
Matthias Clasen authored
This undoes the effect of pango_item_split. We will use this in future commits. Private for now.
-
Matthias Clasen authored
This will let us use some of them during layout.
-
Matthias Clasen authored
GTK frequently uses this width during measuring, so it is good if we can reproduce what happens in this case.
-
Matthias Clasen authored
This can make it easier to reproduce problems.
-
Matthias Clasen authored
-
- 11 Nov, 2021 4 commits
-
-
Matthias Clasen authored
layout: Fix a poblem with hyphen width See merge request !500
-
Matthias Clasen authored
-
Matthias Clasen authored
This checks behavior that is required by GTK.
-
Matthias Clasen authored
In some cases, we were forgetting to account for the width of a hyphen.
-
- 10 Nov, 2021 1 commit
-
-
Matthias Clasen authored
Mention new attribute values in markup docs.
-
- 09 Nov, 2021 4 commits
-
-
Matthias Clasen authored
Bump fontconfig dep to 2.13.0 See merge request !499
-
Matthias Clasen authored
Call hb_font_set_ptem when creating fonts See merge request !498
-
Matthias Clasen authored
We are requiring a new enough fontconfig now.
-
Matthias Clasen authored
This version of fontconfig has all the API we are using, and was released in 2018.
-