summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Uniscribe is optional only at run-time.Tor Lillqvist2007-03-101-3/+3
| | | | | | | | | 2007-03-10 Tor Lillqvist <tml@novell.com> * README: Uniscribe is optional only at run-time. svn path=/trunk/; revision=2212
* Uniscribe is not optional.Tor Lillqvist2007-03-101-3/+3
| | | | | | | | | 2007-03-10 Tor Lillqvist <tml@novell.com> * README: Uniscribe is not optional. svn path=/trunk/; revision=2211
* An ISO639 code is always in ASCII, no need to call the wide-characterTor Lillqvist2007-03-071-10/+1
| | | | | | | | | | | 2007-03-07 Tor Lillqvist <tml@novell.com> * modules/basic/basic-win32.c: An ISO639 code is always in ASCII, no need to call the wide-character version of GetLocaleInfo(). svn path=/trunk/; revision=2210
* configure.in modules/basic/Makefile.am Make building with Uniscribe (usingTor Lillqvist2007-03-074-282/+52
| | | | | | | | | | | | | | | | | | | | | | | | 2007-03-07 Tor Lillqvist <tml@novell.com> * configure.in * modules/basic/Makefile.am * modules/basic/basic-win32.c: Make building with Uniscribe (using the <usp10.h> header) mandatory. Mingw's w32api headers do include usp10.h now so one doesn't need to copy it from the Platform SDK any longer. At runtime using Uniscribe is still optional, depending on whether usp10.dll is found or not. I think it isn't necessarily present on Windows 2000 machines, for instance. * modules/basic/basic-win32.c (lang_name): Instead of a hardcoded case statement, use GetLocaleInfo() to get the language ISO639 code. (charset_name): Remove, unused. (itemize_shape_and_place, uniscribe_shape, basic_engine_shape): Constify the PangoAnalysis parameter to match the prototype of PangoEngineShapeClass::script_shape(). svn path=/trunk/; revision=2209
* Bug 414297 – Fails to build with --enable-static --with-included-modulesBehdad Esfahbod2007-03-032-0/+10
| | | | | | | | | | | | | | 2007-03-03 Behdad Esfahbod <behdad@gnome.org> Bug 414297 – Fails to build with --enable-static --with-included-modules in thai lang module Patch from Loïc Minier * modules/thai/Makefile.am: Include LIBTHAI_LIBS in static module too. svn path=/trunk/; revision=2207
* Bug 412654 – SED variable undefined in the `libtool --config' outputBehdad Esfahbod2007-02-272-0/+8
| | | | | | | | | | | | 2007-02-27 Behdad Esfahbod <behdad@gnome.org> Bug 412654 – SED variable undefined in the `libtool --config' output used by configure * configure.in: export SED before calling libtool svn path=/trunk/; revision=2206
* This change was supposed to go in the trunk before 1.16.0, but it didn'tTor Lillqvist2007-02-278-213/+590
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* === Released 1.16.0 ===PANGO_1_16_0Behdad Esfahbod2007-02-264-16/+32
| | | | | | | | | | | | | | | | | 2007-02-26 Behdad Esfahbod <behdad@gnome.org> * === Released 1.16.0 === * configure.in: Version 1.16.0 * configure.in: Require cairo 1.2.6 because of its important fixes. * NEWS: Updated. * README: Updated. svn path=/trunk/; revision=2202
* Xrefs for glib and cairo in the docs. Add object hierarchy to the docs.Stefan Kost2007-02-204-1/+21
| | | | | | | | * configure.in: * docs/Makefile.am: * docs/pango-docs.sgml: svn path=/trunk/; revision=2201
* Bug 409212 – Missing link flag prevents build with "-z defs" ld flagsBehdad Esfahbod2007-02-182-1/+8
| | | | | | | | | | | | 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 * configure.in: Add xrender to pkg-config requirements for pangoxft. svn path=/trunk/; revision=2200
* Bug 409212 – Missing link flag prevents build with "-z defs" ld flagsBehdad Esfahbod2007-02-182-0/+8
| | | | | | | | | | | | 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-172-13/+12
| | | | | | | | | | | | | 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
* Bug 407087 – autogen.sh wants automake-1.7Behdad Esfahbod2007-02-162-1/+7
| | | | | | | | | | | 2007-02-16 Behdad Esfahbod <behdad@gnome.org> Bug 407087 – autogen.sh wants automake-1.7 * autogen.sh: Require automake 1.9, like configure.in does. svn path=/trunk/; revision=2197
* === Released 1.15.6 ===PANGO_1_15_6Behdad Esfahbod2007-02-133-2/+19
| | | | | | | | | | | | | 2007-02-12 Behdad Esfahbod <behdad@gnome.org> * === Released 1.15.6 === * configure.in: Version 1.15.6 * NEWS: Updated. svn path=/trunk/; revision=2195
* If something has gone wrong in setting the family of the font description,Owen Taylor2007-02-132-1/+20
| | | | | | | | | | | | 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-312-0/+7
| | | | | | | | | | 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
* Include also the COPYING file in the zipfiles.Tor Lillqvist2007-01-302-0/+12
| | | | | | | | | 2007-01-30 Tor Lillqvist <tml@novell.com> * pango-zip.sh.in: Include also the COPYING file in the zipfiles. svn path=/trunk/; revision=2189
* Include just pango-zip.sh.in in the tarball, not pango-zip.sh.Tor Lillqvist2007-01-302-1/+6
| | | | | | | | | | 2007-01-30 Tor Lillqvist <tml@novell.com> * Makefile.am (EXTRA_DIST): Include just pango-zip.sh.in in the tarball, not pango-zip.sh. svn path=/trunk/; revision=2188
* Remove PANGO_IS_FONT() check. Just do NULL-checking.PANGO_1_14_10Behdad Esfahbod2007-01-252-3/+9
| | | | | | | | | | | 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-232-0/+13
| | | | | | | | | | | | | 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
* === Released 1.15.5 ===PANGO_1_15_5Behdad Esfahbod2007-01-233-2/+18
| | | | | | | | | | | | | 2007-01-22 Behdad Esfahbod <behdad@gnome.org> * === Released 1.15.5 === * configure.in: Version 1.15.5 * NEWS: Updated. svn path=/trunk/; revision=2180
* Fix the "menu accels are two chars wide" bug that was introduced by theBehdad Esfahbod2007-01-232-2/+9
| | | | | | | | | | | | 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-222-1/+18
| | | | | | | | | | 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
* Add AC_MSG_RESULT([no]) to the failed branch of PKG_CHECK_MODULES tests toTor Lillqvist2007-01-212-4/+10
| | | | | | | | | | | 2007-01-21 Tor Lillqvist <tml@novell.com> * configure.in: Add AC_MSG_RESULT([no]) to the failed branch of PKG_CHECK_MODULES tests to make the output from configure cleaner. svn path=/trunk/; revision=2177
* Bug 398238 – pangorc file missing from tests directoryBehdad Esfahbod2007-01-213-2/+10
| | | | | | | | | | | | | 2007-01-21 Behdad Esfahbod <behdad@gnome.org> Bug 398238 – pangorc file missing from tests directory * pango-view/Makefile.am: * tests/Makefile.am: Don't use $<. Doesn't work with Sun's make. svn path=/trunk/; revision=2176
* Require automake 1.9.Behdad Esfahbod2007-01-212-1/+5
| | | | | | | | | 2007-01-18 Behdad Esfahbod <behdad@gnome.org> * configure.in: Require automake 1.9. svn path=/trunk/; revision=2175
* Respect FC_HINT_STYLE. Patch has been in Fedora for ages.Behdad Esfahbod2007-01-182-2/+21
| | | | | | | | | | 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
* === Released 1.15.4 ===PANGO_1_15_4Behdad Esfahbod2007-01-183-1/+118
| | | | | | | | | | | | | 2007-01-17 Behdad Esfahbod <behdad@gnome.org> * === Released 1.15.4 === * configure.in: Version 1.15.4 * NEWS: Updated. svn path=/trunk/; revision=2172
* Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTYBehdad Esfahbod2007-01-172-1/+9
| | | | | | | | | | | | 2007-01-17 Behdad Esfahbod <behdad@gnome.org> Bug 395328 – Map kATSDeletedGlyphcode to PANGO_GLYPH_EMPTY * modules/basic/basic-atsui.c (set_glyph): Handle kATSDeletedGlyphcode. svn path=/trunk/; revision=2170
* Fix typo when rounding to points.Behdad Esfahbod2007-01-162-2/+7
| | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-render.c (make_layout): Fix typo when rounding to points. svn path=/trunk/; revision=2169
* Bug 397337 – Use is_ellipsized and is_wrapped to optimize propertyBehdad Esfahbod2007-01-162-2/+14
| | | | | | | | | | | | | | 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-1622-88/+92
| | | | | | | | | 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-1686-3051/+3055
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* Replace C++-style // comments with C-style /* */ ones.Behdad Esfahbod2007-01-163-218/+226
| | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/pangowin32tobmp.c (SaveBitmap): * modules/tibetan/tibetan-fc.c: Replace C++-style // comments with C-style /* */ ones. svn path=/trunk/; revision=2164
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-16130-3101/+3105
| | | | | | | | | 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-167-2/+95
| | | | | | | | | | | | | | | | | | | | | | | | 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-167-6/+74
| | | | | | | | | | | | | | | | | | | | | | | | 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-162-1/+9
| | | | | | | | | | | | | 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-163-10/+35
| | | | | | | | | | | | | | | | | | | 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
* Improve text-on-path example.Behdad Esfahbod2007-01-162-24/+81
| | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (point_on_path), (draw_text), (draw_twisted), (draw_dream), (draw_wow), (main): Improve text-on-path example. svn path=/trunk/; revision=2156
* Generate .bz2 tarball instead of .gz.Behdad Esfahbod2007-01-162-1/+25
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * configure.in: Generate .bz2 tarball instead of .gz. svn path=/trunk/; revision=2154
* Rename renderdemo.[ch] to viewer-render.[ch].Behdad Esfahbod2007-01-1611-25/+25
| | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango-view/Makefile.am: * pango-view/renderdemo.c: * pango-view/renderdemo.h: * pango-view/viewer-main.c: * pango-view/viewer-pangocairo.c: * pango-view/viewer-pangoft2.c: * pango-view/viewer-pangox.c: * pango-view/viewer-pangoxft.c: * pango-view/viewer-render.c: * pango-view/viewer-render.h: * pango-view/viewer-x.c: Rename renderdemo.[ch] to viewer-render.[ch]. svn path=/trunk/; revision=2153
* Move into pango-view/Behdad Esfahbod2007-01-1638-178/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/pango-view.c: * examples/pangocairo-view.c: * examples/pangoft2-view.c: * examples/pangox-view.c: * examples/pangoxft-view.c: * examples/renderdemo.c: * examples/renderdemo.h: * examples/test-arabic.txt: * examples/test-chinese.txt: * examples/test-devanagari.txt: * examples/test-gurmukhi.txt: * examples/test-hebrew.txt: * examples/test-ipa.txt: * examples/test-lao.txt: * examples/test-latin.txt: * examples/test-mixed.txt: * examples/test-syriac.txt: * examples/test-tamil.txt: * examples/test-thai.txt: * examples/test-tibetan.txt: * examples/viewer-cairo.c: * examples/viewer-cairo.h: * examples/viewer-main.c: * examples/viewer-pangocairo.c: * examples/viewer-pangoft2.c: * examples/viewer-pangox.c: * examples/viewer-pangoxft.c: * examples/viewer-win32.c: * examples/viewer-x.c: * examples/viewer-x.h: * examples/viewer.h: Move into pango-view/ * Makefile.am: * configure.in: * examples/Makefile.am: * pango-view/Makefile.am: Update. svn path=/trunk/; revision=2152
* Oops. Replace GType* with GType.Behdad Esfahbod2007-01-162-1/+5
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/renderdemo.c (parse_enum): Oops. Replace GType* with GType. svn path=/trunk/; revision=2151
* Bug 363510 – Ability to query whether a PangoLayout is effectivelyBehdad Esfahbod2007-01-168-5/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-162-1/+6
| | | | | | | | | | 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-162-13/+17
| | | | | | | | | | | 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-166-6/+20
| | | | | | | | | | | | | | | | 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-1614-401/+587
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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