summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
Commit message (Collapse)AuthorAgeFilesLines
* docs: Cosmeticsmisc-doc-fixupsMatthias Clasen2021-12-101-2/+2
| | | | | Add more links to GLib apis and to various Unicode specs.
* g-i: add missing since annotationsBilal Elmoussaoui2021-12-101-0/+6
|
* doc: fixesMatthias Clasen2021-12-021-1/+1
|
* Small fixesMatthias Clasen2021-12-021-7/+3
| | | | | Properly document deserialization errors, and drop unused enum values.
* Optionally serialize outputMatthias Clasen2021-11-241-0/+2
| | | | | | | 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.
* Allow serializing context informationMatthias Clasen2021-11-241-0/+5
| | | | | | | | | 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.
* Add flags to serialize and deserializeMatthias Clasen2021-11-241-6/+34
| | | | | | | 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.
* Rename the serialize errorsMatthias Clasen2021-11-241-13/+26
| | | | | They are produced by deserialization, so call them that.
* Add more autoptr definitionsMatthias Clasen2021-11-221-0/+4
|
* Add layout serialization apiMatthias Clasen2021-11-181-0/+25
| | | | | | | | 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.
* Add pango_layout_iter_get_run_baselineMatthias Clasen2021-08-291-0/+2
| | | | This is useful information.
* Add pango_layout_get_caret_posMatthias Clasen2021-08-241-0/+7
| | | | | This is like pango_layout_get_cursor_pos, but returns a rectangle that has caret font metrics applied to it.
* Add pango_justify_last_lineMatthias Clasen2021-08-101-1/+6
| | | | | | | Add a way to justify the last line in a justified paragraph. Fixes: #74
* docs: More detailsMatthias Clasen2021-08-081-0/+3
| | | | Add a cross-reference to the PangoAlignment docs.
* layout: Add some api for introspectionMatthias Clasen2021-08-011-0/+9
| | | | | | Add accessors for PangoLayoutLine fields. Fixes: #553
* docs: Add some details for PangoWrapimprove-wrap-docsMatthias Clasen2021-07-021-0/+5
| | | | | | This clarifies things for myself. Fixes: #573
* docs: Convert gtk-doc syntax leftoversdocs-cleanupMatthias Clasen2021-05-191-1/+1
| | | | | Remove leftovers like #Type, reduce indentations to avoid markdown block quotes, etc.
* introspection: Stop using allow-noneMatthias Clasen2021-05-191-2/+2
| | | | | The allow-none annotation has been deprecated for a long time already. Instead use optional and nullable everywhere.
* docs: Tweak layout docsMatthias Clasen2021-03-111-15/+16
| | | | Add summaries, convert markup, etc.
* docs: Port PangoLayout to the new doc formatMatthias Clasen2021-03-111-21/+22
| | | | Replace gtk-doc'isms and use gi-docgen links instead.
* Add pango_layout_get_directionMatthias Clasen2019-10-311-1/+4
| | | | | | | This lets callers access to resolved text direction of a layout. GTK needs this. Closes: https://gitlab.gnome.org/GNOME/pango/issues/14
* docs: Fix parameter name mismatchesMatthias Clasen2019-07-121-1/+1
| | | | gtk-doc doesn't like these.
* layout: Add line-spacingMatthias Clasen2019-07-051-0/+5
| | | | | | | | | | | | | | If line-spacing is set to a non-zero value, we place lines so that baseline2 = baseline1 + line-spacing * height2 where height2 is the line height of the second line. In this case, we ignore spacing. If line-spacing is set to zero, spacing is applied as before.
* Add line heights to layout linesMatthias Clasen2019-07-051-0/+4
| | | | Add a getter for the line height of a layout line.
* docs: Fix some introspection annotation syntaxPhilip Withnall2017-04-081-1/+1
| | | | | | Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=778663
* Decorate the symbols in the headers with version macrosChun-wei Fan2016-06-291-0/+87
| | | | | | | 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
* Minor doc fixBehdad Esfahbod2015-05-051-0/+3
|
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-0/+43
| | | | Patch from Rafał Mużyło.
* Track changes in layout and dependencies via serialsAlexander Larsson2012-12-061-0/+1
| | | | | | | | | We track changes in the PangoContext and automatically call pango_layout_context_changed() when needed, plus we track changes in the layout and let apps know via pango_layout_get_serial when the layout changed and needs to be redrawn. https://bugzilla.gnome.org/show_bug.cgi?id=340066
* Annotations: add missing colons after symbol namesPavel Holejsovsky2012-06-041-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=677407
* 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
* MinorBehdad Esfahbod2011-05-161-2/+2
|
* Provide access to PangoLayout.n_charsMatthias Clasen2011-05-161-0/+2
| | | | | | | This lets us avoid a bunch of g_utf8_strlen() calls, when Pango is already maintaining this information anyway. https://bugzilla.gnome.org/show_bug.cgi?id=650208
* Add a readonly version of pango_layout_get_log_attrs()Matthias Clasen2011-05-161-0/+3
| | | | | | | Otherwise, we are forced to either make many unnecessary copies or pass the log attrs around alongside the layout in APIs operating on the attrs. https://bugzilla.gnome.org/show_bug.cgi?id=650170
* Bug 404416 – pango_layout_get_baseline or somethingBehdad Esfahbod2008-04-211-0/+1
| | | | | | | | | | | | | | | | | 2008-04-21 Behdad Esfahbod <behdad@gnome.org> Bug 404416 – pango_layout_get_baseline or something * docs/pango-sections.txt: * pango/pango-layout.c (pango_layout_get_baseline): * pango/pango-layout.h: * pango/pango.def: New public API: pango_layout_get_baseline() svn path=/trunk/; revision=2605
* Bug 469313 – Add pango_layout_set_height() Bug 508179 – PangoGlyphUnitBehdad Esfahbod2008-01-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-14 Behdad Esfahbod <behdad@gnome.org> Bug 469313 – Add pango_layout_set_height() Bug 508179 – PangoGlyphUnit confusion * pango/pango-layout.h: * pango/pango-layout-private.h: * pango/pango-layout.c: * pango/ellipsize.c (_pango_layout_line_ellipsize): New public API: pango_layout_set_height() See docs for semantics. Currently only negative height values (number of lines) is implemented. * pango-view/viewer-render.c (make_layout), (output_body), (parse_options): Implement --height. * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/layout.sgml: Update. 2008-01-14 Behdad Esfahbod <behdad@gnome.org> Bug 508179 – PangoGlyphUnit confusion * pango/pangowin32.c: * pango/glyphstring.c: * pango/pango-layout.c (process_item): Remove all traces of #PangoGlyphUnit svn path=/trunk/; revision=2542
* Bug 471577 – GBoxed GType for PangoGlyphItemBehdad Esfahbod2007-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-24 Behdad Esfahbod <behdad@gnome.org> Bug 471577 – GBoxed GType for PangoGlyphItem * pango/pango-glyph-item.h: * pango/pango-glyph-item.c: New public API: PANGO_TYPE_GLYPH_ITEM pango_glyph_item_copy() pango_glyph_item_get_type() * pango/pango-layout.c: New public API: pango_layout_iter_copy() * pango/fonts.c (pango_font_description_copy), (pango_font_description_copy_static), (pango_font_description_free), (pango_font_descriptions_free), (pango_font_metrics_ref), (pango_font_metrics_unref): * pango/glyphstring.c (pango_glyph_string_copy), (pango_glyph_string_free): * pango/pango-attributes.c (pango_attr_list_ref), (pango_attr_list_unref), (pango_attr_list_copy): * pango/pango-color.c (pango_color_copy), (pango_color_free): * pango/pango-item.c (pango_item_copy), (pango_item_free): * pango/pango-layout.c (pango_layout_line_ref), (pango_layout_line_unref), (pango_layout_iter_copy), (pango_layout_iter_free): * pango/pango-layout.h: * pango/pango-matrix.c (pango_matrix_copy), (pango_matrix_free): Update all copy/free functions to accept NULL as legitimate input. Previously all were g_return_[val_]if_fail()ing it. * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * docs/tmpl/layout.sgml: Update. svn path=/trunk/; revision=2457
* Bug 471571 – Add pango_layout_iter_get_layout()Behdad Esfahbod2007-10-221-3/+4
| | | | | | | | | | | | | | | | 2007-10-22 Behdad Esfahbod <behdad@gnome.org> Bug 471571 – Add pango_layout_iter_get_layout() * docs/pango-sections.txt: * docs/tmpl/layout.sgml: * pango/pango-layout.c (pango_layout_iter_get_layout): * pango/pango-layout.h: * pango/pango.def: Add trivial yet missing pango_layout_iter_get_layout(). svn path=/trunk/; revision=2456
* Remove obsolete comment. PangoLayoutRun is not deprecated. It's just sameBehdad Esfahbod2007-10-221-1/+0
| | | | | | | | | | 2007-10-21 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.h: Remove obsolete comment. PangoLayoutRun is not deprecated. It's just same type as PangoGlyphItem. svn path=/trunk/; revision=2454
* 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-24/+24
| | | | | | | | | 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
* Bug 328585 – Need to know if a layout has unknown glyphs Patch fromBehdad Esfahbod2007-01-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Bug 328585 – Need to know if a layout has unknown glyphs Patch from LingNing Zhang * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_get_unknown_glyphs_count), (pango_layout_clear_lines): * pango/pango-layout.h: New public function: pango_layout_get_unknown_glyphs_count() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. svn path=/trunk/; revision=2162
* Align spaces.Behdad Esfahbod2007-01-161-2/+2
| | | | svn path=/trunk/; revision=2161
* Part of Bug 326693 – PangoLayouts should be query-able about theirBehdad Esfahbod2007-01-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Part of Bug 326693 – PangoLayouts should be query-able about their effective properties (width / wrapped / ellipsized / etc) * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_is_wrapped), (pango_layout_clear_lines), (process_line): * pango/pango-layout.h: New public function: pango_layout_is_wrapped() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. svn path=/trunk/; revision=2160
* Bug 363510 – Ability to query whether a PangoLayout is effectivelyBehdad Esfahbod2007-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Bug 363510 – Ability to query whether a PangoLayout is effectively ellipsized (as opposed to the set_ellpisize()/get_ellipsize() methods which only set a request, or return the set request respectively) Patch from Milosz Derezynski * pango/pango-layout.h: * pango/ellipsize.c (_pango_layout_line_ellipsize): * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_is_ellipsized), (pango_layout_clear_lines), (pango_layout_line_postprocess): New public function: pango_layout_is_ellipsized() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. svn path=/trunk/; revision=2150
* Spell-check the docs.Behdad Esfahbod2007-01-071-2/+2
| | | | svn path=/trunk/; revision=2130
* Add new functions: pango_layout_iter_get_line_readonly()Behdad Esfahbod2006-12-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | 2006-12-05 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * docs/tmpl/layout.sgml: * pango/pango-layout.c (pango_layout_get_lines_readonly), (pango_layout_get_line_readonly), (pango_layout_iter_get_run_readonly), (_pango_layout_iter_get_line), (pango_layout_iter_get_line), (pango_layout_iter_get_line_readonly): * pango/pango-layout.h: * pango/pango-renderer.c (pango_renderer_draw_layout): * pango/pango.def: Add new functions: pango_layout_iter_get_line_readonly() pango_layout_get_lines_readonly() pango_layout_iter_get_line_readonly() pango_layout_iter_get_run_readonly() These should be used when you do not intend to modify the run/line, which is more than most of the time. So, update your app, benefit from more optimizations (in this case, line extents caching)!
* Bug 351496 – PangoAnalysis::gravity breaks binary compatibilityBehdad Esfahbod2006-08-201-1/+1
| | | | | | | | 2006-08-20 Behdad Esfahbod <behdad@gnome.org> Bug 351496 – PangoAnalysis::gravity breaks binary compatibility * pango/pango-item.h (PangoAnalysis): Use bitfields for level.
* Turn various gcc warnings off. Adding const, adding static, fullyBehdad Esfahbod2005-11-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-04 Behdad Esfahbod <behdad@gnome.org> * configure.in, examples/argcontext.c examples/cairoview.c, examples/renderdemo.c, examples/renderdemo.h examples/xftview.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-shaper.c, modules/hebrew/hebrew-shaper.h, modules/indic/indic-fc.c, modules/indic/mprefixups.c, modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c, pango/modules.c, pango/pango-coverage.c pango/pango-engine.c, pango/pango-engine.h, pango/pango-fontmap.c, pango/pango-fontset.c, pango/pango-impl-utils.h, pango/pango-layout.c, pango/pango-layout.h, pango/pango-renderer.c, pango/pango-script.c, pango/pango-utils.c, pango/pangocairo-fc.h, pango/pangocairo-font.c, pango/pangocairo-fontmap.c, pango/pangocairo-private.h, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangofc-fontmap.c pango/pangoft2.c, pango/pangox-fontcache.c, pango/pangox-fontmap.c pango/pangox.c, pango/pangoxft-font.c, pango/querymodules.c, pango/opentype/ftglue.c, pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c, pango/opentype/pango-ot-info.c, pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c, tests/testboundaries.c, tests/testcolor.c tests/testiter.c, tests/testscript.c: Turn various gcc warnings off. Adding const, adding static, fully initializing structs, match signedness in comparisons. (#317804) * tests/testscript.c, tools/gen-script-for-lang.c: (scripts_for_file): Pass error->message instead of error to fail(), which was wrong. (compare_lang): Fix typo comparing a and a instead of a and b.