summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Remove FTGLUE_API/APIDEF cruft.Behdad Esfahbod2007-10-112-24/+16
| | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/ftglue.[ch]: Remove FTGLUE_API/APIDEF cruft. svn path=/trunk/; revision=2441
* Build harfbuzz.c instead of individual source files, to let compiler goBehdad Esfahbod2007-10-111-4/+5
| | | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/Makefile.am: Build harfbuzz.c instead of individual source files, to let compiler go wild with optimizations! svn path=/trunk/; revision=2440
* Same here.Behdad Esfahbod2007-10-111-1/+0
| | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz.c: Same here. svn path=/trunk/; revision=2439
* Don't include harfbuzz-dump.[ch] in libharfbuzz.a. Those are just used byBehdad Esfahbod2007-10-111-2/+2
| | | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/Makefile.am: Don't include harfbuzz-dump.[ch] in libharfbuzz.a. Those are just used by the harfbuzz-dump tool. svn path=/trunk/; revision=2438
* Some more cleanup.Behdad Esfahbod2007-10-111-9/+2
| | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-buffer.c: Some more cleanup. svn path=/trunk/; revision=2437
* Move some code around.Behdad Esfahbod2007-10-111-43/+48
| | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-buffer.c: Move some code around. svn path=/trunk/; revision=2436
* Minor.Behdad Esfahbod2007-10-111-1/+1
| | | | svn path=/trunk/; revision=2435
* Rename buffer->inplace to buffer->separate_out with the inverted meaning,Behdad Esfahbod2007-10-112-18/+18
| | | | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-buffer.[ch]: Rename buffer->inplace to buffer->separate_out with the inverted meaning, such that buffer is initialization is memset(0). svn path=/trunk/; revision=2434
* Allocate buffer->positions lazily.Behdad Esfahbod2007-10-114-9/+37
| | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/*: Allocate buffer->positions lazily. svn path=/trunk/; revision=2433
* Bug 485621 – Get rid of freetype memory allocator in harfbuzzBehdad Esfahbod2007-10-1116-714/+443
| | | | | | | | | | | | | | 2007-10-11 Behdad Esfahbod <behdad@gnome.org> Bug 485621 – Get rid of freetype memory allocator in harfbuzz * pango/opentype/*: Remove all occurences of FT_Memory. Use malloc/realloc/free directly. * pango/pango-ot*: Update to above. svn path=/trunk/; revision=2432
* Bug 485559 – Boston Summit HarfBuzz optimizationsBehdad Esfahbod2007-10-1122-1318/+1264
| | | | | | | | | | | | | | | | | | | | | | 2007-10-10 Behdad Esfahbod <behdad@gnome.org> Bug 485559 – Boston Summit HarfBuzz optimizations * pango/opentype/*: HarfBuzz hacking to: - Rename last remaining FT_Err stuff to HB_Err. - Fix a couple invalid table paths to be permissive so fonts work better. Particularly GDEF table for Nafees Nastaliq is loaded and works great now. - Optimize harfbuzz buffer to not copy/swap for simple one-to-one and "copy" GSUB operations. * pango/pango-ot*: Update to FT_Err to HB_Err renaming. svn path=/trunk/; revision=2431
* Improve docs.Behdad Esfahbod2007-10-101-1/+1
| | | | svn path=/trunk/; revision=2430
* Fix typo in comments.Behdad Esfahbod2007-09-211-1/+1
| | | | | | | | | 2007-09-21 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-fontmap.c: Fix typo in comments. svn path=/trunk/; revision=2428
* Part of Bug 474708 – pangocairo leaks memoryBehdad Esfahbod2007-09-088-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-09-07 Behdad Esfahbod <behdad@gnome.org> Part of Bug 474708 – pangocairo leaks memory * pango/pangocairo-font.c (_pango_cairo_font_private_get_hex_box_info): Fix a couple leaks. * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifontmap.c (pango_cairo_atsui_font_map_finalize): * pango/pangocairo-fc.h: * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_finalize): * pango/pangocairo-win32.h: * pango/pangocairo-win32fontmap.c (pango_cairo_win32_font_map_finalize): Remove unused leftover renderer variable. * pango/pangofc-fontmap.c (pango_fc_font_map_finalize): Fix thinko. svn path=/trunk/; revision=2424
* Switch some g_new (*, 1) to g_slice_new ()... I know...Behdad Esfahbod2007-09-071-7/+14
| | | | | | | | | | | | | | | | | | 2007-09-07 Behdad Esfahbod <behdad@gnome.org> * pango/pangox-fontcache.c (free_cache_entry), (pango_x_font_cache_free), (pango_x_font_cache_new), (pango_x_font_cache_load): * pango/pangox-fontmap.c (pango_x_font_map_finalize), (pango_x_insert_font): * pango/pangox.c (free_context_info), (pango_x_get_context), (pango_x_font_init), (pango_x_font_get_metrics), (pango_x_insert_subfont), (free_metrics_info), (pango_x_font_finalize): Switch some g_new (*, 1) to g_slice_new ()... I know... svn path=/trunk/; revision=2423
* Switch some g_new (*, 1) to g_slice_new ()... I know...Behdad Esfahbod2007-09-073-7/+14
| | | | | | | | | | | | | | | | | | 2007-09-07 Behdad Esfahbod <behdad@gnome.org> * pango/pangox-fontcache.c (free_cache_entry), (pango_x_font_cache_free), (pango_x_font_cache_new), (pango_x_font_cache_load): * pango/pangox-fontmap.c (pango_x_font_map_finalize), (pango_x_insert_font): * pango/pangox.c (free_context_info), (pango_x_get_context), (pango_x_font_init), (pango_x_font_get_metrics), (pango_x_insert_subfont), (free_metrics_info), (pango_x_font_finalize): Switch some g_new (*, 1) to g_slice_new ()... I know... svn path=/trunk/; revision=2422
* Patch from Chris WilsonBehdad Esfahbod2007-09-071-2/+1
| | | | | | | | | | | | 2007-09-07 Behdad Esfahbod <behdad@gnome.org> Patch from Chris Wilson * pango/pangoft2.c (load_fallback_face): Use g_error() instead of g_warning()+exit(). svn path=/trunk/; revision=2421
* Bug 472891 – Bad consistency check in pango_get_log_attrsMathias Hasselmann2007-09-021-1/+1
| | | | | | | | | | | 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
* Bug 302952 – The placement of a diacritic marks for an arabic ligatureBehdad Esfahbod2007-08-291-1/+1
| | | | | | | | | | | | | 2007-08-29 Behdad Esfahbod <behdad@gnome.org> Bug 302952 – The placement of a diacritic marks for an arabic ligature is not correct * pango/opentype/harfbuzz-buffer.c (hb_buffer_allocate_ligid): Don't use zero as allocated ligature id. Zero means no ligature id. svn path=/trunk/; revision=2418
* Move ruleset initialization to _init() instead of _new().Behdad Esfahbod2007-08-291-5/+4
| | | | | | | | | | | 2007-08-28 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-ruleset.c (pango_ot_ruleset_init), (pango_ot_ruleset_new): Move ruleset initialization to _init() instead of _new(). svn path=/trunk/; revision=2417
* Bug 470042 – missing Macedonian OT tag Patch from Denis JacqueryeBehdad Esfahbod2007-08-241-0/+1
| | | | | | | | | | | | 2007-08-24 Behdad Esfahbod <behdad@gnome.org> Bug 470042 – missing Macedonian OT tag Patch from Denis Jacquerye * pango/pango-ot-tag.c: Add Macedoninan language tag. svn path=/trunk/; revision=2413
* Bug 468953 – pango-renderer.c: using function without prototypeBehdad Esfahbod2007-08-211-0/+1
| | | | | | | | | | | 2007-08-21 Behdad Esfahbod <behdad@gnome.org> Bug 468953 – pango-renderer.c: using function without prototype * pango/pango-renderer.c: #include <pango-impl-utils.h> svn path=/trunk/; revision=2412
* Bug 463430 – Gets stuck while "formatting message"Behdad Esfahbod2007-08-212-6/+11
| | | | | | | | | | | | | | | 2007-08-21 Behdad Esfahbod <behdad@gnome.org> Bug 463430 – Gets stuck while "formatting message" * pango/opentype/harfbuzz-gpos.c (Lookup_PairPos1), (Lookup_PairPos2), (Lookup_PairPos), (Do_ContextPos): * pango/opentype/harfbuzz-gsub.c (Do_ContextSubst): Change type of intermediate index variable from FT_UShort to FT_ULong as it was overlowing with more than 65536 glyphs. svn path=/trunk/; revision=2411
* Bug 348348 – Add a way to get the script name of a gunicharBehdad Esfahbod2007-08-216-3018/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-20 Behdad Esfahbod <behdad@gnome.org> Bug 348348 – Add a way to get the script name of a gunichar * configure.in: Require glib 2.14, for GUnicodeScript stuff. * docs/tmpl/scripts.sgml: Document that #PangoScript is interchangeable with GUnicodeScript. * pango/pango-script.c (pango_script_for_unichar): Use g_unichar_get_script(), and document it. * tools/Makefile.am: * tools/gen-script-table.pl: * pango/Makefile.am: * pango/pango-script-table.h: Remove pango-script-table.h and its generator. * pango/pango-gravity.c (get_script_properties): * pango/pango-language.c (pango_script_get_sample_language): * pango/pango-ot-tag.c (pango_ot_tag_from_script): Protect against unexpected script values. svn path=/trunk/; revision=2406
* Don't ignore error return value of hb_buffer_copy_output_glyph(). PatchBehdad Esfahbod2007-08-211-1/+1
| | | | | | | | | | | 2007-08-20 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-gsub.c (GSUB_Do_String_Lookup): Don't ignore error return value of hb_buffer_copy_output_glyph(). Patch sent to harfbuzz-list. svn path=/trunk/; revision=2405
* Bug 462630 – pango_cairo_context_set_font_options() and some othersBehdad Esfahbod2007-08-151-0/+4
| | | | | | | | | | | | 2007-08-15 Behdad Esfahbod <behdad@gnome.org> Bug 462630 – pango_cairo_context_set_font_options() and some others don't have a Since: tag * pango/pangocairo-context.c: Add missing Since tags to docs. svn path=/trunk/; revision=2404
* Bug 467077 – Remove special-case for shape attribute inBehdad Esfahbod2007-08-151-29/+21
| | | | | | | | | | | | | | | 2007-08-15 Behdad Esfahbod <behdad@gnome.org> Bug 467077 – Remove special-case for shape attribute in pango_layout_line_index_to_x() * pango/pango-layout.c (pango_layout_line_index_to_x): Remove special-casing for shape-attribute runs. It all works because pango_glyph_string_index_to_x() is perfectly correct to run on glyphs returned by _pango_shape_shape(). svn path=/trunk/; revision=2403
* Bug 462420 – Clicking on pixbuf should move the cursor to the positionBehdad Esfahbod2007-08-151-15/+6
| | | | | | | | | | | | | | | 2007-08-15 Behdad Esfahbod <behdad@gnome.org> Bug 462420 – Clicking on pixbuf should move the cursor to the position nearest to the click point * pango/pango-layout.c (pango_layout_line_x_to_index): Remove special-casing for shape-attribute runs. It all works because pango_glyph_string_x_to_index() is perfectly correct to run on glyphs returned by _pango_shape_shape(). svn path=/trunk/; revision=2402
* Bug 467056 – Shape attribute handling is not consistentBehdad Esfahbod2007-08-154-114/+109
| | | | | | | | | | | | | | | | | | | 2007-08-15 Behdad Esfahbod <behdad@gnome.org> Bug 467056 – Shape attribute handling is not consistent * pango/pango-impl-utils.h: * pango/pango-layout.c (pango_layout_line_index_to_x), (shape_run), (pango_layout_line_x_to_index), (pango_layout_run_get_extents), (update_run): * pango/pango-renderer.c (pango_renderer_draw_layout_line): * pango/pango-utils.c (_pango_shape_shape), (_pango_shape_get_extents): Fix handling of extents for shaped runs. Previsouly a shaped run with more than one character was not correctly positioned. svn path=/trunk/; revision=2401
* Fix another typoBehdad Esfahbod2007-08-151-1/+1
| | | | svn path=/trunk/; revision=2400
* Fix more typosBehdad Esfahbod2007-08-152-4/+4
| | | | svn path=/trunk/; revision=2399
* Fix more typos, and use TRUE/FALSE instead of 1/0Behdad Esfahbod2007-08-152-5/+5
| | | | svn path=/trunk/; revision=2398
* Fix typoBehdad Esfahbod2007-08-141-1/+1
| | | | svn path=/trunk/; revision=2397
* Bug 466755 – pango hangul is crashing in gnome-about because it isBehdad Esfahbod2007-08-142-19/+50
| | | | | | | | | | | | | | | | | 2007-08-14 Behdad Esfahbod <behdad@gnome.org> Bug 466755 – pango hangul is crashing in gnome-about because it is failing to retrieve a font. * pango/pangofc-font.c (pango_fc_font_real_get_glyph), (pango_fc_font_kern_glyphs), (pango_fc_font_get_raw_extents): Protect against NULL face. * pango/shape.c (pango_shape): Improve error message by writing out shaping engine type name and the text too. svn path=/trunk/; revision=2396
* Mark G_GNUC_CONST.Behdad Esfahbod2007-08-141-1/+1
| | | | | | | | | 2007-08-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script.h (pango_script_for_unichar): Mark G_GNUC_CONST. svn path=/trunk/; revision=2395
* Bug 465174 – TextView is ignoring multiple consecutive \t'sBehdad Esfahbod2007-08-091-7/+5
| | | | | | | | | | | | | | 2007-08-09 Behdad Esfahbod <behdad@gnome.org> Bug 465174 – TextView is ignoring multiple consecutive \t's * pango/pango-layout.c (get_tab_pos), (shape_tab): Fix two problems introduced with fix for bug 464183. The code now semantically matches what it was before changes leading to revision 1734 for the case that user has set no tabs. svn path=/trunk/; revision=2394
* Bug 464270 – ellipsize doesn't work consistentBehdad Esfahbod2007-08-082-6/+4
| | | | | | | | | | | | | | 2007-08-07 Behdad Esfahbod <behdad@gnome.org> Bug 464270 – ellipsize doesn't work consistent * pango/pango-glyph-item.c (_pango_glyph_item_iter_prev_cluster): Fix. Was jumping two clusters at a time. Oops! * pango/ellipsize.c (init_state): Minor cleanup. svn path=/trunk/; revision=2392
* Bug 464183 – Minimum tab width enforcement in pango-layout breaksBehdad Esfahbod2007-08-071-3/+16
| | | | | | | | | | | | | | 2007-08-07 Behdad Esfahbod <behdad@gnome.org> Bug 464183 – Minimum tab width enforcement in pango-layout breaks TabArray positions Patch by David Trowbridge * pango/pango-layout.c (get_tab_pos), (shape_tab): Don't enforce any minimum space between tabs if tab-array is set on the layout. svn path=/trunk/; revision=2390
* Move contents of mapping.c to glyphstring.c where they belong.Behdad Esfahbod2007-08-014-330/+306
| | | | | | | | | | | | | | | | 2007-08-01 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/glyphstring.c (pango_glyph_string_index_to_x), (pango_glyph_string_x_to_index): * pango/mapping.c: Move contents of mapping.c to glyphstring.c where they belong. * pango/pango-layout.c (pango_layout_line_x_to_index): Fix typo. svn path=/trunk/; revision=2389
* Bug 462137 – memory corruption in pango_default_breakBehdad Esfahbod2007-07-311-1/+4
| | | | | | | | | | | | 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
* A bit moreBehdad Esfahbod2007-07-211-2/+2
| | | | svn path=/trunk/; revision=2376
* Part of Bug 347236 – provide pango_cairo_font_get_scaled_fontBehdad Esfahbod2007-07-215-16/+24
| | | | | | | | | | | | | | | | | | | | | | | 2007-07-21 Behdad Esfahbod <behdad@gnome.org> Part of Bug 347236 – provide pango_cairo_font_get_scaled_font * docs/Makefile.am: * docs/pango-sections.txt: * docs/tmpl/atsui-fonts.sgml: * docs/tmpl/opentype.sgml: * docs/tmpl/pango-engine-lang.sgml: * docs/tmpl/pango-engine-shape.sgml: * docs/tmpl/pangocairo.sgml: * pango/pangoatsui.h: * pango/pangocairo-atsuifont.h: * pango/pangocairo-font.c (pango_cairo_font_get_scaled_font): * pango/pangocairo-private.h: * pango/pangocairo.h: Export PangoCairoFont and cleanup various standard macros. svn path=/trunk/; revision=2375
* Move the remaining uses of font_id from PangoCairoATSUIFont toRichard Hult2007-06-262-23/+17
| | | | | | | | | | | | 2007-06-26 Richard Hult <richard@imendio.com> * pango/pangoatsui.c: (_pango_atsui_font_set_atsu_font_id): * pango/pangocairo-atsuifont.c: (pango_cairo_atsui_font_create_metrics_for_context), (_pango_cairo_atsui_font_new): Move the remaining uses of font_id from PangoCairoATSUIFont to PangoATSUIFont. svn path=/trunk/; revision=2367
* Bug 449543 - Ship pangoatsui.hRichard Hult2007-06-247-56/+184
| | | | | | | | | | | | | | | | | | | | | | 2007-06-24 Richard Hult <richard@imendio.com> Bug 449543 - Ship pangoatsui.h * pango/pangoatsui-fontmap.c: * pango/pangoatsui-private.h: * pango/pangoatsui.c: * pango/pangoatsui.h: * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifont.h: Move get_atsu_font_id from the cairo atsui font class to the atsui base class. Make the members of the atsui font private and adapt all users of them. * pango/Makefile.am: Ship pangoatsui.h. * modules/basic/basic-atsui.c: (basic_engine_shape): Adapt to the above changes. svn path=/trunk/; revision=2366
* Add G_UNLIKELY() to type registration block in _get_type() functions.Behdad Esfahbod2007-06-2016-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-20 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_get_type), (pango_font_metrics_get_type): * pango/glyphstring.c (pango_glyph_string_get_type): * pango/pango-attributes.c (pango_attr_list_get_type): * pango/pango-color.c (pango_color_get_type): * pango/pango-item.c (pango_item_get_type): * pango/pango-language.c (pango_language_get_type): * pango/pango-layout.c (pango_layout_line_get_type), (pango_layout_iter_get_type): * pango/pango-matrix.c (pango_matrix_get_type): * pango/pango-ot-info.c (pango_ot_info_get_type): * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type): * pango/pango-tabs.c (pango_tab_array_get_type): * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type), (pango_atsui_face_get_type): * pango/pangofc-fontmap.c (pango_fc_face_get_type), (pango_fc_family_get_type): * pango/pangowin32-fontmap.c (pango_win32_family_get_type), (pango_win32_face_get_type): * pango/pangox-fontmap.c (pango_x_font_map_get_type), (pango_x_face_get_type), (pango_x_family_get_type): * pango/pangox.c (pango_x_font_get_type): Add G_UNLIKELY() to type registration block in _get_type() functions. svn path=/trunk/; revision=2364
* minor whitespace fix.Behdad Esfahbod2007-06-201-3/+3
| | | | svn path=/trunk/; revision=2363
* Bug 448342 – pango_layout_index_to_line_x() counts lines from 1Behdad Esfahbod2007-06-191-1/+1
| | | | | | | | | | | | 2007-06-18 Behdad Esfahbod <behdad@gnome.org> Bug 448342 – pango_layout_index_to_line_x() counts lines from 1 * pango/pango-layout.c (pango_layout_index_to_line): Count lines from zero, not one! svn path=/trunk/; revision=2359
* Bug 447568 – improve docs on what absolute size meansBehdad Esfahbod2007-06-191-2/+6
| | | | | | | | | | | 2007-06-18 Behdad Esfahbod <behdad@gnome.org> Bug 447568 – improve docs on what absolute size means * pango/fonts.c: Improve docs. svn path=/trunk/; revision=2357
* Clarify docs.Behdad Esfahbod2007-06-151-1/+3
| | | | svn path=/trunk/; revision=2356
* updatedHans Breuer2007-06-151-3/+18
| | | | | | | | | 2007-06-15 Hans Breuer <hans@breuer.org> * pango/makefile.msc : updated svn path=/trunk/; revision=2355