summaryrefslogtreecommitdiff
path: root/tests/testattributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-15 18:49:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-16 08:42:17 -0500
commit67c7ec61c026161db0e942d140e138e20d33a59f (patch)
treef18d82171183272d4788715643646cd4309527d0 /tests/testattributes.c
parent3eae71709bb96ebc52b6f5ec31eca9a418bf07ca (diff)
downloadpango-67c7ec61c026161db0e942d140e138e20d33a59f.tar.gz
Rewrite process_item
This is not an entire rewrite, the basic approach to fitting items is still the same. The main difference here is that we shape and measure a possible breakpoint before accepting it as candidate for breaking. This is necessary to ensure that we have accurate width information when making decisions about this breakpoint - the width we are calculating based on log widths is only an approximation (due to things like clusters, hyphens, final spaces, etc). To avoid excessive shaping, we only do this extra work when we are close to the end of the line.
Diffstat (limited to 'tests/testattributes.c')
0 files changed, 0 insertions, 0 deletions