summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix warnings.Behdad Esfahbod2008-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-12-25 Behdad Esfahbod <behdad@gnome.org> * pango/break.c (pango_default_break): * pango/fonts.c (find_field_any), (pango_font_class_init), (pango_font_init), (pango_font_metrics_ref), (pango_font_metrics_unref), (pango_font_family_class_init), (pango_font_family_init), (pango_font_face_class_init), (pango_font_face_init): * pango/pango-attributes.c (pango_attr_list_ref), (pango_attr_list_unref), (pango_attr_iterator_get_font): * pango/pango-layout.c (pango_layout_set_height), (extents_free), (no_shape_filter_func), (pango_layout_line_ref), (pango_layout_line_unref), (pango_layout_get_item_properties): * pango/pango-markup.c (end_element_handler), (text_handler), (b_parse_func), (big_parse_func), (span_parse_func), (i_parse_func), (markup_parse_func), (s_parse_func), (sub_parse_func), (sup_parse_func), (small_parse_func), (tt_parse_func), (u_parse_func): * pango/pango-ot-info.c (get_glyph_class): * pango/pango-renderer.c (get_item_properties), (pango_renderer_default_prepare_run): * pango/pango-utils.c (_pango_shape_shape): * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_get_font_type), (pango_cairo_fc_font_map_context_substitute), (pango_cairo_fc_font_map_context_key_get), (pango_cairo_fc_font_map_context_key_copy), (pango_cairo_fc_font_map_context_key_free), (pango_cairo_fc_font_map_context_key_hash), (pango_cairo_fc_font_map_context_key_equal): * pango/pangocairo-fontmap.c (pango_cairo_font_map_new_for_font_type), (pango_cairo_font_map_set_default): * pango/pangocairo-render.c (pango_cairo_renderer_init): * pango/pangox-fontcache.c (free_cache_entry): * pango/pangox-fontmap.c (close_display_cb), (list_families_foreach), (pango_x_font_map_load_font), (ignore_error): * pango/pangox.c (average_width_foreach), (subfonts_foreach), (pango_x_font_find_shaper), (pango_x_get_unknown_glyph), (pango_x_get_item_properties), (pango_x_apply_ligatures), (pango_x_font_get_unknown_glyph): * pango/pangoxft-fontmap.c (pango_xft_font_map_init), (close_display_cb): * pango/querymodules.c (show_version): Fix warnings. svn path=/trunk/; revision=2765
* Don't use the deprectated g_win32_get_package_installation_subdirectory().Tor Lillqvist2008-09-131-15/+34
| | | | | | | | | | | | | | 2008-09-13 Tor Lillqvist <tml@novell.com> * pango/pango-utils.c: Don't use the deprectated g_win32_get_package_installation_subdirectory(). Use g_win32_get_package_installation_directory_of_module() instead. Also, don't use the deprecated silly G_WIN32_DLLMAIN_FOR_DLL_NAME() macro, but an explicit minimal DllMain() that just saves the DLL handle. svn path=/trunk/; revision=2718
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Behdad svn path=/trunk/; revision=2657
* Revert the addition of the alias "sansserif". The correct name isPANGO_1_20_3Tor Lillqvist2008-05-231-1/+0
| | | | | | | | | | | | 2008-05-23 Tor Lillqvist <tml@novell.com> * pango/pango-utils.c: Revert the addition of the alias "sansserif". The correct name is "sans-serif", and "sans" should also be accepted. If something uses "sansserif" it is wrong. (I saw it in some sample svg files in librsvg.) svn path=/trunk/; revision=2632
* Add alias "sansserif" to the builtin aliases on Win32. Same contents asTor Lillqvist2008-05-201-0/+1
| | | | | | | | | | 2008-05-20 Tor Lillqvist <tml@novell.com> * pango/pango-utils.c: Add alias "sansserif" to the builtin aliases on Win32. Same contents as "sans" and "sans-serif". svn path=/trunk/; revision=2630
* Bug 523193 - Vista Hebrew, CJK fonts to builtin win32 pango aliasesTor Lillqvist2008-05-201-6/+6
| | | | | | | | | | | | | | 2008-05-20 Tor Lillqvist <tml@novell.com> Bug 523193 - Vista Hebrew, CJK fonts to builtin win32 pango aliases Patch by Daniel Atallah. * pango/pango-utils.c: Add fonts from Vista to the builtin aliases. Also add Lucida Sans Unicode and Lucida Console. svn path=/trunk/; revision=2629
* Group bidi stuff together. Add a section in the docs for them.Behdad Esfahbod2008-04-221-124/+0
| | | | | | | | | | | | | | | | | | | 2008-04-21 Behdad Esfahbod <behdad@gnome.org> * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/bidi.sgml: * docs/tmpl/main.sgml: * docs/tmpl/vertical.sgml: * pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels), (pango_unichar_direction), (pango_get_mirror_char): * pango/pango-bidi-type.h: * pango/pango-types.h: * pango/pango-utils.c: Group bidi stuff together. Add a section in the docs for them. svn path=/trunk/; revision=2608