| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Add an api to serialize PangoAttrList.
This will be useful in testing and debugging.
|
|
|
|
|
| |
This will be used in the implementation of emulated
Small Caps.
|
|
|
|
|
| |
Add some missing details about new enumerations
and run baselines.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Add attributes that let us override word and
sentence boundaries (and, indirectly, line breaks).
Tests included.
|
|
|
|
| |
Fix a few comments.
|
|
|
|
|
|
| |
Add a PangoTextTransform enum, a PangoAttribute
to set it on runs of text, and support for parsing
it out of markup.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add attributes for line-height, in a relative and
absolute variant.
This will be used to grow the logical extents of
runs in a way that is compatible with CSS semantics.
In markup, we support a new line_height attribute
that will be interpreted as absolute if it is an
integer > 1024, and as a relative factor otherwise.
|
|
|
|
|
|
|
|
| |
Add functions to cast PangoAttribute to the various
struct types, so language bindings can get at the
payload.
Fixes: #476
|
|
|
|
|
| |
Now that gi-docgen warns about link syntax errors,
we can find and fix them.
|
|
|
|
|
| |
Remove leftovers like #Type, reduce indentations
to avoid markdown block quotes, etc.
|
|
|
|
|
| |
Clarify that the exact style of rendering is up
to the PangoRenderer in use.
|
|
|
| |
This reverts merge request !309
|
|
|
|
|
|
|
| |
Extend the PangoUnderline and PangoOverline enumerations to
cover dashed and dotted variants of the various lines, add
api to PangoRenderer to render such lines, and implement it
in the cairo renderer.
|
|
|
|
| |
All these were pointed out by gi-docgen warnings.
|
|
|
|
| |
Give doc comments summaries, etc.
|
|
|
|
| |
Replace gtk-doc'isms and use gi-docgen links instead.
|
|
|
|
|
| |
Add casts to get some defined constants to have
the right type in the gir. The games we play...
|
|
|
|
|
|
|
|
|
| |
g-ir-scanner's handling of #defines is really rudimentary,
so we have to trick it to pick up PANGO_ATTR_TO_TEXT_END
as a constant with value 0, and then override the value
with an annotation.
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/369
|
|
|
|
|
| |
This will be useful to make GdkRGBA support
hex formats with alpha.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new `pango_attr_list_equal` API that allows comparing the
attributes included in two PangoAttrLists and returns TRUE if the lists
contain the same attributes and apply to the same ranges.
The function avoids any copying of attributes or lists and applies a
minor optimization of skipping the equality check for attributes that
were already found in both lists. Other possible optimizations that
could be added if necessary would be storing the length of the
attributes list in the PangoAttrList class to avoid the `g_slist_length`
calls or reusing the `other_iter` pointer in case all attributes from 0
to n were already found.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add a new PangoOverline enum, and overline
and overline_color attributes, which parallel
the attributes we have for underlines and
strikethrough.
For now, the enum just has 'none' and 'single'
values.
|
|
|
|
|
|
| |
These will be used for 'line-wide' continuous underlines,
as opposed to the current values, wich are per-run and
jump up and down.
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a text attribute that allows to suppress
insertion of hyphens at intra-word line breaks.
This is useful for non-paragraph-like contexts,
where line breaks are needed, but hyphens are not
expected.
|
|
|
|
|
|
|
|
| |
Makes it usable by language bindings, and avoids warnings when
generating introspection data.
We already have the necessary public API, we're just missing a GType for
it.
|
|
|
|
|
| |
Allow to opt-in to showing spaces, line breaks,
and default-ignorable chars, separately.
|
|\
| |
| |
| |
| | |
Better hyphens
See merge request GNOME/pango!89
|
| |
| |
| |
| |
| | |
Add a new attribute type, and parse allow_breaks="false"
in markup. This is useful to prevent hyphenation of words.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a function that can update positions of
attributes as the underlying text is changing.
This is meant to be used to update an attribute
list as text transformations are applied, like
capitalization.
|
|/
|
|
|
| |
This was a gap in the attribute api - no way
to get attributes back out of a list.
|
|
|
|
|
|
| |
Based on a patch by Matijs van Zuijlen <matijs@matijs.net>.
Closes https://gitlab.gnome.org/GNOME/pango/issues/259
|
|
|
|
|
|
|
| |
From the last commit, decorate all the symbols with the version
macros. Also add the version macros in the docs.
https://bugzilla.gnome.org/show_bug.cgi?id=767587
|
|
|
|
| |
Add attributes types for foreground and background alpha.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=738505
Patch from Matthias Clasen, based on early patch from Akira TAGOH.
There's room for improvement in how this is done, but it works now
for simple cases, which is what most people will be using it for.
Finally!
|
|
|
|
| |
Patch from Rafał Mużyło.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=679299
|
|
|
|
|
|
|
| |
This is intended for applications that need to parse pango
markup from some sort of GIO stream.
https://bugzilla.gnome.org/show_bug.cgi?id=679299
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=681423
|