| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
The documentation for this function states that all
bidi control chars are zero width, but it was missing
the Isolate ones. Add them.
Updated tests included.
|
|
|
|
|
|
|
|
| |
harfbuzz creates a face, but doesn't seem to find
any glyphs in woff fonts, so filter them out.
Sadly, fontfonfig does not have useful format information
about this, so we need to crudely filter by filename.
|
|
|
|
|
|
|
|
| |
Correctly classify tag characters as Grapheme_Extend,
so that we don't end up putting grapheme boundaries
in the middle of tag sequences.
Includes a test.
|
|
|
|
| |
This makes tests more reproducible.
|
|
|
|
| |
pango_layout_get_tabs returns a copy.
|
|
|
|
|
| |
Since these are not properties, their default
values aren't documented anywhere. Until now.
|
|
|
|
|
| |
The convention is to return the initial value if
the 'this' check fails. Correct this for auto_dir.
|
|
|
|
| |
This makes it obvious what the initial value is.
|
|
|
|
|
|
|
|
|
|
| |
pango_layout_get_direction contained an assertion that
would be hit when just iterating over all chars in the
text of the layout (it gets hit when you get to the final
newline).
Remove the assertion, so that this function is less
of a trap.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In 85bdfead1b36945db251 I made consecutive runs average
their strikeout positions, but I did handle the accounting
properly, causing previous runs to influence the strikeout
of later runs, if we have to draw them separately (due to
color change).
It would be nicer to average even across color changes and
draw the line continuously in that case as well, but that
would require two passes over the runs.
Fixes: #574
|
|
|
|
|
|
| |
This clarifies things for myself.
Fixes: #573
|
| |
|
|
|
|
|
|
|
| |
There was a data race in accessing the ref_count of this struct; now
with g_atomic_rc_box it's done properly across threads.
Fixes https://gitlab.gnome.org/GNOME/pango/-/issues/571
|
| |
|
|
|
|
|
|
|
|
|
| |
We were trying to cut short the wait for FcInit in
pango_fc_font_map_set_config. But there was a thinko:
while it is true that the fontmap which had set_config
called on it does not need to wait for FcInit anymore,
other threads fontmaps still do. Instead of making this
more complicated, just drop the optimization.
|
|
|
|
|
|
|
| |
The return value is owned by Pango. transfer=none doesn't
really work for non-GObject types, so just spell it out.
Fixes: #572
|
|\
| |
| |
| |
| |
| |
| | |
shape: Bring back careful rounding code
Closes #562
See merge request GNOME/pango!344
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we added the round-glyph-positions option in
c43da2d3 and b5634799, we lost some code that was careful
to round in device coordinates.
The reason we lost it is that the rounding needs fontconfig-
specific data that is only available in the backend, and the
rounding now happens in the frontend.
Bringing it back is annoying, since we've run out of vfunc
slots to get info from the backend. This commit works around
that limitation in a hacky way.
Fixes: #562
|
| |
| |
| |
| |
| | |
The api is deprecated, but it is very ugly to randomly
miss a few values here. Just add them.
|
| | |
|
| |
| |
| |
| |
| | |
The expectation of version comparisons is that major
versions have to match exactly.
|
| | |
|
| |
| |
| |
| | |
Better to enforce this.
|
| |
| |
| |
| |
| |
| | |
No point in having a few attributes handled in
the default case. Just split them all by the first
char.
|
|/
|
|
| |
pango_markup_parser_new_internal can't really fail.
|
|
|
|
|
|
|
|
| |
Our script properties table was last updated in the
Unicode 5.0 era. Add all the scripts up to Unicode 13.
For the properties, I used the same horizontal direction
as harfbuzz, and left the other properties at their
default values.
|
|
|
|
| |
Harbuzz treats this script as RTL, so we should too.
|
| |
|
|
|
|
| |
Fixes https://gitlab.gnome.org/GNOME/pango/-/issues/565
|
|
|
|
|
| |
Now that gi-docgen warns about link syntax errors,
we can find and fix them.
|
|
|
|
|
| |
When calling pango_attr_list_update(), we must not
change the limits or attributes that are unlimited.
|
|\
| |
| |
| |
| | |
docs: Fix link syntax in a few places
See merge request GNOME/pango!337
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Avoid unsigned int pitfalls
Closes #561
See merge request GNOME/pango!336
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
When we tried to catch attr list overflow in
895759096309e7c, we overlooked that add - remove
can be negative, leading to unexpected results.
Avoid this case.
Fixes: #561
|
|/ |
|
|
|
|
|
|
| |
Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.
|
|
|
|
|
| |
Remove leftovers like #Type, reduce indentations
to avoid markdown block quotes, etc.
|
|
|
|
|
| |
The allow-none annotation has been deprecated for a long
time already. Instead use optional and nullable everywhere.
|
|
|
|
|
|
|
|
|
|
| |
GTask requires a running mainloop, otherwise we
end up leaking task objects and their associated
data. This is not a problem in GTK applications,
but it does show up in batch operation, such as
with lilypond.
To avoid this problem, use plain threads.
|
|\
| |
| |
| |
| | |
test-break: Make help output work again
See merge request GNOME/pango!332
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The commit message for d476d2a944500f8553 said
"word boundaries", but the code checked for line
breaks. That was wrong, since it also made hyphens
disappear at SHY, where we very much want them.
Update affected tests.
|
|\ \
| |/
|/|
| |
| | |
break: Fix an inconsistency with sentence breaks
See merge request GNOME/pango!330
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we retroactively remove a sentence boundary
because of rule SB8, we were not cleaning up the
sencence_start/end markers that have already been
derived from it. This can be seen in urls like
http://www.unicode.org/reports/tr29,
where we don't have any sentence boundaries, but
we leave a stray sentence_start/end at the first
/ after ".org".
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Add some NULL checks
Closes #268
See merge request GNOME/pango!328
|
| |/
| |
| |
| |
| |
| |
| | |
Originally suggested by Philipp Withnall in
https://bugzilla.gnome.org/show_bug.cgi?id=778655
Fixes: #268
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Ensure ellipsized lines have the right width
Closes #24
See merge request GNOME/pango!326
|
| |/
| |
| |
| |
| |
| |
| | |
Otherwise, ellipsized text will 'vibrate', as the
size changes.
Fixes: #24
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Make pango_layout_line_get_height work
Closes #487
See merge request GNOME/pango!327
|