summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.h
Commit message (Collapse)AuthorAgeFilesLines
* Add segmentation attributesbreak-tailoringMatthias Clasen2021-08-251-0/+10
| | | | | | | Add attributes that let us override word and sentence boundaries (and, indirectly, line breaks). Tests included.
* attributes: CosmeticsMatthias Clasen2021-08-221-2/+2
| | | | Fix a few comments.
* markup: Add a text transform attributeMatthias Clasen2021-08-201-0/+22
| | | | | | Add a PangoTextTransform enum, a PangoAttribute to set it on runs of text, and support for parsing it out of markup.
* Cosmetics: Reorganize pango-attributes.hMatthias Clasen2021-08-201-220/+214
|
* Cosmetics: Split off pango-color.hMatthias Clasen2021-08-201-46/+1
|
* Cosmetics: Split off pango-markup.hMatthias Clasen2021-08-201-19/+0
|
* Add some forgotten documentationMatthias Clasen2021-08-101-0/+1
|
* Add line-height attributesMatthias Clasen2021-08-081-0/+8
| | | | | | | | | | | | 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.
* attributes: Add helper api for introspectionintrospection-fixesMatthias Clasen2021-08-011-0/+19
| | | | | | | | Add functions to cast PangoAttribute to the various struct types, so language bindings can get at the payload. Fixes: #476
* docs: Link syntax fixesdocs-link-fixesMatthias Clasen2021-05-251-2/+2
| | | | | Now that gi-docgen warns about link syntax errors, we can find and fix them.
* docs: Convert gtk-doc syntax leftoversdocs-cleanupMatthias Clasen2021-05-191-20/+20
| | | | | Remove leftovers like #Type, reduce indentations to avoid markdown block quotes, etc.
* Expand the PANGO_UNDERLINE_ERROR docsMatthias Clasen2021-04-031-1/+4
| | | | | Clarify that the exact style of rendering is up to the PangoRenderer in use.
* Revert "Merge branch 'fix-deadlocks' into 'master'"revert-1fedc11aMatthias Clasen2021-03-311-34/+2
| | | This reverts merge request !309
* Add dashed and dotted lineslinesMatthias Clasen2021-03-301-2/+34
| | | | | | | 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.
* Fix various broken linksMatthias Clasen2021-03-111-2/+2
| | | | All these were pointed out by gi-docgen warnings.
* docs: Tweak attributes docsMatthias Clasen2021-03-111-25/+25
| | | | Give doc comments summaries, etc.
* docs: Port PangoAttribute to the new doc formatMatthias Clasen2021-03-111-91/+98
| | | | Replace gtk-doc'isms and use gi-docgen links instead.
* Trick g-ir-scanner some moreMatthias Clasen2021-02-151-2/+2
| | | | | Add casts to get some defined constants to have the right type in the gir. The games we play...
* Trick g-ir-scannerMatthias Clasen2021-02-151-3/+4
| | | | | | | | | 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
* Export pango_parse_color_with_alphaMatthias Clasen2020-07-311-1/+6
| | | | | This will be useful to make GdkRGBA support hex formats with alpha.
* Add API to compare PangoAttrListsJonas Dreßler2020-06-071-0/+4
| | | | | | | | | | | | | | 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.
* Fix a typoMatthias Clasen2020-03-201-1/+1
|
* Add an overline attributeMatthias Clasen2019-10-311-0/+29
| | | | | | | | | | 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.
* Add new PangoUnderline valuesMatthias Clasen2019-10-311-1/+13
| | | | | | These will be used for 'line-wide' continuous underlines, as opposed to the current values, wich are per-run and jump up and down.
* Fix a doc typoMatthias Clasen2019-08-141-10/+10
|
* Add an insert-hyphens attributeMatthias Clasen2019-08-041-0/+4
| | | | | | | | | 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.
* Add a boxed type for PangoAttrIteratorEmmanuele Bassi2019-08-021-0/+3
| | | | | | | | 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.
* Add an attribute for showing invisible charsMatthias Clasen2019-07-251-1/+24
| | | | | Allow to opt-in to showing spaces, line breaks, and default-ignorable chars, separately.
* Merge branch 'better-hyphens' into 'master'Matthias Clasen2019-07-221-1/+5
|\ | | | | | | | | Better hyphens See merge request GNOME/pango!89
| * Add an allow-breaks attributeMatthias Clasen2019-07-201-1/+5
| | | | | | | | | | Add a new attribute type, and parse allow_breaks="false" in markup. This is useful to prevent hyphenation of words.
* | Add a function to update attribute listsMatthias Clasen2019-07-191-0/+5
| | | | | | | | | | | | | | | | | | 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.
* | Add pango_attr_list_get_attributesMatthias Clasen2019-07-191-0/+3
|/ | | | | This was a gap in the attribute api - no way to get attributes back out of a list.
* Make PangoAttribute a boxed typeMatthias Clasen2019-07-111-0/+3
| | | | | | Based on a patch by Matijs van Zuijlen <matijs@matijs.net>. Closes https://gitlab.gnome.org/GNOME/pango/issues/259
* Decorate the symbols in the headers with version macrosChun-wei Fan2016-06-291-0/+58
| | | | | | | 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 attribute types for fg and bg alphaMatthias Clasen2015-08-111-1/+7
| | | | Add attributes types for foreground and background alpha.
* Document PANGO_ATTR_FONT_FEATURESMatthias Clasen2015-08-111-0/+1
|
* Bug 738505 - Add fontfeatures support in PangoAttributes and markupBehdad Esfahbod2015-06-181-1/+20
| | | | | | | | | | | 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!
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-4/+213
| | | | Patch from Rafał Mużyło.
* Bug 696238 - PangoAttrFilterFunc vs pango_attr_list_filter docsBehdad Esfahbod2013-04-041-2/+2
|
* markup: Remove error from markup parser constructorJasper St. Pierre2012-12-141-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679299
* markup: Allow incrementally parsing pango markupJasper St. Pierre2012-12-141-0/+8
| | | | | | | 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
* Small doc fixBehdad Esfahbod2012-08-181-0/+18
|
* introspection: assorted fixes to avoid regressions in Vala bindingsEvan Nemerson2012-08-121-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681423
* Stop using G_CONST_RETURN in PangoRyan Lortie2011-06-091-1/+1
| | | | | | | G_CONST_RETURN is headed for deprecation (as per bug #644611). Stop using it in Pango. https://bugzilla.gnome.org/show_bug.cgi?id=652202
* Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING andBehdad Esfahbod2009-01-071-0/+3
| | | | | | | | | | | | | | | | | | 2009-01-07 Behdad Esfahbod <behdad@gnome.org> Bug 566941 – Add PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING and PANGO_ATTRIBUTE_INDEX_TO_TEXT_END * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: * pango/pango-attributes.c (pango_attribute_init): * pango/pango-attributes.h: Add two new public macros: PANGO_ATTRIBUTE_INDEX_FROM_TEXT_BEGINNING PANGO_ATTRIBUTE_INDEX_TO_TEXT_END svn path=/trunk/; revision=2793
* Bug 511183 – Add pango_attr_type_get_name()Behdad Esfahbod2008-04-211-1/+2
| | | | | | | | | | | | | | | | | | | 2008-04-21 Behdad Esfahbod <behdad@gnome.org> Bug 511183 – Add pango_attr_type_get_name() * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: * pango/pango-attributes.c (pango_attr_type_register), (pango_attr_type_get_name): * pango/pango-attributes.h: * pango/pango.def: New public API: pango_attr_type_get_name() svn path=/trunk/; revision=2598
* Bug 469641 – Initialize attribute start/end to [0..MAXUINT]Behdad Esfahbod2007-10-241-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-24 Behdad Esfahbod <behdad@gnome.org> Bug 469641 – Initialize attribute start/end to [0..MAXUINT] * pango/pango-attributes.h: * pango/pango-attributes.c: New public API: pango_attribute_init() * pango/pango-attributes.c: (pango_attr_string_new), (pango_attr_language_new), (pango_attr_color_new), (pango_attr_int_new), (pango_attr_float_new), (pango_attr_size_new_internal), (pango_attr_font_desc_new), (pango_attr_shape_new_with_data): Initialize attributes using pango_attribute_init(). * pango/pango.def: * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: Update. svn path=/trunk/; revision=2458
* Add G_GNUC_CONST and G_GNUC_PURE annotations.Behdad Esfahbod2007-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.h: * pango/pango-font.h: * pango/pango-glyph.h: * pango/pango-gravity.h: * pango/pango-language.h: * pango/pango-layout.h: * pango/pango-matrix.h: * pango/pango-ot-private.h: * pango/pango-ot.h: * pango/pango-renderer.h: * pango/pango-script.h: * pango/pango-tabs.h: * pango/pango-utils.h: * pango/pangoatsui-private.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.h: * pango/pangocairo-fc.h: * pango/pangocairo-private.h: * pango/pangocairo-win32.h: * pango/pangocairo.h: * pango/pangofc-decoder.h: * pango/pangofc-font.h: * pango/pangofc-fontmap.h: * pango/pangoft2-private.h: * pango/pangoft2.h: * pango/pangowin32-private.h: * pango/pangox-private.h: * pango/pangoxft-render.h: * pango/pangoxft.h: Add G_GNUC_CONST and G_GNUC_PURE annotations. svn path=/trunk/; revision=2345
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-161-12/+12
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-161-2/+2
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163