Tor Lillqvist [Fri, 10 Feb 2006 12:57:02 +0000 (12:57 +0000)]
Fix #135098 and #322510.
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().
Behdad Esfahbod [Fri, 10 Feb 2006 00:33:28 +0000 (00:33 +0000)]
Bug 330602 – pango_parse_weight Reported by Morten Welinder.
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.
Behdad Esfahbod [Thu, 9 Feb 2006 17:14:08 +0000 (17:14 +0000)]
Bug 314548 – pango_shape() is missing const correctness Patch from
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.
Anders Carlsson [Wed, 8 Feb 2006 14:37:34 +0000 (14:37 +0000)]
Add basic-atsui to basic_modules
2006-02-08 Anders Carlsson <andersca@imendio.com>
* configure.in: Add basic-atsui to basic_modules
Behdad Esfahbod [Wed, 8 Feb 2006 10:18:06 +0000 (10:18 +0000)]
Add bits for Emacs and Vim to note UTF-8 encoding...
Behdad Esfahbod [Wed, 8 Feb 2006 08:06:08 +0000 (08:06 +0000)]
Updated.
Behdad Esfahbod [Wed, 8 Feb 2006 08:03:18 +0000 (08:03 +0000)]
Bug 330146 – pango-view --help should list available backends Patch from
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.
Behdad Esfahbod [Wed, 8 Feb 2006 04:27:06 +0000 (04:27 +0000)]
Change Unicode copyright sign to ASCII. Reported by Werner LEMBERG.
Behdad Esfahbod [Wed, 8 Feb 2006 01:58:59 +0000 (01:58 +0000)]
Revert mistakenly committed stuff.
Behdad Esfahbod [Wed, 8 Feb 2006 01:43:59 +0000 (01:43 +0000)]
Bug 330289 – Fix build with gcc 2.95 (pangox.c)
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.
Behdad Esfahbod [Tue, 7 Feb 2006 12:14:08 +0000 (12:14 +0000)]
Oops, forgot to commit yesterday. :(
2006-02-06 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.4 ===
* configure.in: Version 1.11.4
* NEWS: Updated.
Tor Lillqvist [Tue, 7 Feb 2006 11:24:53 +0000 (11:24 +0000)]
Initialise GError pointer to NULL. Use waitpid() only on Unix.
2006-02-07 Tor Lillqvist <tml@novell.com>
* examples/viewer-main.c (main): Initialise GError pointer to
NULL. Use waitpid() only on Unix.
Tor Lillqvist [Tue, 7 Feb 2006 09:37:45 +0000 (09:37 +0000)]
Drop the timestamp from the zipfile names.
2006-02-07 Tor Lillqvist <tml@novell.com>
* pango-zip.sh.in: Drop the timestamp from the zipfile names.
Behdad Esfahbod [Mon, 6 Feb 2006 18:07:02 +0000 (18:07 +0000)]
Cosmetic.
Behdad Esfahbod [Mon, 6 Feb 2006 15:44:37 +0000 (15:44 +0000)]
As cairo 1.2 seems to be delayed infinitely, make all cairo HEAD API that
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.
Behdad Esfahbod [Mon, 6 Feb 2006 13:50:10 +0000 (13:50 +0000)]
If NULL is passed to _copy, return NULL with no warning. If NULL is passed
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.
Behdad Esfahbod [Mon, 6 Feb 2006 11:25:14 +0000 (11:25 +0000)]
Bug 328067 – Install pango-view
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.
Behdad Esfahbod [Mon, 6 Feb 2006 11:08:44 +0000 (11:08 +0000)]
Warn only once per font-description that cannot be loaded.
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.
Behdad Esfahbod [Sun, 5 Feb 2006 23:48:28 +0000 (23:48 +0000)]
AC_DEFINE various version components.
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.
Behdad Esfahbod [Sun, 5 Feb 2006 03:53:22 +0000 (03:53 +0000)]
Bug 324408 – tab can result in 0 characters
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.
Behdad Esfahbod [Sun, 5 Feb 2006 03:33:22 +0000 (03:33 +0000)]
Bug 329528 – implement --wrap in examples/renderdemo.c Patch from
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.
Behdad Esfahbod [Sun, 5 Feb 2006 03:11:58 +0000 (03:11 +0000)]
Change PANGO_GLYPH_EMPTY to 0x0FFFFFFF, to not overlap with
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().
Behdad Esfahbod [Sat, 4 Feb 2006 17:13:19 +0000 (17:13 +0000)]
Move the FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.
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.
Behdad Esfahbod [Fri, 3 Feb 2006 06:42:33 +0000 (06:42 +0000)]
AC_DEFINE the module version, such that pango-querymodules gets rebuilt
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.
Behdad Esfahbod [Fri, 3 Feb 2006 05:36:55 +0000 (05:36 +0000)]
Bump pango_module_version to 1.5.0.
2006-02-03 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Bump pango_module_version to 1.5.0.
Behdad Esfahbod [Fri, 3 Feb 2006 05:19:49 +0000 (05:19 +0000)]
Distribute autogen.sh.
2006-02-03 Behdad Esfahbod <behdad@gnome.org>
* Makefile.am: Distribute autogen.sh.
Behdad Esfahbod [Fri, 3 Feb 2006 04:40:25 +0000 (04:40 +0000)]
Add an LRM instead of RLM in Yiddish sample.
Behdad Esfahbod [Fri, 3 Feb 2006 03:09:10 +0000 (03:09 +0000)]
Updated.
Behdad Esfahbod [Fri, 3 Feb 2006 02:46:17 +0000 (02:46 +0000)]
Finish the 'glyph 0' work of this morning: PANGO_GLYPH_NULL that I
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.
Behdad Esfahbod [Thu, 2 Feb 2006 12:24:52 +0000 (12:24 +0000)]
Rename _pango_cairo_get_hex_box_info to _pango_cairo_font_get_hex_box_info.
Behdad Esfahbod [Thu, 2 Feb 2006 12:07:17 +0000 (12:07 +0000)]
Move PANGO_UNKNOWN_GLYPH_WIDTH/HEIGHT to pango-font.h, which makes
more sense.
Behdad Esfahbod [Thu, 2 Feb 2006 12:03:51 +0000 (12:03 +0000)]
Do unknown glyph extents here too.
2006-02-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoft2.c: Do unknown glyph extents here too.
Behdad Esfahbod [Thu, 2 Feb 2006 11:30:35 +0000 (11:30 +0000)]
Guard Xft backend agains crashes too.
2006-02-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoxft-font.c, pango/pangoxft-render.c: Guard Xft
backend agains crashes too.
Behdad Esfahbod [Thu, 2 Feb 2006 10:57:19 +0000 (10:57 +0000)]
Oops!
Behdad Esfahbod [Thu, 2 Feb 2006 10:52:49 +0000 (10:52 +0000)]
Use PANGO_GLYPH_NULL for when no glyph should be drawn. Use
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)
Behdad Esfahbod [Thu, 2 Feb 2006 10:11:23 +0000 (10:11 +0000)]
Fix GKeyFile transition.
2006-02-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-utils.c (read_config_file): Fix GKeyFile transition.
Behdad Esfahbod [Thu, 2 Feb 2006 02:13:08 +0000 (02:13 +0000)]
AC_DEFINE (HAVE_CAIRO_PNG).
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.
Behdad Esfahbod [Thu, 2 Feb 2006 02:01:41 +0000 (02:01 +0000)]
For mini_font, set family to "monospace", not "mono-space" which didn't
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!
Behdad Esfahbod [Thu, 2 Feb 2006 01:54:25 +0000 (01:54 +0000)]
Add a default_substitute function to set correct dpi on the pattern.
2006-02-01 Behdad Esfahbod <behdad@gnome.org>
* examples/xftview.c: Add a default_substitute function to set
correct dpi on the pattern.
Behdad Esfahbod [Wed, 1 Feb 2006 22:10:11 +0000 (22:10 +0000)]
Driver for X-based viewer. Used by pangocairo-view and pangoxft-view
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.
Behdad Esfahbod [Wed, 1 Feb 2006 17:10:29 +0000 (17:10 +0000)]
Removed.
2006-02-01 Behdad Esfahbod <behdad@gnome.org>
* examples/viewer.c: Removed.
Behdad Esfahbod [Wed, 1 Feb 2006 16:50:13 +0000 (16:50 +0000)]
Some fruitless try to bring it up-to-date.
Behdad Esfahbod [Wed, 1 Feb 2006 16:19:24 +0000 (16:19 +0000)]
Initialize warning history structs more explicitly. (bug #329459)
2006-02-01 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-utils.c, pango/pangocairo-font.c: Initialize warning
history structs more explicitly. (bug #329459)
Behdad Esfahbod [Wed, 1 Feb 2006 04:02:09 +0000 (04:02 +0000)]
Removed/renamed.
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.
Behdad Esfahbod [Wed, 1 Feb 2006 03:36:14 +0000 (03:36 +0000)]
Use cairo_scaled_font_text_extents instead of cairo_text_extents.
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.
Behdad Esfahbod [Wed, 1 Feb 2006 02:39:53 +0000 (02:39 +0000)]
Require cairo >= 1.1.1.
2006-01-31 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Require cairo >= 1.1.1.
Behdad Esfahbod [Wed, 1 Feb 2006 02:35:18 +0000 (02:35 +0000)]
pango/pangocairo-private.h, pango/pangocairo-font.c, Hint hexbox. Also
2006-01-31 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-private.h, pango/pangocairo-font.c,
* pango/pangocairo-render.c: Hint hexbox. Also draw a singl-row
hexbox for very small sizes.
Behdad Esfahbod [Tue, 31 Jan 2006 22:56:14 +0000 (22:56 +0000)]
Bug 328313 – Use GKeyFile for parsing pangorc Patch from Antoine
2006-01-31 Behdad Esfahbod <behdad@gnome.org>
Bug 328313 – Use GKeyFile for parsing pangorc
Patch from Antoine Dopffer.
* pango/pango-utils.c (read_config_file): Use GKeyFile to parse
config file.
Behdad Esfahbod [Tue, 31 Jan 2006 22:10:38 +0000 (22:10 +0000)]
Change to follow the "Email: email@address.com" pattern.
Behdad Esfahbod [Tue, 31 Jan 2006 19:50:27 +0000 (19:50 +0000)]
Improve documentation for functions allocating memory, on how the object
2006-01-31 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c, pango/glyphstring.c pango/pango-attributes.c
pango/pango-color.c, pango/pango-context.c
pango/pango-coverage.c, pango/pango-fontset.c
pango/pango-glyph-item.c, pango/pango-item.c
pango/pango-layout.c, pango/pango-ot-buffer.c
pango/pango-ot-info.c, pango/pango-ot-ruleset.c
pango/pango-script.c, pango/pango-tabs.c pango/pango-utils.c
pango/pangocairo-fcfontmap.c, pango/pangocairo-fontmap.c
pango/pangox-fontcache.c, pango/pangoxft-render.c:
Improve documentation for functions allocating memory,
on how the object should be freed.
Behdad Esfahbod [Tue, 31 Jan 2006 00:52:54 +0000 (00:52 +0000)]
=== Released 1.11.3 ===
2006-01-30 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.3 ===
* configure.in: Version 1.11.3
* NEWS: Updated.
Behdad Esfahbod [Tue, 31 Jan 2006 00:44:04 +0000 (00:44 +0000)]
Improve error handling in high-frequency functions: Only warn once.
2006-01-30 Behdad Esfahbod <behdad@gnome.org>
* pango/shape.c (pango_shape):
* pango/fonts.c (pango_font_get_glyph_extents):
* pango/pangocairo-font.c (_pango_cairo_font_install):
Improve error handling in high-frequency functions: Only warn
once.
* pango-impl-utils.h, pangoutils.h:
* pangocairo-private.h, pangocairo-font.c:
Add machinery for above: _pango_warning_history and
_pango_cairo_warning_history.
Behdad Esfahbod [Mon, 30 Jan 2006 23:57:25 +0000 (23:57 +0000)]
Oops, removed all my changes the other time :(
2006-01-30 Behdad Esfahbod <behdad@gnome.org>
Bug 328314 – Examples should use GOption instead of argcontext.c
Patch from Antoine Dopffer.
* examples/renderdemo.c: Use GOption for parsing cmd-line
options.
* examples/argcontext.c, examples/argcontext.h: Removed.
Behdad Esfahbod [Mon, 30 Jan 2006 23:17:55 +0000 (23:17 +0000)]
Bug 328314 – Examples should use GOption instead of argcontext.c Patch
2006-01-30 Behdad Esfahbod <behdad@gnome.org>
Bug 328314 – Examples should use GOption instead of argcontext.c
Patch from Antoine Dopffer.
* examples/renderdemo.c: Use GOption for parsing cmd-line
options.
* examples/renderdemo.c, examples/renderdemo.h: Removed.
Behdad Esfahbod [Mon, 30 Jan 2006 22:37:48 +0000 (22:37 +0000)]
Handle GSUB Lookup type 8, and ReverseChainContextualSubst table. (bug
2006-01-30 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/ftxgsub.c: Handle GSUB Lookup type 8,
and ReverseChainContextualSubst table. (bug #149696,
patch from Aamir Wali)
Behdad Esfahbod [Sun, 29 Jan 2006 23:06:59 +0000 (23:06 +0000)]
If locking font face failed, do not assert, just return zero glyphs with
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...
Behdad Esfahbod [Sun, 29 Jan 2006 22:57:34 +0000 (22:57 +0000)]
Do not crash if the (win32 typically) shaper fails. Bug #304702:
2006-01-29 Behdad Esfahbod <behdad@gnome.org>
Do not crash if the (win32 typically) shaper fails. Bug #304702:
* pango/pango-engine.c (_pango_engine_shape_shape): Set num_glyphs to
zero if failing.
* pango/pango-shape.c (pango_shape): Instead of crashing if the shaper
failed to produce any glyphs, print out a warning message containing
the name of the font, and mark the font such that we don't keep
printing warning for the same font. Moreover, inject one whitespace
glyph per character, so you just see nothing, but everything works
otherwise.
Behdad Esfahbod [Sun, 29 Jan 2006 20:58:40 +0000 (20:58 +0000)]
Do not crash if the (win32 typically) shaper fails. Bug #304702:
2006-01-29 Behdad Esfahbod <behdad@gnome.org>
Do not crash if the (win32 typically) shaper fails. Bug #304702:
* pango/pango-engine.c (_pango_engine_shape_shape): Set num_glyphs to
zero if failing.
* pango/pango-shape.c (pango_shape): Instead of crashing if the shaper
failed to produce any glyphs, print out a warning message containing
the name of the font, and mark the font such that we don't keep
printing warning for the same font.
Behdad Esfahbod [Sun, 29 Jan 2006 03:54:13 +0000 (03:54 +0000)]
Revert last patch again :(.
Behdad Esfahbod [Sun, 29 Jan 2006 02:47:58 +0000 (02:47 +0000)]
Create fake Bold, Italic, and Bold Italic faces for fonts that do not have
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* pangofc-fontmap.c: Create fake Bold, Italic, and Bold Italic faces
for fonts that do not have one. (bug #319808, James Su)
Behdad Esfahbod [Sun, 29 Jan 2006 02:14:14 +0000 (02:14 +0000)]
Removed.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* .cvsusers: Removed.
Behdad Esfahbod [Sun, 29 Jan 2006 00:55:24 +0000 (00:55 +0000)]
Reverted the tab alignments patch.
Behdad Esfahbod [Sat, 28 Jan 2006 23:44:38 +0000 (23:44 +0000)]
Fixed incomplete entry.
Behdad Esfahbod [Sat, 28 Jan 2006 23:14:05 +0000 (23:14 +0000)]
Implement other tab alignments. Bug #325547, Itai Bar-Haim.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
Implement other tab alignments. Bug #325547, Itai Bar-Haim.
* docs/tmpl/tab-stops.sgml: Documented new tab alignment enum vals.
* pango/pango-tabs.h, pango/pango-tabs.c: Added support for tab
alignments PANGO_TAB_RIGHT and PANGO_TAB_CENTER.
* examples/renderdemo.h, examples/renderdemo.c: Added support for
--tab-spec.
* examples/GLASS.utf8, examples/HELLO.utf8: Cleaned up tabs.
Behdad Esfahbod [Sat, 28 Jan 2006 21:55:25 +0000 (21:55 +0000)]
Document PangoOTBuffer and PangoOTGlyph.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* doc/tmpl/opentype.sgml: Document PangoOTBuffer and PangoOTGlyph.
* pango/pango-ot-buffer.c, pango/pango-ot-info.c,
pango/pango-ot-ruleset.c: Document remaining symbols.
Behdad Esfahbod [Sat, 28 Jan 2006 20:52:51 +0000 (20:52 +0000)]
Removed.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/pango-ot-*: Removed.
* pango/pango-ot-*: Added.
* pango/Makefile.am, pango/opentype/Makefile.am, doc/Makefile.am:
Adjusted.
Behdad Esfahbod [Sat, 28 Jan 2006 20:29:18 +0000 (20:29 +0000)]
Removed.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/pango-ot-*: Removed.
* pango/pango-ot-*: Added.
* pango/Makefile.am, pango/opentype/Makefile.am: Adjusted.
Behdad Esfahbod [Sat, 28 Jan 2006 20:02:01 +0000 (20:02 +0000)]
Documentation improvements.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* pango/pangofc-font.h, pango/pangoft2-render.c, pango/pangowin32.c,
pango/pangoxft-render.c, docs/tmpl/xft-fonts.sgml,
docs/tmp/atsui-fonts.sgml: Documentation improvements.
Behdad Esfahbod [Sat, 28 Jan 2006 17:05:32 +0000 (17:05 +0000)]
Use AC_HELP_STRING everywhere. Bump required version to 2.56.
2006-01-28 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Use AC_HELP_STRING everywhere. Bump required version
to 2.56.
* doc/tmpl/pango-renderer.sgml (PANGO_TYPE_RENDER_PART): Document it.
Behdad Esfahbod [Fri, 27 Jan 2006 19:14:29 +0000 (19:14 +0000)]
Remove pango.modules on uninstall. (bug #328869)
2006-01-27 Behdad Esfahbod <behdad@gnome.org>
* modules/Makefile.am: Remove pango.modules on uninstall. (bug
* #328869)
* pango/pango-fontmap.c, pango/pangocairo-*font.c: Better error
messages.
Behdad Esfahbod [Thu, 26 Jan 2006 20:33:49 +0000 (20:33 +0000)]
#include <modules.h>. (bug #328632)
2006-01-26 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoatsui-fontmap.c: #include <modules.h>. (bug #328632)
Behdad Esfahbod [Thu, 26 Jan 2006 18:47:53 +0000 (18:47 +0000)]
Fix more ATSUI stuff in build infrastructure. Sigh... (bug #328632)
2006-01-26 Behdad Esfahbod <behdad@gnome.org>
* pango/modules.h, pango/Makefile.am: Fix more ATSUI stuff in build
infrastructure. Sigh... (bug #328632)
Behdad Esfahbod [Wed, 25 Jan 2006 19:33:58 +0000 (19:33 +0000)]
If major.minor of required and available glib versions are the same, add
2006-01-25 Behdad Esfahbod <behdad@gnome.org>
* configure.in: If major.minor of required and available glib versions
are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617)
* */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
Behdad Esfahbod [Wed, 25 Jan 2006 19:23:39 +0000 (19:23 +0000)]
Declare int i! (bug #328632)
2006-01-25 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoatsui-fontmap.c (pango_atsui_family_class_init): Declare
int i! (bug #328632)
Behdad Esfahbod [Tue, 24 Jan 2006 16:10:11 +0000 (16:10 +0000)]
Improve docs to say it may return -1.
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* pango/pangolayout.c (pango_layout_get_width): Improve docs to say
it may return -1.
Behdad Esfahbod [Tue, 24 Jan 2006 15:51:57 +0000 (15:51 +0000)]
Change cwfont to cafont in a couple places.
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-atsuifont.c: Change cwfont to cafont in a couple
places.
Behdad Esfahbod [Tue, 24 Jan 2006 15:33:36 +0000 (15:33 +0000)]
Removed, not used for quite a while.
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* modules/indic/pango-indic-script.h: Removed, not used for quite a
while.
Behdad Esfahbod [Tue, 24 Jan 2006 15:12:30 +0000 (15:12 +0000)]
Removed based on an old ChangeLog entry saying: Remove pangoft2.aliases
2006-01-24 Behdad Esfahbod <behdad@gnome.org>
* examples/pangoft2.aliases: Removed based on an old ChangeLog entry
saying: Remove pangoft2.aliases from CVS/distribution; it is
no longer used. (#82736, Sven Neumann.)
Behdad Esfahbod [Mon, 23 Jan 2006 16:27:21 +0000 (16:27 +0000)]
Make tests/examples do use generated pango.modules. (bug #328291)
2006-01-23 Behdad Esfahbod <behdad@gnome.org>
Make tests/examples do use generated pango.modules. (bug #328291)
* examples/pangorc, tests/pangorc: Removed. Moved to modules/.
* examples/pangox.aliases: Removed. Moved to pango/.
* examples/Makefile.am, tests/Makefile.am: Remove pango.modules
creation stuff, copy pangorc from $(srcdir)/../modules/pangorc
insteadd.
* examples/renderdemo.c: Add --pangorc option, default to ./pangorc.
Setenv PANGO_RC_FILE to whatever pangorc file decided.
* tests/*.c: Setenv PANGO_RC_FILE to ./pangorc.
* pango/pangox.aliases: Added.
* pango/Makefile.am: Install pangox.aliases.
* modules/pangorc: Added.
* modules/Makefile.am: Create pango.modules. Added pangorc.
* modules/.cvsignore, examples/.cvsignore, tests/.cvsignore: Updated.
Behdad Esfahbod [Mon, 23 Jan 2006 12:43:36 +0000 (12:43 +0000)]
Set cluster only on base chars, like the Arabic module does.
2006-01-23 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c: Set cluster only on base chars, like the
Arabic module does.
* modules/indic/indic-fc.c: Draw an unknown glyph on missing glyphs,
like other modules do. (part of bug #326960, LingNing Zhang)
Behdad Esfahbod [Sun, 22 Jan 2006 19:21:02 +0000 (19:21 +0000)]
Added "Since:" in the doc example.
2006-01-22 Behdad Esfahbod <behdad@gnome.org>
* docs/TEXT/coding-style: Added "Since:" in the doc example.
Behdad Esfahbod [Sun, 22 Jan 2006 18:06:41 +0000 (18:06 +0000)]
Removed old file. Filed some bugs out of it.
2006-01-22 Behdad Esfahbod <behdad@gnome.org>
* TODO.xml: Removed old file. Filed some bugs out of it.
* Makefile.am (EXTRA_DIST): Removed TODO.xml.
Behdad Esfahbod [Sun, 22 Jan 2006 17:18:03 +0000 (17:18 +0000)]
Removed old file. Filed some bugs out of it.
2006-01-22 Behdad Esfahbod <behdad@gnome.org>
* TODO: Removed old file. Filed some bugs out of it.
Behdad Esfahbod [Sat, 21 Jan 2006 20:19:46 +0000 (20:19 +0000)]
Added.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* MAINTAINERS: Added.
* AUTHORS: Added myself to contributors.
* Makefile.am: Added MAINTAINERS to EXTRA_DIST.
Behdad Esfahbod [Sat, 21 Jan 2006 20:02:23 +0000 (20:02 +0000)]
Fix typo in docs.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fontmap.c (pango_cairo_context_get_font_options):
Fix typo in docs.
Behdad Esfahbod [Sat, 21 Jan 2006 19:58:28 +0000 (19:58 +0000)]
Fix docs.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-utils.c (pango_matrix_get_font_scale_factor): Fix docs.
Behdad Esfahbod [Sat, 21 Jan 2006 19:51:25 +0000 (19:51 +0000)]
Make matrix parameter const.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h, pango/pango-utils.h
(pango_matrix_get_font_scale_factor): Make matrix parameter const.
* pango/fonts.c, pango/pango-context.c, pango/pango-coverage.c,
pango/pango-fontset.c, pango/pango-layout.c, pango/pango-renderer.c,
pango/pango-types.h, pango/pango-utils.c,
pango/pangocairo-atsuifont.c, pango/pangofc-font.c,
pango/pangoft2-fontmap.c, pango/pangowin32-fontmap.c,
pango/pangowin32.c, pango/pangox-fontmap.c, pango/pangoxft-font.c:
Replace "Returns:" with "Return value:" in docs.
Behdad Esfahbod [Sat, 21 Jan 2006 19:40:08 +0000 (19:40 +0000)]
Finish ATSUI module work. Bug #322022, Matthias Clasen.
2006-01-21 Behdad Esfahbod <behdad@gnome.org>
Finish ATSUI module work. Bug #322022, Matthias Clasen.
* docs/tmpl/atsui-fonts.sgml: Added.
* docs/pango-docs.sgml: Updated to reflect above change.
* docs/pango-sections.txt: Updated to reflect above change and
also document Standard ATSUI symbols.
* pango/pangocairo-atsuifont.c
(pango_cairo_atsui_font_get_atsu_font_id): Add docs.
* pango/pangoatsui-fontmap.c: Register included ATSUI modules.
Behdad Esfahbod [Sat, 21 Jan 2006 19:39:08 +0000 (19:39 +0000)]
Small fixes.
2006-01-20 Behdad Esfahbod <behdad@gnome.org>
* examples/cairosimple.c: Small fixes.
Behdad Esfahbod [Fri, 20 Jan 2006 06:04:42 +0000 (06:04 +0000)]
Add a comment about using cairo_scaled_font_text_extents instead of
2006-01-20 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c (_pango_cairo_get_hex_box_info): Add a
comment about using cairo_scaled_font_text_extents instead of
cairo_text_extents.
Behdad Esfahbod [Mon, 16 Jan 2006 11:49:38 +0000 (11:49 +0000)]
=== Released 1.11.2 ===
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.2 ===
* configure.in: Version 1.11.2
* NEWS: Updated.
Behdad Esfahbod [Mon, 16 Jan 2006 10:53:28 +0000 (10:53 +0000)]
Move GLIB_CFLAGS before external libraries' CFLAGS. Some formatting
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/Makefile.am: Move GLIB_CFLAGS before external libraries'
CFLAGS. Some formatting changes too.
Behdad Esfahbod [Mon, 16 Jan 2006 10:43:44 +0000 (10:43 +0000)]
Adjust the order of *_CFLAGS to the same order known to work. (Fixes bug
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* docs/Makefile.am, examples/Makefile.am, pango/Makefile.am,
tests/Makefile.am: Adjust the order of *_CFLAGS to the same order
known to work. (Fixes bug #325588)
Behdad Esfahbod [Mon, 16 Jan 2006 10:28:12 +0000 (10:28 +0000)]
Fixes bug #314675, Brian Cameron.
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
Fixes bug #314675, Brian Cameron.
* configure.in: Handle uninstalled cairo.
* pangocairo-uninstalled.pc.in: Fix typo: libpangoxft->libpangocairo.
Behdad Esfahbod [Mon, 16 Jan 2006 10:14:24 +0000 (10:14 +0000)]
Remove unused variable clusterSave that was leaking too. (bug #316466,
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
* modules/indic/mprefixups.c (indic_mprefixups_apply): Remove unused
variable clusterSave that was leaking too. (bug #316466, Steve Grubbs)
Behdad Esfahbod [Mon, 16 Jan 2006 10:10:23 +0000 (10:10 +0000)]
Fixes bug #71414, allowing to disable building/installing modules.
2006-01-16 Behdad Esfahbod <behdad@gnome.org>
Fixes bug #71414, allowing to disable building/installing modules.
* configure.in: Add support for --with-dynamic-modules.
* */Makefile.am: Adapt to the above change.
Behdad Esfahbod [Sat, 14 Jan 2006 13:28:52 +0000 (13:28 +0000)]
Draw hexbox for cairo backend. Bug #313551. Based on patch by LingNing
2006-01-14 Behdad Esfahbod <behdad@gnome.org>
Draw hexbox for cairo backend. Bug #313551. Based on patch by
LingNing Zhang.
* pango/pangocairo-private.h (_PangoCairoFontIface): Add new methods:
get_font_face and get_scaled_font, and getters:
_pango_cairo_font_get_font_face, _pango_cairo_font_get_scaled_font.
* pango/pangocairo-private.h: Add _PangoCairoHexBoxInfo, and getter
_pango_cairo_get_hex_box_info, and
_pango_cairo_get_glyph_extents_missing.
* pango/pangocairo-fcfont.c, pango/pangocairo-atsuifont.c,
* pango/pangocairo-win32font.c: Export get_font_face and
get_scaled_font methods.
* pango/pangocairo-fcfont.c: Use
* _pango_cairo_get_glyph_extents_missing
on missing glyphs.
* pango/pangocairo-font.c: Implement _pango_cairo_font_get_font_face,
_pango_cairo_font_get_scaled_font, _pango_cairo_get_hex_box_info, and
_pango_cairo_get_glyph_extents_missing.
* pango/pangocairo-render.c
* (_pango_cairo_renderer_draw_unknown_glyph):
Added.
* pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
Cleaned up to use the added function above.
Behdad Esfahbod [Sat, 14 Jan 2006 07:00:13 +0000 (07:00 +0000)]
Make sure #include <config.h> is the first include in the file. (bug
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)
Behdad Esfahbod [Sat, 14 Jan 2006 06:37:44 +0000 (06:37 +0000)]
Move G_GNUC_CONST to after declaration, to be compatible with gcc 2.95.
2006-01-14 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-utils.h (pango_is_zero_width): Move G_GNUC_CONST to
after declaration, to be compatible with gcc 2.95. (bug #326847)
Behdad Esfahbod [Thu, 5 Jan 2006 16:14:49 +0000 (16:14 +0000)]
pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,
2006-01-05 Behdad Esfahbod <behdad@gnome.org>
* pango/Makefile.am,
* pango/fonts.c,
* pango/glyphstring.c,
* pango/pango-attributes.c,
* pango/pango-color.c,
* pango/pango-impl-utils.h,
* pango/pango-item.c,
* pango/pango-layout.c,
* pango/pango-tabs.c,
* pango/pango-utils.c,
* pango/pango-utils.h,
* pango/pangoatsui-fontmap.c,
* pango/pangocairo-font.c,
* pango/pangocairo-fontmap.c,
* pango/pangofc-fontmap.c,
* pango/pangowin32-fontmap.c,
* pango/pangox-fontmap.c,
* pango/pangox.c,
* pango/opentype/pango-ot-info.c,
* pango/opentype/pango-ot-ruleset.c: Intern strings to avoid
unnecessary strdups in the type system. (bug #325832, Matthias Clasen)