| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Oops, we were not serializing the height at all.
Update all affected tests.
|
| |
|
|
|
|
| |
Take advantage of the new parser api.
|
|
|
|
|
| |
This includes better error reporting,
with error locations.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
This is useful for PANGO_TAB_DECIMAL.
Implement this in PangoLayout, in the
serializer, and update tests.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
Otherwise editing the output in an editor
is likely to make the data not match anymore,
since most editors will add a final newline.
Update all tests
|
| |
|
|
|
|
|
|
|
| |
Another debug api. This function produces a serialization
of a font that is enough to uniquely identify the font.
This is more detailed than what pango_font_describe
creates.
|
|
|
|
|
|
| |
Json doesn't have comments, so we have to add
an explicit comment value. This will be useful
to describe what test cases are about.
|
|
|
|
|
|
|
| |
If requested, serialize lines, runs, and log attrs.
This will let us use the serialization format to
record not just the test inputs, but outputs as
well.
|
| |
|
|
|
|
| |
Avoid writing out empty attributes or tabs.
|
|
|
|
|
|
|
|
|
| |
Optionally include context information in the
serialization and restore it. This will be useful
for transporting for giving tests complete data
that affects their output.
Some tests included.
|
|
|
|
|
|
|
| |
This gives us some room to add more things
to these apis, e.g. a way to store not just
the input part of a layout, but also the
output.
|
| |
|
|
|
|
|
| |
They are produced by deserialization,
so call them that.
|
| |
|
|
Add api to serialize PangoLayout, for the benefit
of testing and debugging. Currently, this uses
json, but that is an implementation detail.
Some tests included.
|