summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Oops. Fix typo in docs.PANGO_1_11_5Behdad Esfahbod2006-02-111-1/+1
|
* Docs rebuilt.Behdad Esfahbod2006-02-111-0/+9
|
* === Released 1.11.5 ===Behdad Esfahbod2006-02-113-1/+17
| | | | | | | | | | 2006-02-11 Behdad Esfahbod <behdad@gnome.org> * === Released 1.11.5 === * configure.in: Version 1.11.5 * NEWS: Updated.
* Rename the recently added pango_win32_pango_font_description_from_logfont()Tor Lillqvist2006-02-105-10/+14
| | | | | to pango_win32_font_description_from_logfont(). Add it to pangowin32.def and pango-sections.txt, too.
* Add Since: info to the doc comment for the function just added.Tor Lillqvist2006-02-101-0/+2
|
* Fix #135098 and #322510.Tor Lillqvist2006-02-103-97/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-10 Tor Lillqvist <tml@novell.com> Fix #135098 and #322510. * pango/pangowin32-fontmap.c (case_insensitive_hash) (case_insensitive_equal): New helper functions for string hashing based on ASCII case insensitivity. (logfont_nosize_hash): Use case_insensitive_hash(). (logfont_nosize_equal): Use case_insensitive_equal(). (pango_win32_font_map_init): Use the case-insensitive functions for the PangoWin32FontMap::families hash table. (pango_win32_font_map_load_font): Consequently we don't need to lowercase the name before looking up from the hash table. (get_family_name): Constify parameter. (get_family_name_lowercase): Not needed any longer. (pango_win32_pango_font_description_from_logfont): New public function. Code moved from pango_win32_insert_font(). Use family name as such, don't lowercase it. (pango_win32_insert_font): Use the above new function. Don't bother looking for superfluos copies of the font entry as that shouldn't ever happen. We have pruned out fonts that differ only in charset already earlier. * pango/pangowin32.h: Declare pango_win32_pango_font_description_from_logfont().
* Bug 330602 – pango_parse_weight Reported by Morten Welinder.Behdad Esfahbod2006-02-102-1/+9
| | | | | | | | | | 2006-02-09 Behdad Esfahbod <behdad@gnome.org> Bug 330602 – pango_parse_weight Reported by Morten Welinder. * pango/pango-utils.c (pango_parse_weight): Pass 10 as base to strtol.
* Bug 314548 – pango_shape() is missing const correctness Patch fromBehdad Esfahbod2006-02-0919-24/+37
| | | | | | | | | | | | | | | | | | 2006-02-09 Behdad Esfahbod <behdad@gnome.org> Bug 314548 – pango_shape() is missing const correctness Patch from Antoine Dopffer. * modules/arabic/arabic-fc.c, modules/basic/basic-fc.c, modules/basic/basic-x.c, modules/hangul/hangul-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-shaper.c, modules/thai/thai-shaper.h, modules/tibetan/tibetan-fc.c, pango/pango-context.c, pango/pango-engine-private.h, pango/pango-engine.c, pango/pango-engine.h, pango/pango-glyph.h pango/pango-layout.c, pango/shape.c: Make PangoAnalysis *analysis const in all shaper interfaces.
* Add basic-atsui to basic_modulesAnders Carlsson2006-02-082-1/+5
| | | | | | 2006-02-08 Anders Carlsson <andersca@imendio.com> * configure.in: Add basic-atsui to basic_modules
* Add bits for Emacs and Vim to note UTF-8 encoding...Behdad Esfahbod2006-02-086-1/+30
|
* Updated.Behdad Esfahbod2006-02-081-1/+3
|
* Bug 330146 – pango-view --help should list available backends Patch fromBehdad Esfahbod2006-02-082-17/+71
| | | | | | | | | 2006-02-08 Behdad Esfahbod <behdad@gnome.org> Bug 330146 – pango-view --help should list available backends Patch from Antoine Dopffer. * examples/renderdemo.c: Show backends in --help output.
* Change Unicode copyright sign to ASCII. Reported by Werner LEMBERG.Behdad Esfahbod2006-02-082-2/+2
|
* Revert mistakenly committed stuff.Behdad Esfahbod2006-02-081-13/+0
|
* Bug 330289 – Fix build with gcc 2.95 (pangox.c)Behdad Esfahbod2006-02-087-27/+63
| | | | | | | | 2006-02-07 Behdad Esfahbod <behdad@gnome.org> Bug 330289 – Fix build with gcc 2.95 (pangox.c) * pango/pangox.c (get_subfonts_foreach): Fixed.
* Oops, forgot to commit yesterday. :(Behdad Esfahbod2006-02-073-3/+26
| | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> * === Released 1.11.4 === * configure.in: Version 1.11.4 * NEWS: Updated.
* Initialise GError pointer to NULL. Use waitpid() only on Unix.Tor Lillqvist2006-02-072-2/+10
| | | | | | | 2006-02-07 Tor Lillqvist <tml@novell.com> * examples/viewer-main.c (main): Initialise GError pointer to NULL. Use waitpid() only on Unix.
* Drop the timestamp from the zipfile names.Tor Lillqvist2006-02-072-2/+6
| | | | | | 2006-02-07 Tor Lillqvist <tml@novell.com> * pango-zip.sh.in: Drop the timestamp from the zipfile names.
* Cosmetic.Behdad Esfahbod2006-02-061-4/+4
|
* As cairo 1.2 seems to be delayed infinitely, make all cairo HEAD API thatPANGO_1_11_4Behdad Esfahbod2006-02-063-1/+47
| | | | | | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> As cairo 1.2 seems to be delayed infinitely, make all cairo HEAD API that we use conditional, to make a release. * configure.in: Depend on cairo 1.0.0 again. Check for cairo_scaled_font_get_*() and cairo_scaled_font_text_extents() availability. * pango/pangocairo-font.c: Work around if the above functions are not available.
* If NULL is passed to _copy, return NULL with no warning. If NULL is passedBehdad Esfahbod2006-02-066-22/+100
| | | | | | | | | | | | | | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (pango_matrix_copy, pango_matrix_free): If NULL is passed to _copy, return NULL with no warning. If NULL is passed to _free, do nothing with no warning. Docs updated. * examples/viewer-pangoxft.c (render_callback): Multiply x,y by PANGO_SCALE, as pango_xft_render_layout takes coordinates in Pango units weirdly enough. * viewer-pangocairo.c (render_callback): Do cairo_translate, to draw correct bounding boxes for x,y nonzero. * examples/renderdemo.c (do_output): If context has an all-zero matrix set, interpret it as backend does not support transformation, so warn on --rotate, and do not try to rotate. * examples/viewer-pangox.c (pangox_view_get_context): Set an all-zero matrix on context, to negotiate that we don't support transformations.
* Bug 328067 – Install pango-viewBehdad Esfahbod2006-02-0626-1359/+1619
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> Bug 328067 – Install pango-view Added a rather generic framework for a pango-view example. All backends have their own pango*-view built, and a pango-view binary is built too, that can choose backend via --backend. This one is installed in bindir. * examples/Makefile.am: Updated, to build pangox-view, pangoft2-view, pangoxft-view, pangocairo-view, and pango-view. * examples/viewer.h, examples/viewer-x.c, examples/viewer-x.h examples/viewer-cairo.c, examples/viewer-cairo.h, examples/viewer-main.c, examples/viewer-pangox.c, examples/viewer-pangoft2.c, examples/viewer-pangoxft.c, examples/viewer-pangocairo.c, examples/pango-view.c, examples/pango-xview.c, examples/pango-ft2view.c, examples/pango-xftview.c, examples/pango-cairoview.c: Added. * examples/cairoview.c, examples/xftview.c, examples/pangoft2topgm.c, examples/viewer-qt.cc, examples/viewer-qt.h: Removed. * configure.in: Check for Cairo Xlib backend, also AC_DEFINE various backend bits.
* Warn only once per font-description that cannot be loaded.Behdad Esfahbod2006-02-066-49/+122
| | | | | | | | | | 2006-02-06 Behdad Esfahbod <behdad@gnome.org> * pango/pango-fontmap.c (pango_font_map_real_load_fontset): Warn only once per font-description that cannot be loaded. * pango/pangox.c: Make it not crash if no font found, like other backends.
* AC_DEFINE various version components.Behdad Esfahbod2006-02-059-13/+21
| | | | | | | | 2006-02-05 Behdad Esfahbod <behdad@gnome.org> * configure.in: AC_DEFINE various version components. * *.c: Change various const return types to G_CONST_RETURN.
* Bug 324408 – tab can result in 0 charactersBehdad Esfahbod2006-02-052-4/+13
| | | | | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> Bug 324408 – tab can result in 0 characters * pango/pango-layout.c (shape_tab): Make sure there is at least an space-width of space between tab-aligned text and the text before it.
* Bug 329528 – implement --wrap in examples/renderdemo.c Patch fromBehdad Esfahbod2006-02-052-21/+68
| | | | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> Bug 329528 – implement --wrap in examples/renderdemo.c Patch from Antoine Dopffer. * examples/renderdemo.c: Add --wrap option.
* Change PANGO_GLYPH_EMPTY to 0x0FFFFFFF, to not overlap withBehdad Esfahbod2006-02-0523-37/+104
| | | | | | | | | | | | | | | | | | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h: Change PANGO_GLYPH_EMPTY to 0x0FFFFFFF, to not overlap with PANGO_GLYPH_UNKNOWN_FLAG (0x10000000). Define PANGO_GET_UNKNOWN_GLYPH(wc) that simply returns wc|PANGO_GLYPH_UNKNOWN_FLAG. * docs/pango-sections.txt, docs/tmpl/glyphs.sgml: Document new symbols. * modules/*/*.c: Use PANGO_GET_UNKNOWN_GLYPH instead of various backend-specific functions. * pango/pangofc-font.c, pango/pangoft.c, pango/pangoxft-font.c, * pango/pangowin32.c, pango/pangox.c: Suggest using PANGO_GET_UNKNOWN_GLYPH in docs. * pango/pangofc-font.h: Deprecate pango_fc_font_get_unknown_glyph(). * pango/pangowin32.h: Deprecate pango_win32_get_unknown_glyph().
* Move the FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.Behdad Esfahbod2006-02-043-13/+23
| | | | | | | 2006-02-04 Behdad Esfahbod <behdad@gnome.org> * pango/pangoft2.c, pango/pangoft2-render.c: Move the FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.
* AC_DEFINE the module version, such that pango-querymodules gets rebuiltBehdad Esfahbod2006-02-033-1/+10
| | | | | | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * configure.in: AC_DEFINE the module version, such that pango-querymodules gets rebuilt after module version update. * pango/Makefile.am: Do not set -DMODULE_VERSION.
* Bump pango_module_version to 1.5.0.Behdad Esfahbod2006-02-032-1/+5
| | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * configure.in: Bump pango_module_version to 1.5.0.
* Distribute autogen.sh.Behdad Esfahbod2006-02-032-0/+5
| | | | | | 2006-02-03 Behdad Esfahbod <behdad@gnome.org> * Makefile.am: Distribute autogen.sh.
* Add an LRM instead of RLM in Yiddish sample.Behdad Esfahbod2006-02-031-2/+2
|
* Updated.Behdad Esfahbod2006-02-031-3/+3
|
* Finish the 'glyph 0' work of this morning: PANGO_GLYPH_NULL that IBehdad Esfahbod2006-02-0337-421/+661
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> Finish the 'glyph 0' work of this morning: PANGO_GLYPH_NULL that I introduced is renamed to PANGO_GLYPH_EMPTY. It means, no rendering should be performed. The backends however, still return 0 if a glyph is not found. The modules then are free to replace this 0 glyph with an unknown character. * modules/arabic/arabic-fc.c, modules/basic/basic-atsui.c, modules/basic/basic-fc.c, modules/basic/basic-win32.c, modules/basic/basic-x.c, modules/hangul/hangul-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-fc.c, modules/tibetan/tibetan-fc.c, pango/pangox.c, pango/pangowin32.c: Adapt to above change. Backends return 0 if glyph not found. * pango/fonts.c (pango_font_get_glyph_extents): If font is not usable (!PANGO_IS_FONT (font)), return the generic UNKNOWN_GLYPH metrics. This is used when your backends are misconfigured and you don't find *any* font at all. * pango/pango-engince.c: Add unknown glyphs in fallback shaper, instead of empty glyphs. * pango/shape.c: Call the fall-back shaper if shaper fails, instead of generating a dummy glyph string ourselves. * pango/pango-layout.c (imposed_shape, shape_tab): Use PANGO_GLYPH_EMPTY instead of glyph 0. * pango/pango-renderer.c (pango_renderer_draw_glyph): No-op on PANGO_GLYPH_EMPTY instead of glyph 0. * pango/pangocairo-atsuifont.c, pango/pangocairo-win32font.c, pango/pangocairo-fcfont.c, pango/pangocairo-font.c, pango/pangocairo-private.h: install_font returns a boolean now. * pango/pangocairo-render.c, pango/pangoxft-render.c: Handle font and hex-box failures more gracefully by drawing a generic unknown-box glyph. * pango/pangoft2.c, pango/pangoft2-render.c: Draw the generic unknown-box glyph here too. For unknown glyphs though, if the font is TTF (FT_IS_SFNT), use the zero-indexed glyph, otherwise, draw a box of proper size.
* Rename _pango_cairo_get_hex_box_info to _pango_cairo_font_get_hex_box_info.Behdad Esfahbod2006-02-023-4/+4
|
* Move PANGO_UNKNOWN_GLYPH_WIDTH/HEIGHT to pango-font.h, which makesBehdad Esfahbod2006-02-025-9/+6
| | | | more sense.
* Do unknown glyph extents here too.Behdad Esfahbod2006-02-022-2/+16
| | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pangoft2.c: Do unknown glyph extents here too.
* Guard Xft backend agains crashes too.Behdad Esfahbod2006-02-024-22/+72
| | | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pangoxft-font.c, pango/pangoxft-render.c: Guard Xft backend agains crashes too.
* Oops!Behdad Esfahbod2006-02-021-1/+0
|
* Use PANGO_GLYPH_NULL for when no glyph should be drawn. UseBehdad Esfahbod2006-02-0230-153/+205
| | | | | | | | | | | | | | | | | | | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * modules/arabic/arabic-fc.c, modules/basic/basic-atsui.c, modules/basic/basic-fc.c, modules/basic/basic-win32.c, modules/basic/basic-x.c, modules/hangul/hangul-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-fc.c, modules/tibetan/tibetan-fc.c, pango/fonts.c, pango/pango-engine-private.h pango/pango-types.h, pango/pangocairo-fcfont.c, pango/pangocairo-font.c, pango/pangocairo-private.h, pango/pangocairo-render.c, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangoft2-render.c, pango/pangoft2.c pango/pangowin32.c, pango/pangox.c, pango/pangoxft-font.c pango/pangoxft-private.h, pango/pangoxft-render.c, pango/shape.c: Use PANGO_GLYPH_NULL for when no glyph should be drawn. Use PANGO_GLYPH_UNKNOWN_FLAG for all backends to mark unknown flags. There's no need for pango_font_get_unknown_glyph() anymore, since all backends know how to handle PANGO_GLYPH_UNKNOWN_FLAG gracefully. We may add that in the future however. (fixes bug #73147, closes bug #329524)
* Fix GKeyFile transition.Behdad Esfahbod2006-02-022-20/+24
| | | | | | 2006-02-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c (read_config_file): Fix GKeyFile transition.
* AC_DEFINE (HAVE_CAIRO_PNG).Behdad Esfahbod2006-02-0210-11/+33
| | | | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * configure.in: AC_DEFINE (HAVE_CAIRO_PNG). * examples/cairoview.c: Save to PNG if cairo has PNG support and --output is given.
* For mini_font, set family to "monospace", not "mono-space" which didn'tBehdad Esfahbod2006-02-022-1/+6
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c: For mini_font, set family to "monospace", not "mono-space" which didn't work!
* Add a default_substitute function to set correct dpi on the pattern.Behdad Esfahbod2006-02-026-7/+25
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * examples/xftview.c: Add a default_substitute function to set correct dpi on the pattern.
* Driver for X-based viewer. Used by pangocairo-view and pangoxft-viewBehdad Esfahbod2006-02-019-326/+377
| | | | | | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * examples/viewer-x.c, examples/viewer-x.h: Driver for X-based viewer. Used by pangocairo-view and pangoxft-view currently. * examples/Makefile.am, examples/cairoview.c, examples/xftview.c, examples/pangoft2topgm.c, examples/renderdemo.h, examples/renderdemo.c: Adjust to the above change.
* Removed.Behdad Esfahbod2006-02-012-709/+4
| | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * examples/viewer.c: Removed.
* Some fruitless try to bring it up-to-date.Behdad Esfahbod2006-02-011-18/+18
|
* Initialize warning history structs more explicitly. (bug #329459)Behdad Esfahbod2006-02-015-6/+13
| | | | | | | 2006-02-01 Behdad Esfahbod <behdad@gnome.org> * pango/pango-utils.c, pango/pangocairo-font.c: Initialize warning history structs more explicitly. (bug #329459)
* Removed/renamed.Behdad Esfahbod2006-02-019-368/+62
| | | | | | | | | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * examples/syriac.utf, examples/tibetan.utf, examples/muru.utf, examples/dev-example.utf: Removed/renamed. * examples/test-arabic.txt, examples/test-devanagari.txt, examples/test-ipa.txt, test-syriac.txt, test-tamil.txt, test-tibetan.txt: Added. * examples/Makefie.am: Change pango-cairoview, pango-xftview, pangoft2topgm to pangocairo-view, pangoxft-view, and pangoft2-topgm respectively.
* Use cairo_scaled_font_text_extents instead of cairo_text_extents.Behdad Esfahbod2006-02-012-15/+7
| | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c (_pango_cairo_get_hex_box_info): Use cairo_scaled_font_text_extents instead of cairo_text_extents.