| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Take advantage of the new parser api.
|
|
|
|
| |
There was a copy-paste error here.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
fc: Handle fonts with broken metrics better
Closes #616
See merge request GNOME/pango!537
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It seems that some fonts don't have meaningful
values for underline and strikethrough metrics.
Ignore these font-provided values if they are zero.
Fixes: #616
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
layout: Handle a corner case
Closes #638
See merge request GNOME/pango!539
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
We can't break in a tab run.
This fixes an assertion found by afl.
Testcase included.
Fixes: #638
|
|\ \
| |/
|/|
| |
| |
| |
| | |
Fix break-latin.c
Closes #636
See merge request GNOME/pango!536
|
|/
|
|
|
|
|
|
| |
The loop termination condition in break_latin()
was incorrect. Fix this by copying the loop setup
from break_arabic().
Fixes #636
|
|\
| |
| |
| |
| |
| |
| | |
Fix line width computation
Closes #635
See merge request GNOME/pango!535
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We an only use the line_width - remaining_width
shortcut if we are actually maintaining remaining_width,
i.e. not if we don't wrap lines.
Testcase included.
Fixes: #635
|
| |
| |
| |
| | |
Update affected test outputs.
|
|\ \
| |/
|/|
| |
| | |
Update the json parser
See merge request GNOME/pango!534
|
| | |
|
|/
|
|
|
| |
This includes better error reporting,
with error locations.
|
|\
| |
| |
| |
| |
| |
| | |
Fix a crash in tab handling
Closes #634
See merge request GNOME/pango!533
|
|/
|
|
|
|
|
|
|
|
| |
When we uninsert the current tab run, we need to reset
our tab state to prevent last_tab->glyphs to become a
dangling pointer.
Test included.
Fixes: #634
|
|\
| |
| |
| |
| | |
tabs: Fix build with clang in mingw
See merge request GNOME/pango!532
|
|/
|
|
| |
Include stdlib.h for qsort function declaration. This fixes the error:
implicit declaration of function 'qsort' is invalid in C99
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Port the serializer to use our own json parser and printer
See merge request GNOME/pango!531
|
| | |
|
| |
| |
| |
| |
| | |
This will make the font serialization useful
in GTK, where we serialize fonts in node files.
|
| |
| |
| |
| |
| | |
Properly document deserialization errors, and
drop unused enum values.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Just let the parser carry the error.
|
| | |
|
| |
| |
| |
| | |
Replace json-glib by a homegrown json parser/printer.
|
|/
|
|
|
| |
Add pango_tab_array_set_positions_in_pixels, to help
the serializer out.
|
|\
| |
| |
| |
| | |
Add pango_tab_array_sort
See merge request GNOME/pango!530
|
| | |
|
| |
| |
| |
| |
| | |
Don't calculate line width the hard way when
we can do it much easier.
|
| |
| |
| |
| |
| |
| | |
We don't need to iterate the entire tab array
every time, we just continue from the previous
tab stop position.
|
| |
| |
| |
| |
| | |
We want to optimize access to tab stops,
and will assume they are ordered.
|
| |
| |
| |
| | |
Introduce a LastTab struct, and use it.
|
| |
| |
| |
| |
| | |
A utility function to ensure tab stops are in
increasing order.
|
|\ \
| |/
|/|
| |
| | |
NEWS: Updates
See merge request GNOME/pango!529
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Support tab alignment
Closes #34
See merge request GNOME/pango!527
|
| | | |
|
| | |
| | |
| | |
| | | |
Use newlines to separate tabs, rather than spaces.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is useful for PANGO_TAB_DECIMAL.
Implement this in PangoLayout, in the
serializer, and update tests.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Implement the other tab alignments by adjusting
the tab width as we go.
Based on an old patch by Itai Bar-Haim.
This also includes a fix for the previously
supported left tab alignment in the presence
of indent.
Fixes: #34
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Serialize tab alignment in addition to tab
position. We still accept the old format
and default alignment to left.
Update testserialize and layout tests
for this.
|
| | |
| | |
| | |
| | |
| | | |
Add right, center, decimal tab alignments and support
them in serialization. They are not implemented yet.
|
| | |
| | |
| | |
| | | |
We want to use this without initializing tests.
|
| |/
| |
| |
| |
| | |
Explain that tabs really only work with
PANGO_ALIGN_LEFT.
|