summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetics: Move a function aroundMatthias Clasen2021-08-201-0/+102
| | | | | pango_find_paragraph_boundary has nothing to do with breaks, so move it to pango-utils.h
* Add a few missing chars to pango_is_zero_widthmissing-zerowidth-charsMatthias Clasen2021-07-091-5/+11
| | | | | | | | The documentation for this function states that all bidi control chars are zero width, but it was missing the Isolate ones. Add them. Updated tests included.
* utils: Make pango_version_check more preciseMatthias Clasen2021-06-281-0/+2
| | | | | The expectation of version comparisons is that major versions have to match exactly.
* docs: Convert gtk-doc syntax leftoversdocs-cleanupMatthias Clasen2021-05-191-50/+52
| | | | | Remove leftovers like #Type, reduce indentations to avoid markdown block quotes, etc.
* introspection: Stop using allow-noneMatthias Clasen2021-05-191-5/+5
| | | | | The allow-none annotation has been deprecated for a long time already. Instead use optional and nullable everywhere.
* docs: Tweak utils docsMatthias Clasen2021-03-111-68/+60
| | | | Add summaries. Most of this really should be private.
* docs: Replace lots of vestigial xml markupMatthias Clasen2021-03-111-2/+2
| | | | | We want to use pure markdown, since docbook is going away as the intermediate format.
* Add a helper for parsing flagsMatthias Clasen2019-07-251-0/+62
| | | | | We are about to add an attribute whose values are flags.
* Header cleanupMatthias Clasen2019-07-041-0/+1
| | | | | | | Abolish the PANGO_ENABLE_BACKEND and PANGO_ENABLE_ENGINE defines. All backend-only apis are moved into private headers, all apis that were engine-only are marked as deprecated, since engines are.
* docs: pango_read_line/scan_word/string take normal reference to GStringRico Tzschichholz2019-04-041-3/+3
|
* Clarify docs around text inputMatthias Clasen2018-12-121-1/+1
| | | | | | | Make it clear that all text input must be valid UTF-8, except in the case pango_layout_set_text, which we now officially document as accepting and handling invalid input.
* Fix fallout from bidi deprecationMatthias Clasen2018-12-111-0/+5
| | | | | | | PangoDirection is still used in some public apis, so just keep it around. Closes: #339
* pango-utils: Fix non-escaped \r\n line endings in pango_read_line()Philip Withnall2017-04-081-1/+2
| | | | | | | | | | | | The handling for \r or \r\n line endings in pango_read_line() was broken. It should have discarded the \r or \r\n, but was only doing this for \n or \n\r. The condition (c == EOF) could never have been reached. Coverity ID: 1391696 Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=778816
* Avoid deprecation warningsMatthias Clasen2016-08-291-2/+24
| | | | | Now that we're using new-style deprecations, we have to fight a little harder to get rid of them inside pango.
* Update deprecation versionsMatthias Clasen2015-05-161-12/+12
| | | | | | The common practice is to name the first stable version in which a function is deprecated. Following that here and mark things as deprecated in 1.38.
* Deprecate much of pango-utils.hKhaled Hosny2015-05-101-0/+16
| | | | | | | | These all are general utility functions that do not belong to Pango’s public interface. Most of them are unused internally now, the few ones that are still used should be made private at some point. https://bugzilla.gnome.org/show_bug.cgi?id=682840
* Fix a few warningsBehdad Esfahbod2015-05-051-1/+1
|
* MinorKhaled Hosny2015-04-131-2/+2
|
* Deprecate noop utility functionsKhaled Hosny2015-04-131-49/+8
| | | | | | | | | | After the removal of modules and configuration files, both pango_get_lib_subdirectory and pango_get_sysconf_subdirectory are meaningless now. This patch deprecates them and removes the Windows specific behaviour as it prevents statically compiling Pango under Windows. https://bugzilla.gnome.org/show_bug.cgi?id=682840
* Make the deprecation a bit more clearKhaled Hosny2015-04-051-9/+4
| | | | Followup to 81904127fe1107b6c0db4ce50c3d44cdf63b7f67.
* Deprecate pango_config_key_get*Khaled Hosny2015-04-041-136/+6
| | | | | The config file was used solely for dynamic module paths, but they have been killed.
* Add many missing nullability annotations.Evan Nemerson2014-10-161-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=731022
* pango-utils: Fix a potential strtol(NULL) callPhilip Withnall2013-12-021-2/+8
| | | | | | | | | | parse_int() is called by pango_parse_enum(), which permits the enum string to be NULL. This string is passed directly through to parse_int() and then to strtol(), which is tagged as nonnull. Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=719549
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-0/+18
| | | | Patch from Rafał Mużyło.
* Bug 703995 - Compiler warnings about strict aliasingBehdad Esfahbod2013-08-301-6/+6
| | | | Patch from Akira TAGOH.
* Add pango_shape_full()Behdad Esfahbod2012-09-261-1/+1
| | | | | | | | | | | | | | | | Variant of pango_shape() that takes the full paragraph text as input. This is then passed in entirety to HarfBuzz, which would allow certain cross-run interactions (in Arabic for example). When combined with upcoming HarfBuzz 0.9.5+, this fixes: Red Hat Bug 858736 - [Spanish] Stray dotted circle rendered https://bugzilla.redhat.com/show_bug.cgi?id=858736 and partially: Bug 313181 - color changes break arabic shaping https://bugzilla.gnome.org/show_bug.cgi?id=313181
* Rework config file readingMatthias Clasen2012-09-141-36/+39
| | | | | | | | | | | | | The code was loading and parsing the system config file every single time, and has not correctly handling mixed requests for user and system config entries. This commit reworks the code so that the configuration is loaded only once, in threadsafe fashion. pango_config_key_get_system is no longer using the same hash table, but reloads its data every time - this is not a really problem, since this function is only used in pango-querymodules.
* Load config file only onceMatthias Clasen2012-09-141-6/+12
|
* Start cleaning up config readingBehdad Esfahbod2012-08-281-5/+5
|
* More churnBehdad Esfahbod2012-08-281-1/+1
|
* Fix warningsBehdad Esfahbod2012-08-271-2/+2
|
* Make pango-language.c thread-safeBehdad Esfahbod2012-08-271-2/+2
| | | | | | | Start marking static-data that is thread safe with the "MT-safe" marker. The following grep can be used to track progress: grep 'static[^(]*;' *c | grep -v MT-safe
* Make static data thread safe in pango-utils.cAlessandro Pignotti2012-08-271-9/+13
|
* Deprecate pango_lookup_aliases()Matthias Clasen2012-08-271-276/+5
| | | | Part of Bug 377539 - (pango-threadsafe) Make Pango thread-safe
* Read pangorc from XDG_CONFIG_HOMEMatthias Clasen2012-05-221-11/+6
| | | | | | | Look for the rcfile in $XDG_CONFIG_HOME/pango/pangorc instead of ~/.pangorc. https://bugzilla.gnome.org/show_bug.cgi?id=675400
* querymodules: Add --system argumentColin Walters2012-04-251-14/+53
| | | | | | | | | | When run as a system trigger, we really don't want to be consulting e.g. /root/.pangorc. Also, the OSTree build system can run as non-root, but we don't in this case want to look at /home/user since the user may not even exist in the password database inside the chroot. https://bugzilla.gnome.org/show_bug.cgi?id=667960
* Stop using G_CONST_RETURN in PangoRyan Lortie2011-06-091-2/+2
| | | | | | | 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
* Part of Bug 377539 - Make Pango thread-safeBehdad Esfahbod2011-05-171-1/+1
|
* Fix compiler warningsBehdad Esfahbod2011-05-011-1/+1
|
* Fixed (transfer full) introspection annotation for the return value in ↵Alberto Ruiz2011-04-261-1/+2
| | | | pango_split_file_list
* Adding (out) introspection metadata to pango_read_lineAlberto Ruiz2011-04-251-1/+1
|
* Adding (inout) introspection metadata to pango_skip_spaceAlberto Ruiz2011-04-251-1/+1
|
* Adding (inout)/(out) introspection metadata to pango_scan_wordAlberto Ruiz2011-04-251-3/+3
|
* Adding (inout)/(out) introspection metadata to pango_scan_stringAlberto Ruiz2011-04-251-2/+2
|
* Adding (inout) introspection metadata to pango_scan_intAlberto Ruiz2011-04-251-2/+2
|
* adding (out) introspection metadata to pango_parse_enumAlberto Ruiz2011-04-251-2/+2
|
* adding allow-none introspection metadata to pango_parse_enumAlberto Ruiz2011-04-251-3/+3
|
* Add out and array metadata annotations to pango_lookup_aliasesAlberto Ruiz2011-04-251-2/+2
|
* adding (inout) introspection metadata to pango_quantize_line_geometryAlberto Ruiz2011-04-251-2/+2
|
* adding allow-none introspection metadata to pango_extents_to_pixelsAlberto Ruiz2011-04-251-2/+2
|