summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add PANGO_LIBDIR and PANGO_SYSCONFDIR enviroment variablesOwen W. Taylor2010-07-081-9/+17
| | | | | | | | | | | | | | | Add environment variables to override the compile time values for the libdir and sysconfdir. This provides additional flexibility and enables using a static pango.modules file for libraries packaged with an application on OS X by setting environment variables at application startup and using paths of the form: @executable_path/../lib/pango/modules/.. in the modules file. https://bugzilla.gnome.org/show_bug.cgi?id=554524
* Bug 588060 -- Fonts missing on CygwinTor Lillqvist2009-07-211-2/+2
| | | | | Use HAVE_CAIRO_WIN32 instead of G_OS_WIN32 to decide whether to use the built-in aliases code.
* Move the parse_*() functions in fonts.c and have them share tables withBehdad Esfahbod2009-01-061-296/+24
| | | | | | | | | | | | | | 2009-01-06 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (find_field), (parse_field), (pango_parse_style), (pango_parse_variant), (pango_parse_weight), (pango_parse_stretch): Move the parse_*() functions in fonts.c and have them share tables with pango_font_description_to/from_string(). * pango/pango-utils.c (parse_int), (pango_parse_enum): Accept integers in pango_parse_enum(). svn path=/trunk/; revision=2785
* Bug 164001 - pango-querymodules doesn't work uninstalled on win32Tor Lillqvist2009-01-061-1/+7
| | | | | | | | | | | | | 2009-01-06 Tor Lillqvist <tml@iki.fi> Bug 164001 - pango-querymodules doesn't work uninstalled on win32 * pango/pango-utils.c (pango_get_lib_subdirectory): When running against an uninstalled, compile-time DLL, in the libtool-style .libs folder, use the compile-time install prefix. svn path=/trunk/; revision=2783
* Bug 469049 – Fix all compiler warningsBehdad Esfahbod2008-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | 2008-12-25 Behdad Esfahbod <behdad@gnome.org> Bug 469049 – Fix all compiler warnings * pango-view/viewer-pangocairo.c (render_callback): * pango/fonts.c (append_field), (pango_font_description_to_string): * pango/opentype/harfbuzz-dump.c: * pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels): * pango/pango-coverage.c (pango_coverage_set): * pango/pango-markup.c (span_parse_func): * pango/pango-renderer.c (pango_renderer_default_draw_error_underline): * pango/pango-utils.c (pango_scan_string): * pango/pangocairo-render.c (pango_cairo_renderer_draw_trapezoid), (draw_error_underline), (pango_cairo_renderer_class_init): Fix all the remaining warnings. svn path=/trunk/; revision=2767