| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Now that we're using new-style deprecations, we have to fight
a little harder to get rid of them inside pango.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Followup to 81904127fe1107b6c0db4ce50c3d44cdf63b7f67.
|
|
|
|
|
| |
The config file was used solely for dynamic module paths, but they have
been killed.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=731022
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Patch from Rafał Mużyło.
|
|
|
|
| |
Patch from Akira TAGOH.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Part of Bug 377539 - (pango-threadsafe) Make Pango thread-safe
|
|
|
|
|
|
|
| |
Look for the rcfile in $XDG_CONFIG_HOME/pango/pangorc
instead of ~/.pangorc.
https://bugzilla.gnome.org/show_bug.cgi?id=675400
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
pango_split_file_list
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Use HAVE_CAIRO_WIN32 instead of G_OS_WIN32 to decide whether to
use the built-in aliases code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|