| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Oops!
|
|
|
|
| |
Oops!
|
|
|
|
|
|
|
|
| |
In UAX#29 revision 19 (reissued for Unicode 6.1.0), Prepend and Extend
GCB properties have been dropped for Thai/Lao. So, drop the hard coding
accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=576156
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=681423
|
|
|
|
|
|
|
|
| |
G_UNICODE_COMBINING_MARK was renamed as G_UNICODE_SPACING_MARK soon after
the GLib 2.29.14 release, so fix that in break.c and pango-ot-info.c.
To support GLib on and before 2.29.14, a convenience definition for
G_UNICODE_SPACING_MARK is defined.
|
|
|
|
|
|
|
|
|
|
| |
While pango-layout doesn't allow NUL in text, the lower level API should
handle it correctly. We were using g_utf8_strlen() in a number of
places. This is problematic since that function stops processing at
NUL even if length>1. We now use an internal pango_utf8_strlen() instead.
Inspired by:
Bug 588678 – pango crash: install a new theme from gnome-appearance-properties
|
| |
|
|
|
|
|
|
|
| |
Move the PangoScriptIter structure definition to a private header file,
so that we can embed the iterator within other structures or allocate
a local iterator on the stack. This eliminates the frequent short-lived
allocations associated with the iterator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-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-04-24 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
* docs/tmpl/main.sgml:
* pango/break.c (pango_default_break):
* pango/pango-break.h:
* tests/testboundaries_ucd.c (main):
Add new PangoLogAttr member is_word_boundary, that implements UAX#29's
Word Boundaries semantics. Test fully passes for it.
svn path=/trunk/; revision=2618
|
|
|
|
| |
svn path=/trunk/; revision=2616
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
* pango/break.c (pango_default_break): Make Grapheme Boundary code
exactly follow UAX#29 of Unicode 5.1.0
svn path=/trunk/; revision=2615
|
|
|
|
|
|
|
|
|
|
| |
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break): Update GraphemeBoundary to
Unicode 5.1.0. Pretty close now. Passes the TR14 test.
svn path=/trunk/; revision=2614
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break): Allow line break at the end of
string. UAX#14 rule LB3 says "Always break at the end of text."
With this test, Pango passes the LineBreakTest.txt, sans the bug in
the test file that I've already reported to unicoRe.
svn path=/trunk/; revision=2613
|
|
|
|
| |
svn path=/trunk/; revision=2612
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-02-28 Behdad Esfahbod <behdad@gnome.org>
Bug 518084 – Thai is not Virama language
Patch from Theppitak Karoonboonyanan
* pango/break.c: Remove Thai Phinthu from VIRAMA()
svn path=/trunk/; revision=2580
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-10-15 Behdad Esfahbod <behdad@gnome.org>
Bug 481537 – compiler warning fixes
Patch from Kjartan Maraas
* pango/break.c (pango_get_log_attrs):
* pango/pango-attributes.c (pango_attr_list_insert_internal):
* pango/pango-layout.c (process_item), (justify_clusters):
* pango/pango-markup.c (span_parse_boolean):
* pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
(pango_ot_ruleset_new):
* pango/pango-utils.c (pango_scan_int):
* pango/pangocairo-font.c (_pango_cairo_font_install):
* pango/pangofc-font.c (pango_fc_font_create_metrics_for_context):
* pango/pangoft2.c (load_fallback_face):
* pango/pangox-fontmap.c (pango_x_get_coverage_win):
* pango/pangox.c (itemize_string_foreach):
Fix warnings.
svn path=/trunk/; revision=2444
|
|
|
|
|
|
|
|
|
|
|
| |
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
Bug 472891 – Bad consistency check in pango_get_log_attrs
* pango/break.c: Invert the consistency check.
svn path=/trunk/; revision=2420
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-07-31 Behdad Esfahbod <behdad@gnome.org>
Bug 462137 – memory corruption in pango_default_break
* pango/break.c (pango_default_break): Handle the case of
an empty string correctly.
svn path=/trunk/; revision=2385
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-05-02 Behdad Esfahbod <behdad@gnome.org>
* docs/tmpl/main.sgml:
* pango/break.c (pango_default_break):
* pango/pango-break.h:
Add is_expandable_space to PangoLogAttr.
svn path=/trunk/; revision=2250
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
*.c, *.h: Replace preceding sequences of 8 spaces with tabs.
svn path=/trunk/; revision=2165
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
*.c, *.h: Drop trailing whitespace.
svn path=/trunk/; revision=2163
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-18 Behdad Esfahbod <behdad@gnome.org>
Bug 356194 – more pango_get_log_attrs problems
* pango/break.c (tailor_break): New function. Simply calls the
script_break() function of the language engine, if any.
* pango/break.c (pango_break): Call pango_default_break()
unconditionally. Call tailor_break() on top of the result to tailor
it using the language engines, if any.
* pango/break.c (tailor_segment): Call tailor_break() on the segment,
and make sure the log_attrs for the first position are not corrupted.
* pango/break.c (pango_get_log_attrs): Call pango_default_break() on
the entire paragraph, and call tailor_segment on each segment.
* pango/pango-engine.h: Update docs about *script_break()'s behavior.
|
|
|
|
|
|
|
|
|
| |
2006-09-15 Behdad Esfahbod <behdad@gnome.org>
Bug 355820 – pango_get_log_attrs broken
* pango/break.c (break_it), (pango_get_log_attrs): Use PangoScriptIter
to itemize text, instead of pango_script_for_unichar().
|
| |
|
|
|
|
|
|
|
|
| |
2006-09-15 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-fontmap.c (pango_fc_face_describe): Unset gravity on
the resulting font description. We want gravity to be set on all
fonts described, but not font faces.
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 355550 – Miscalculation of logical attributes in
pango_get_log_attrs()
Patch from Theppitak Karoonboonyanan
* pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to
pango_break().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 355782 – Misaligned extents in pango
* pango/pango-layout.c (cluster_width): Rewrite based on
is_cluster_start instead of accessing log_clusters directly. This is
more robust as next_cluster uses that, so the two match now.
* pango/pango-layout.c (update_cluster): Remove the
cluster_start_index parameter and use iter->cluster_start instead.
* pango/pango-layout.c (pango_layout_iter_copy): Fix typo in copying
iter->cluster_width.
* pango/pango-layout.c (pango_layout_iter_get_cluster_extents): Add
an assert to make sure iter->cluster_width is correctly set.
* pango/pango-layout.c (pango_layout_iter_get_char_extents): Remove
assert that was readded above to check more cases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-11 Behdad Esfahbod <behdad@gnome.org>
Bug 355435 – Invalid calls to pango_map_get_engine()
Patch from Theppitak Karoonboonyanan
* pango/break.c (pango_get_log_attrs):
* pango/pango-renderer.c (add_underline):
* pango/pangofc-font.c (pango_fc_font_find_shaper):
* pango/pangowin32.c (pango_win32_font_find_shaper):
* pango/pangox.c (pango_x_font_find_shaper):
Pass a PangoScript to pango_map_get_engine, not a gunichar!
|
|
|
|
|
|
|
|
|
|
|
| |
2006-08-17 Hans Breuer <hans@breuer.org>
* pango/makefile.msc pango/pango.def : updated
* pango/break.c(1630) : error C2059: syntax error : '}' Intializing a
struct with empty braces is not supported with MSVC, instead use 0.
* pango/pangocairo.def : removed pango_fc_font_(map_)get_type
pangocairo has either win32 fonts or freetype. The former is more usual.
* pango/pango-utils.c : replaced M_PI by G_PI (from glib/gtypes.h).
|
|
|
|
|
|
|
|
| |
2006-08-15 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_get_log_attrs): Remove initliazer members
for analysis, let compiler zero them all. Fixes compile break after
adding the gravity member inside there.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-04-11 Behdad Esfahbod <behdad@gnome.org>
Bug 337924 – cleanups for issues reported by various compilers
Patch from Kjartan Maraas.
* examples/viewer-x.c (update):
* modules/arabic/arabic-fc.c (fallback_shape),
(arabic_engine_shape):
* modules/basic/basic-fc.c (fallback_shape), (basic_engine_shape):
* modules/basic/basic-x.c:
* modules/hangul/hangul-fc.c:
* modules/hebrew/hebrew-fc.c (hebrew_engine_shape):
* modules/indic/indic-fc.c:
* modules/khmer/khmer-fc.c:
* modules/syriac/syriac-fc.c:
* modules/thai/thai-fc.c:
* modules/tibetan/tibetan-fc.c:
* pango/break.c:
* pango/modules.c:
* pango/opentype/ftglue.c (_hb_ftglue_face_goto_table):
* pango/pango-attributes.c (pango_attr_list_filter):
* pango/pango-engine.c:
* pango/pango-fontset.c:
* pango/pango-layout.c (pango_layout_set_text),
(pango_layout_xy_to_index), (pango_layout_get_cursor_pos):
* pango/pango-markup.c (text_handler):
* pango/pango-utils.c (read_alias_file):
* pango/pangocairo-fcfont.c (G_DEFINE_TYPE_WITH_CODE):
* pango/pangocairo-fcfontmap.c (G_DEFINE_TYPE_WITH_CODE):
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
* pango/pangox-fontmap.c (pango_x_make_matching_xlfd):
* tests/dump-boundaries.c (fail):
Remove unused variables. Remove excess semicolon after DEFINE_TYPE
macros.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-01-29 Behdad Esfahbod <behdad@gnome.org>
* modules/arabic/arabic-fc.c, modules/basic/basic-fc.c
modules/hebrew/hebrew-fc.c, modules/indic/indic-fc.c
modules/khmer/khmer-fc.c, modules/syriac/syriac-fc.c
modules/thai/thai-ot.c, modules/thai/thai-shaper.c
modules/tibetan/tibetan-fc.c: If locking font face failed,
do not assert, just return zero glyphs with an implicit
warning.
* pango/fonts.c, pango/glyphstring.c pango/modules.c
pango/pango-color.c, pango/pango-context.c
pango/pango-coverage.c, pango/pango-fontmap.c
pango/pango-glyph-item.c, pango/pango-item.c
pango/pango-layout.c, pango/pango-markup.c
pango/pango-ot-buffer.c, pango/pango-script.c
pango/pango-tabs.c, pango/pango-utils.c
pango/pangoatsui-fontmap.c, pango/pangocairo-fcfont.c
pango/pangocairo-fcfontmap.c, pango/pangocairo-fontmap.c
pango/pangocairo-win32font.c, pango/pangofc-font.c
pango/pangofc-fontmap.c, pango/pangoft2-fontmap.c
pango/pangoft2-render.c, pango/pangoft2.c
pango/pangowin32-fontcache.c, pango/pangoxft-font.c
pango/pangoxft-render.c, pango/break.c pango/ellipsize.c:
Use g_slice for allocating all types. Also, change some
g_error's to g_critical's...
|
|
|
|
|
|
|
| |
2006-01-14 Behdad Esfahbod <behdad@gnome.org>
* */*.c, */*/*.c: Make sure #include <config.h> is the first include
in the file. (bug #158870, based on patch by Luis Menina)
|
|
|
|
|
|
|
|
|
|
| |
2005-11-17 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_get_log_attrs): Remove g_utf8_strlen that was
only used to give a warning.
* pango/break.c (pango_default_break): Add gcc-suggested parantheses
around boolean expression.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-11-17 Behdad Esfahbod <behdad@gnome.org>
* docs/tmpl/coverage-maps.sgml docs/tmpl/fonts.sgml
docs/tmpl/glyphs.sgml docs/tmpl/layout.sgml
docs/tmpl/main.sgml docs/tmpl/scripts.sgml
docs/tmpl/tab-stops.sgml docs/tmpl/text-attributes.sgml
pango/break.c pango/fonts.c pango/pango-fontset.c
pango/pango-layout.c pango/pango-script.c pango/pango-utils.c
pango/pangofc-decoder.c pango/pangofc-decoder.h
pango/pangofc-font.c pango/pangofc-font.h
pango/pangoxft-font.c: More documentation improvements.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-11-16 Behdad Esfahbod <behdad@gnome.org>
* docs/pango_markup.sgml docs/tmpl/coverage-maps.sgml
docs/tmpl/engines.sgml docs/tmpl/fonts.sgml
docs/tmpl/freetype-fonts.sgml docs/tmpl/glyphs.sgml
docs/tmpl/layout.sgml docs/tmpl/main.sgml
docs/tmpl/modules.sgml docs/tmpl/opentype.sgml
docs/tmpl/pango-engine-lang.sgml
docs/tmpl/pango-engine-shape.sgml
docs/tmpl/pango-renderer.sgml docs/tmpl/pangocairo.sgml
docs/tmpl/pangofc-decoder.sgml docs/tmpl/pangofc-font.sgml
docs/tmpl/pangofc-fontmap.sgml docs/tmpl/scripts.sgml
docs/tmpl/tab-stops.sgml docs/tmpl/text-attributes.sgml
docs/tmpl/win32-fonts.sgml docs/tmpl/x-fonts.sgml
docs/tmpl/xft-fonts.sgml pango/break.c pango/ellipsize.c
pango/fonts.c pango/pango-attributes.c pango/pango-color.c
pango/pango-context.c pango/pango-coverage.c
pango/pango-fontmap.c pango/pango-glyph-item.c
pango/pango-layout.c pango/pango-markup.c pango/pango-tabs.c
pango/pango-types.h pango/pango-utils.c
pango/pangoft2-render.c pango/pangox.c pango/pangoxft-render.c:
Various documentation improvements.
|
|
|
|
|
|
|
| |
2005-11-14 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break): Remove g_utf8_strlen and
work around the logic. Patch by Owen Taylor.
|
|
|
|
|
|
|
| |
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_break): Do not call strlen when length < 0.
Leave it to language engines to handle NULL-terminated strings.
|
|
|
|
|
|
|
|
|
|
| |
2005-11-04 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c: Update to handle new line-breaking types in the
Unicode 4.1 UAX#14. (#313907)
* configure.in: Bump required glib version to 2.9.0. Needed for
above-mentioned line-breaking types.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2005-08-26 Behdad Esfahbod <pango@behdad.org>
* pango/break.c: Protect against future line-break type additions in
glib Unicode module.
|
|
|
|
|
|
|
| |
2005-06-18 Behdad Esfahbod <pango@behdad.org>
* pango/break.c (pango_find_paragraph_boundary): Optimization.
Do not g_utf8_get_char at all. (#305323, Paolo Borelli)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-03-04 Owen Taylor <otaylor@redhat.com>
Reduce non-shared data (#168899, inspired by patches
from Tommi Komulainen and Ross Burton)
* pango/pango-color.c pango/pango-color-table.h
tools/gen-color-table.pl: Redo storage of colors to
use offsets into a static string rather than embedded
strings. (Inspired by a patch from Tommi Komulainen,
#168899)
* pango/break.c pango/fonts.c pango/pango-color.c
pango/pango-layout.c pango/pango-markup.c
pango/pango-script-lang-table.h
pango/mini-fribidi/fribidi_types.c
tools/gen-script-for-lang.c: Add const in various places
* modules/arabic/arabic-fc.c modules/hebrew/hebrew-fc.c:
modules/indic/{indic-fc.c,indic-ot-class-tables.c,
indic-ot.h} modules/syriac/syriac-ot.c (syriac): Further
addition of const.
|