| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
Apply horizontal displacements for superscripts and subscripts
that are provided in font metrics. This noticably improves the
placement of superscripts in italics.
Currently, we only apply these displacements in post-processing,
and ignore the width changes during line-breaking. This could
be improved by moving the baseline handling into the line-breaking
proper.
|
|
|
|
|
|
|
|
| |
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 are going to add new fields to PangoGlyphItem,
so zero-initialize the one we are allocating here
in ellipsize.c.
|
|\
| |
| |
| |
| |
| |
| | |
coretext: Set size on font descriptions
Closes #610
See merge request GNOME/pango!464
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
| |
Set a size on the font description returned by
pango_font_describe(). Otherwise, scaling it
doesn't work.
Fixes: #610
|
|\
| |
| |
| |
| | |
Cosmetics
See merge request GNOME/pango!463
|
| | |
|
|\ \
| |/
| |
| |
| | |
test-shape: Print out glyph classes
See merge request GNOME/pango!460
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
|
| |
These are not very reliable for things other than
marks, but even that is useful for debugging cluster
handling.
|
|\
| |
| |
| |
| | |
Try harder to disect clusters
See merge request GNOME/pango!450
|
| | |
|
| | |
|
| |
| |
| |
| | |
If we don't have them, just do the fallback.
|
| |
| |
| |
| |
| |
| | |
This variant of pango_glyph_string_index_to_x takes
log attrs so it does not have to compute them when
it needs them to determine grapheme boundaries.
|
|/
|
|
|
|
|
|
|
|
| |
We need to take into account whether the characters
we are counting are actually cursor positions, else
we are bound to look for more carets than the font
has available, sometimes.
This change would benefit from passing log attrs into
pango_glyph_string_index_to_x.
|
|\
| |
| |
| |
| | |
pango-view: Redo --annotate option
See merge request GNOME/pango!459
|
|/
|
|
|
| |
Parse the argument as a comma-separated list
of names. The old numeric arguments still work.
|
|\
| |
| |
| |
| | |
Add pango_layout_iter_get_run_baseline
See merge request GNOME/pango!458
|
| |
| |
| |
| |
| |
| | |
Use the new run baseline api to correct
the positioning of glyph extents and caret
positions.
|
|/
|
|
| |
This is useful information.
|
|\
| |
| |
| |
| | |
layout: Apply rise to cluster extents
See merge request GNOME/pango!457
|
| |
| |
| |
| |
| |
| | |
We can't currently position them correctly for
shifted runs. But at least we can get it right
for the runs on the baseline.
|
| |
| |
| |
| |
| | |
Don't overwrite caret position numbers with
different numbers.
|
| |
| |
| |
| | |
This has been broken all along. :(
|
|/ |
|
|\
| |
| |
| |
| | |
tests: Use introspection for attributes
See merge request GNOME/pango!456
|
| |
| |
| |
| | |
We want vertical carets to be really vertical.
|
| |
| |
| |
| |
| |
| | |
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.
|
|\
| |
| |
| |
| | |
fcfont: Cosmetics
See merge request GNOME/pango!455
|
| |
| |
| |
| | |
This broke the msvc build.
|
| | |
|
| | |
|
|/
|
|
| |
Remove a few duplicated lines and typos.
|
|\
| |
| |
| |
| | |
pango-view: Split caret positions and slopes
See merge request GNOME/pango!454
|
|/
|
|
| |
Still some bits left!
|
|\
| |
| |
| |
| | |
layout: Allocate a bit less
See merge request GNOME/pango!453
|
|/
|
|
|
| |
Instead of throwing away the log_widths array
for every run, keep it around and grow it as needed.
|
|\
| |
| |
| |
| | |
pango-view: Fix caret visualization
See merge request GNOME/pango!452
|
|/
|
|
| |
I was confusing char and byte offsets here.
|
|\
| |
| |
| |
| | |
Keep offsets for items
See merge request GNOME/pango!451
|
| |
| |
| |
| | |
There is more we can do here, but this is a start.
|