summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Copy fixes from harfbuzz stable branch. Includes a leak fix, a kerningBehdad Esfahbod2007-04-033-1/+11
| | | | | | | | | | | | | | 2007-04-03 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-gdef.c (_HB_GDEF_Check_Property): * pango/opentype/harfbuzz-gpos.c (HB_Done_GPOS_Table), (Lookup_PairPos): * pango/opentype/harfbuzz-open.c (Get_Class1): Copy fixes from harfbuzz stable branch. Includes a leak fix, a kerning fix, and an array out-of-bound access fix. svn path=/trunk/; revision=2221
* Bug 419262 - Don't create coverage every time it's asked forRichard Hult2007-03-186-39/+77
| | | | | | | | | | | | | | | | | | | | | | 2007-03-18 Richard Hult <richard@imendio.com> Bug 419262 - Don't create coverage every time it's asked for * pango/pangoatsui.c: (pango_atsui_font_get_coverage): * pango/pangoatsui-fontmap.c: Pass around a PangoATSUIFace instead of the postscript name string. Move the coverage creation from the font to the face, and get the coverage from the face instead of creating it every time. * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.c: (_pango_cairo_atsui_font_new): Use the face instead of the postscript name. * pango/pangoatsui-private.h: * pango/pangocairo-atsuifontmap.c: Add getters for the postscript name and coverage for the face. svn path=/trunk/; revision=2218
* Add missing declaration of pango_win32_family_get_type(). (#417946, IvanTor Lillqvist2007-03-141-1/+3
| | | | | | | | | | 2007-03-14 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c: Add missing declaration of pango_win32_family_get_type(). (#417946, Ivan Wong) svn path=/trunk/; revision=2217
* Add new symbols to docs.Behdad Esfahbod2007-03-122-2/+2
| | | | | | | | | | | | 2007-03-12 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * pango/pangowin32-fontmap.c: * pango/pangowin32.c: Add new symbols to docs. svn path=/trunk/; revision=2216
* pango/pangowin32-private.h pango/pangowin32.c pango/pangowin32-fontcache.cTor Lillqvist2007-03-106-229/+206
| | | | | | | | | | | | | | | | | | 2007-03-10 Tor Lillqvist <tml@novell.com> * pango/pangowin32-private.h * pango/pangowin32.c * pango/pangowin32-fontcache.c * pango/pangowin32-fontmap.c * pango/pangocairo-win32font.c * pango/pangowin32.def: Move functions defined in one file and used in another to the file where used, make them static, and drop from pangowin32-private.h. Prefix all private non-static functions with underscore. Also functions used only by the pangocairo DLL are considered private. (#120195) svn path=/trunk/; revision=2213
* This change was supposed to go in the trunk before 1.16.0, but it didn'tTor Lillqvist2007-02-277-213/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-02-26 Tor Lillqvist <tml@novell.com> This change was supposed to go in the trunk before 1.16.0, but it didn't quite get there in time. So, to have a clear cut for this somewhat fundamental change in underlying workings (although there should be no user-visible changes), I will build and distribute Win32 binaries only starting from 1.16.1. Use wide character API for fonts on Windows. Rename functions and variables that deal with LOGFONTW structs to emphasize this. (#407315) * pango/pangowin32.c * pango/pangowin32-fontcache.c * pango/pangowin32-fontmap.c: Use LOGFONTW all over the place instead of LOGFONT, and adapt code accordingly. Use wide character Win32 API. * pango/pangowin32.c (pango_win32_font_neww): Renamed from pango_win32_font_new(), as it now takes a LOGFONTW pointer. This is a private function and can be renamed though it is exported as it is used from the pangocairo DLL. (pango_win32_font_logfont): Mention explicitly in doc comment that it returns a LOGFONTA, and recommend to use pango_win32_font_logfontw() instead. (pango_win32_font_logfontw): New function. * pango/pangowin32-fontcache.c (pango_win32_font_cache_load): Must keep this function that takes a LOGFONTA pointer as it is declared in the public header. (pango_win32_font_cache_loadw): New public function that takes a LOGFONTW pointer. * pango/pangowin32-fontmap.c (pango_win32_font_description_from_logfont): Mention explicitly in the doc comment that it takes a LOGFONTA pointer. (pango_win32_font_description_from_logfontw): New public function that takes a LOGFONTW pointer. (pango_win32_make_matching_logfontw): Rename from pango_win32_make_matching_logfont() to emphasize it takes a LOGFONTW pointer. * pango/pangowin32.h: Declare new public functions. * pango/pangowin32-private.h: Declare new private functions, drop removed ones. * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): Simplify now that we call pango_win32_make_matching_logfontw(). * pango/pangowin32.def: Add new functions, rename internal functions that now use LOGFONTW. 2007-02-26 Tor Lillqvist <tml@novell.com> Fix brokenness in the code that tries to ensure that all fonts also have italic variants. Now the code hopefully actually does what it was supposed to. (Which is not necessarily the right thing to do, though. It can be argued that we should not list synthesized italic font styles, we should just silently generate them if asked for. We don't want synthesized italic (or synthesized bold) styles showing up in the font selector. They don't show up when using a fontconfig-based Pango backend either.) (#110521) * pango/pangowin32-fontmap.c (logfont_nosize_hash, logfont_nosize_equal): Don't use the lfItalic field as such, just its nonzeroness. When being enumerated, italic fonts show up with lfItalic=255, but our code looks up italic versions of fonts by passing a key LOGFONT with lfItalic=1. (first_match): Not needed any more, see below. (ensure_italic): This is now called on the entries in the size_infos hash table, not families. The code used to randomly look for the first matching font in size_infoswith the family name being handled. (pango_win32_font_map_init): Iterate through the size_infos hash table with ensure_italic, not through the families table. * pango/pangowin32-fontcache.c (logfontw_hash, logfontw_equal): Look at just nonzeroness of lfItalic here, too. svn path=/trunk/; revision=2204
* Bug 409212 – Missing link flag prevents build with "-z defs" ld flagsBehdad Esfahbod2007-02-181-0/+1
| | | | | | | | | | | | 2007-02-18 Behdad Esfahbod <behdad@gnome.org> Bug 409212 – Missing link flag prevents build with "-z defs" ld flags Patch from Loïc Minier * pango/Makefile.am: Add $(X_LIBS) to pangoxft_LDADD. svn path=/trunk/; revision=2199
* Bug 355987 – choosing font/shaper for spaces breaks Arabic runs onBehdad Esfahbod2007-02-171-13/+4
| | | | | | | | | | | | | 2007-02-16 Behdad Esfahbod <behdad@gnome.org> Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on spaces * pango/pango-context.c (itemize_state_process_run): Don't choose shaper for ASCII space char. svn path=/trunk/; revision=2198
* If something has gone wrong in setting the family of the font description,Owen Taylor2007-02-131-1/+13
| | | | | | | | | | | | 2007-02-13 Owen Taylor <otaylor@redhat.com> * pango/pangowin32-fontmap.c (pango_win32_insert_font): If something has gone wrong in setting the family of the font description, don't bother with the font as it isn't usable and will cause crashes later anyway. (#404295) svn path=/trunk/; revision=2194
* Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul")Tor Lillqvist2007-01-311-0/+2
| | | | | | | | | | 2007-01-31 Tor Lillqvist <tml@novell.com> * pango/Makefile.am: Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul") svn path=/trunk/; revision=2192
* Remove PANGO_IS_FONT() check. Just do NULL-checking.PANGO_1_14_10Behdad Esfahbod2007-01-251-3/+3
| | | | | | | | | | | 2007-01-24 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_get_metrics), (pango_font_get_font_map): Remove PANGO_IS_FONT() check. Just do NULL-checking. svn path=/trunk/; revision=2184
* Bug 399738 – pango 1.15.5 won't compile on Mac OS X: 'FC_HINT_STYLE'Behdad Esfahbod2007-01-231-0/+5
| | | | | | | | | | | | | 2007-01-23 Behdad Esfahbod <behdad@gnome.org> Bug 399738 – pango 1.15.5 won't compile on Mac OS X: 'FC_HINT_STYLE' undeclared (first use in this function) * pango/pangoft2.c (pango_ft2_font_get_face): Don't use FC_HINT_STYLE if it's not defined (old fontconfig versions). svn path=/trunk/; revision=2183
* Fix the "menu accels are two chars wide" bug that was introduced by theBehdad Esfahbod2007-01-231-2/+2
| | | | | | | | | | | | 2007-01-22 Behdad Esfahbod <behdad@gnome.org> * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster): Fix the "menu accels are two chars wide" bug that was introduced by the recent changes in this function, in 1.15.4. Apparently glyph_index means separate things in next_cluster and prev_cluster. svn path=/trunk/; revision=2179
* Populate metrics for NULL/broken fonts. Now our glyph boxes haveBehdad Esfahbod2007-01-221-1/+13
| | | | | | | | | | 2007-01-22 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_get_metrics): Populate metrics for NULL/broken fonts. Now our glyph boxes have underlines too. Yay! svn path=/trunk/; revision=2178
* Respect FC_HINT_STYLE. Patch has been in Fedora for ages.Behdad Esfahbod2007-01-181-2/+16
| | | | | | | | | | 2007-01-18 Behdad Esfahbod <behdad@gnome.org> * pango/pangoft2.c (pango_ft2_font_get_face): Respect FC_HINT_STYLE. Patch has been in Fedora for ages. svn path=/trunk/; revision=2174
* Bug 397337 – Use is_ellipsized and is_wrapped to optimize propertyBehdad Esfahbod2007-01-161-2/+5
| | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Bug 397337 – Use is_ellipsized and is_wrapped to optimize property changes * pango/pango-layout.c (pango_layout_set_wrap), (pango_layout_set_ellipsize): Using is_ellipsized and is_wrapped, only clear lines if wrap/ellipsize change has any effect on the lines. svn path=/trunk/; revision=2168
* *.c, *.h: Removed spaces followed b tabs.Behdad Esfahbod2007-01-1612-34/+34
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Removed spaces followed b tabs. svn path=/trunk/; revision=2166
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-1653-1972/+1972
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-1685-2458/+2458
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
* Bug 328585 – Need to know if a layout has unknown glyphs Patch fromBehdad Esfahbod2007-01-164-2/+66
| | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Bug 328585 – Need to know if a layout has unknown glyphs Patch from LingNing Zhang * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_get_unknown_glyphs_count), (pango_layout_clear_lines): * pango/pango-layout.h: New public function: pango_layout_get_unknown_glyphs_count() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. svn path=/trunk/; revision=2162
* Align spaces.Behdad Esfahbod2007-01-161-2/+2
| | | | svn path=/trunk/; revision=2161
* Part of Bug 326693 – PangoLayouts should be query-able about theirBehdad Esfahbod2007-01-164-6/+45
| | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Part of Bug 326693 – PangoLayouts should be query-able about their effective properties (width / wrapped / ellipsized / etc) * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_is_wrapped), (pango_layout_clear_lines), (process_line): * pango/pango-layout.h: New public function: pango_layout_is_wrapped() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. svn path=/trunk/; revision=2160
* Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return aBehdad Esfahbod2007-01-161-1/+1
| | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Bug 397327 – pango-layout.c: 'pango_layout_is_ellipsized' must return a value * pango/pango-layout.c (pango_layout_is_ellipsized): Use g_return_val_if_fail() instead of g_return_if_fail(). svn path=/trunk/; revision=2159
* Fix width calculation. Was causing ellipsization to stop at a zero-widthBehdad Esfahbod2007-01-162-10/+21
| | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/ellipsize.c (get_cluster_width): Fix width calculation. Was causing ellipsization to stop at a zero-width glyph that was part of a bigger cluster. * pango/ellipsize.c (remove_one_span): Skip over zero-width clusters, otherwise ellipsization will stop at a zero-width cluster. * pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster), (_pango_glyph_item_iter_prev_cluster): Fix yet another bug with in prev_cluster that was making it not work for any interesting cluster. svn path=/trunk/; revision=2158
* Bug 363510 – Ability to query whether a PangoLayout is effectivelyBehdad Esfahbod2007-01-165-5/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> Bug 363510 – Ability to query whether a PangoLayout is effectively ellipsized (as opposed to the set_ellpisize()/get_ellipsize() methods which only set a request, or return the set request respectively) Patch from Milosz Derezynski * pango/pango-layout.h: * pango/ellipsize.c (_pango_layout_line_ellipsize): * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_init), (pango_layout_copy), (pango_layout_is_ellipsized), (pango_layout_clear_lines), (pango_layout_line_postprocess): New public function: pango_layout_is_ellipsized() * pango/pango.def: * docs/tmpl/layout.sgml: * docs/pango-sections.txt: Update. svn path=/trunk/; revision=2150
* Fix background rendering being off in presence of rise attributes.Behdad Esfahbod2007-01-161-1/+1
| | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix background rendering being off in presence of rise attributes. svn path=/trunk/; revision=2148
* Update centered_baseline in presence of gravity attributes.Behdad Esfahbod2007-01-161-13/+11
| | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c (itemize_state_init), (itemize_state_update_for_new_run): Update centered_baseline in presence of gravity attributes. svn path=/trunk/; revision=2147
* Use pango_layout(_iter)?_get_line_readonly() instead ofBehdad Esfahbod2007-01-164-5/+5
| | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (draw_text): * pango/pangocairo-win32font.c (max_glyph_width): * pango/pangofc-font.c (max_glyph_width): * pango/pangowin32.c (max_glyph_width), (pango_win32_render_layout): * pango/pangox.c (pango_x_render_layout): Use pango_layout(_iter)?_get_line_readonly() instead of pango_layout(_iter)?_get_line(). svn path=/trunk/; revision=2146
* New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. NewBehdad Esfahbod2007-01-168-297/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.h: * pango/pango-attributes.c: New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT. New public functions: pango_attr_gravity_new() pango_attr_gravity_hint_new() * pango/pango-context.c (update_attr_iterator), (itemize_state_init), (itemize_state_add_character), (get_shaper_and_font), (itemize_state_update_for_new_run): Handle gravity and gravity_hint attributes. * pango/pango-utils.h: * pango/pango-utils.c: New public function: pango_parse_enum() * pango/pango-markup.c (span_parse_func): Parse gravity and gravity_hint attributes for <span>. Optimize a bit. * pango/pango-markup.c (parse_absolute_size), (attr_strcmp), (span_parse_int), (span_parse_boolean), (span_parse_color), (span_parse_enum), (span_parse_func): Use pango_scan_int(), pango_color_parse(), and pango_parse_enum(). Also, ignore '-' and '_' differences when matching attribute names for <span>. * examples/renderdemo.c (parse_enum), (parse_ellipsis), (parse_gravity), (parse_gravity_hint), (parse_hinting), (parse_wrap): Use a generic parse_enum() that uses pango_parse_enum(). * modules/basic/basic-fc.c (basic_engine_shape): * pango/pangofc-fontmap.c (pango_fc_make_pattern): Use PANGO_GRAVITY_IS_VERTICAL(). * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: * docs/tmpl/utils.sgml: Update. svn path=/trunk/; revision=2145
* Bug 323173 – Add layout of mixed direction text for vertical layoutBehdad Esfahbod2007-01-1618-201/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-15 Behdad Esfahbod <behdad@gnome.org> Bug 323173 – Add layout of mixed direction text for vertical layout * pango/pango-gravity.h: * pango/pango-gravity.c: Moved gravity stuff here. New public API: PangoGravityHint pango_gravity_get_for_matrix() pango_gravity_get_for_script() * pango/pango-context.h: * pango/pango-context.c (pango_context_init), (update_resolved_gravity), (itemize_state_update_for_new_run): Support gravity hint. New public API: pango_context_set_gravity_hint() pango_context_get_gravity_hint() * pango/pango-utils.c: * pango/pango-matrix.c: * pango/pango-matrix.h: * pango/pango-types.h: Moved gravity and matrix stuff into its own header. pango-types.h includes both pango-matrix.h and pango-gravity.h * pango/pango.h: Include new headers. * pango/pango.def: * pango/Makefile.am: Update. * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * docs/tmpl/vertical.sgml: Add a section for Vertical Text. * examples/renderdemo.c (do_output), (parse_gravity_hint), (parse_options): Support gravity hint. * examples/test-mixed.txt: New test, mixed Latin, Arabic, Chinese text. svn path=/trunk/; revision=2144
* updatedHans Breuer2007-01-132-12/+13
| | | | | | | | | 2007-01-13 Hans Breuer <hans@breuer.org> * pango/makefile.msc pango/opentype/makefile.msc : updated svn path=/trunk/; revision=2139
* Remove .cvsignore files (moved to svn:ignore prop)Behdad Esfahbod2007-01-093-31/+0
| | | | svn path=/trunk/; revision=2137
* Don't introduce bitfields in public struct and rename PangoAnalysis.Behdad Esfahbod2007-01-084-8/+11
| | | | | | | | | | | | | | | | | | 2007-01-08 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * pango/pango-context.c (itemize_state_add_character): * pango/pango-item.h: * pango/pango-layout.c (pango_layout_run_get_extents): * pango/pango-renderer.c (pango_renderer_draw_layout_line): Don't introduce bitfields in public struct and rename PangoAnalysis. centered_baseline to PangoAnalysis.flags and introduce PANGO_ANALYSIS_FLAGS_CENTERED_BASELINE. svn path=/trunk/; revision=2134
* Fix typo in docs.Behdad Esfahbod2007-01-081-1/+1
| | | | svn path=/trunk/; revision=2133
* Spell-check the docs.Behdad Esfahbod2007-01-0737-132/+130
| | | | svn path=/trunk/; revision=2130
* Improve docs, and mention g_unichar_iszerowidth().Behdad Esfahbod2007-01-041-2/+5
| | | | | | | | | | 2007-01-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c: Improve docs, and mention g_unichar_iszerowidth(). svn path=/trunk/; revision=2127
* Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21Behdad Esfahbod2007-01-047-70/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-04 Behdad Esfahbod <behdad@gnome.org> Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21 * pango/pango-types.h: * pango/pango-matrix.c: New public API: pango_matrix_transform_distance() pango_matrix_transform_point() pango_matrix_transform_rectangle() pango_matrix_transform_pixel_rectangle() * pango/pango-utils.h: * pango/pango-utils.c: New public API: pango_units_from_double() pango_units_to_double() pango_extents_to_pixels() * pango/pango-layout.c (pango_layout_get_pixel_extents), (pango_layout_line_get_pixel_extents): Use pango_extents_to_pixels(). * pango/pangocairo-fcfont.c: (pango_cairo_fc_font_glyph_extents_cache_init), (compute_glyph_extents): Use pango_units_from_double(). * examples/renderdemo.c (do_output): Use pango_matrix_transform_pixel_rectangle(); * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: Update. svn path=/trunk/; revision=2126
* Bug 390877 – Don't feed pango-features.h to glib-mkenums Patch fromBehdad Esfahbod2007-01-031-1/+1
| | | | | | | | | | | | 2007-01-03 Behdad Esfahbod <behdad@gnome.org> Bug 390877 – Don't feed pango-features.h to glib-mkenums Patch from Yevgen Muntyan * pango/Makefile.am: Move pango-features.h to pangoinclude_HEADERS. svn path=/trunk/; revision=2124
* Bug 384543 – FcFontMatch misuseBehdad Esfahbod2006-12-245-8/+15
| | | | | | | | | | | | | | | | | 2006-12-23 Behdad Esfahbod <behdad@gnome.org> Bug 384543 – FcFontMatch misuse * pango/pangofc-fontmap.c (pango_fc_face_describe): Call FcConfigSubstitute and FcDefaultSubstitute before calling FcFontMatch. * pango/pangoft2.c (load_fallback_face): Call _pango_ft2_font_map_default_substitute(). * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_context_substitute): Handle the case of context == NULL.
* Improve docs.Behdad Esfahbod2006-12-241-1/+21
| | | | | | 2006-12-23 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (pango_language_get_default): Improve docs.
* Bug 326099 – Setting width, indentation and ellipsizing doesn't work asBehdad Esfahbod2006-12-192-3/+8
| | | | | | | | | | | | | 2006-12-19 Behdad Esfahbod <behdad@gnome.org> Bug 326099 – Setting width, indentation and ellipsizing doesn't work as I would expect * pango/ellipsize.c (_pango_layout_line_ellipsize): Account for indentation when deciding what width to ellipsize for. * pango/pango-layout.c (get_alignment): Don't bother about conditioning on the line direction for center alignment.
* Avoid some floating-point operations by caching the y value for theBehdad Esfahbod2006-12-181-8/+10
| | | | | | | | 2006-12-17 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs): Avoid some floating-point operations by caching the y value for the baseline, using it for glyphs having y_offset of 0.
* Bug 385478 – Fix tests on OPD platformFrederic Crozat2006-12-161-1/+1
| | | | | | | | | 2006-12-15 Frederic Crozat <fcrozat@mandriva.com> Bug 385478 – Fix tests on OPD platform * pango/check.defs: Fix tests on OPD platform to report correct symbols name.
* Bug 319808 – Patch to let pango support artifical italic, bold and boldBehdad Esfahbod2006-12-131-19/+84
| | | | | | | | | | | | 2006-12-13 Behdad Esfahbod <behdad@gnome.org> Bug 319808 – Patch to let pango support artifical italic, bold and bold italic styles for the fonts which don't have these styles. Patch from James Su * pango/pangofc-fontmap.c (pango_fc_face_describe), (create_face), (pango_fc_family_list_faces): Create fake Bold, Italic, and Bold Italic faces for fonts that do not have one.
* Bug 385478 – Fix tests on OPD platformGwenole Beauchesne2006-12-131-2/+7
| | | | | | | | | 2006-12-13 Gwenole Beauchesne <gbeauchesne@mandriva.com> Bug 385478 – Fix tests on OPD platform * pango/check.defs: Improve symbols extraction for OPD-based platforms (e.g. ppc64, ia64).
* Cache layout ink and logical extents.Behdad Esfahbod2006-12-072-35/+50
| | | | | | | | | | | | 2006-12-07 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout-private.h: * pango/pango-layout.c (pango_layout_get_extents_internal), (pango_layout_get_extents), (pango_layout_clear_lines), (pango_layout_line_leaked), (pango_layout_line_get_extents), (pango_layout_iter_copy), (pango_layout_get_iter), (pango_layout_iter_get_layout_extents): Cache layout ink and logical extents.
* New generated public header file pango-features.h. Currently contains theBehdad Esfahbod2006-12-0710-19/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-06 Behdad Esfahbod <behdad@gnome.org> * configure.in: * pango/Makefile.am: New generated public header file pango-features.h. Currently contains the version information. In the future, can be expanded to define which backends have been enabled, etc. * pango/pango.def: * pango/pango-utils.h: * pango/pango-utils.c: New public macros and functions: PANGO_VERSION_ENCODE(), PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR, PANGO_VERSION_MICRO, PANGO_VERSION, PANGO_VERSION_STRING, PANGO_VERSION_CHECK(), pango_version(), pango_version_string(), pango_version_check(). * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/pango-version.sgml: Docs for new symbols, in a new section. * examples/renderdemo.c (show_version): If run-time Pango lib version is different than the compile-time one, show that one too. * pango/pango.h: #include <pango-utils.h> as well as almost all other public pango-*.h headers (though, the other ones were already included indirectly). The only public pango-*.h header pango.h shouldn't include are pango-ot.h (which is really misnamed) and pango-modules.h (that should not be needed by 99.99% users anyway). * docs/Makefile.am: * docs/check.docs: Test to check that all symbols are documented and properly hooked into documentation tree. * pango/pango.rc.in: * pango/pangoft2.rc.in: * pango/pangowin32.rc.in: Update, reflecting some internal symbol changes. * pango/check.defs: Improve.
* Set context language to pango_language_get_default() instead of hardcodingBehdad Esfahbod2006-12-061-3/+6
| | | | | | | | | 2006-12-06 Behdad Esfahbod <behdad@gnome.org> * examples/renderdemo.c (do_output): Set context language to pango_language_get_default() instead of hardcoding "en-US". * pango/pango-utils.c (pango_language_get_default): Improve docs.
* Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used PatchBehdad Esfahbod2006-12-064-1/+96
| | | | | | | | | | | | | | | | | | | | | 2006-12-06 Behdad Esfahbod <behdad@gnome.org> Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used Patch from LingNing Zhang * docs/pango-sections.txt: * docs/tmpl/utils.sgml: * pango/pango-context.c: * pango/pango-types.h: * pango/pango-utils.c (_pango_get_lc_ctype), (pango_language_get_default): * pango/pango.def: New public function pango_language_get_default(). Note that, this does not make Pango fallback to the default language automatically, but the user can use this function to set the default language of the locale on a context: pango_context_set_language (context, pango_language_get_default());
* Bug 373856 – Wish: Function to convert a GdkColor to a string Patch fromBehdad Esfahbod2006-12-063-0/+24
| | | | | | | | | | | | | | 2006-12-06 Behdad Esfahbod <behdad@gnome.org> Bug 373856 – Wish: Function to convert a GdkColor to a string Patch from Matthew Barnes * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: * pango/pango-attributes.h: * pango/pango.def: * pango/pango-color.c (pango_color_to_string): New public function pango_color_to_string().