Behdad Esfahbod [Fri, 14 Apr 2006 06:56:43 +0000 (06:56 +0000)]
Bug 338343 – Bad cast
2006-04-14 Behdad Esfahbod <behdad@gnome.org>
Bug 338343 – Bad cast
* pango/pango-layout.c (pango_layout_set_text): Fix cast.
Behdad Esfahbod [Thu, 13 Apr 2006 06:11:21 +0000 (06:11 +0000)]
Check for nullity somewhere else.
2006-04-13 Behdad Esfahbod <behdad@gnome.org>
* pango/pangox.c (get_font_metrics_from_subfonts): Check for nullity
somewhere else.
Behdad Esfahbod [Wed, 12 Apr 2006 18:47:50 +0000 (18:47 +0000)]
Fix loop variables. (coverity found bug.)
2006-04-12 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-gpos.c: Fix loop variables. (coverity
found bug.)
Behdad Esfahbod [Tue, 11 Apr 2006 08:31:44 +0000 (08:31 +0000)]
Bug 337924 – cleanups for issues reported by various compilers Patch
2006-04-11 Behdad Esfahbod <behdad@gnome.org>
Bug 337924 – cleanups for issues reported by various compilers
Patch from Kjartan Maraas.
* examples/viewer-x.c (update):
* modules/arabic/arabic-fc.c (fallback_shape),
(arabic_engine_shape):
* modules/basic/basic-fc.c (fallback_shape), (basic_engine_shape):
* modules/basic/basic-x.c:
* modules/hangul/hangul-fc.c:
* modules/hebrew/hebrew-fc.c (hebrew_engine_shape):
* 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/break.c:
* pango/modules.c:
* pango/opentype/ftglue.c (_hb_ftglue_face_goto_table):
* pango/pango-attributes.c (pango_attr_list_filter):
* pango/pango-engine.c:
* pango/pango-fontset.c:
* pango/pango-layout.c (pango_layout_set_text),
(pango_layout_xy_to_index), (pango_layout_get_cursor_pos):
* pango/pango-markup.c (text_handler):
* pango/pango-utils.c (read_alias_file):
* pango/pangocairo-fcfont.c (G_DEFINE_TYPE_WITH_CODE):
* pango/pangocairo-fcfontmap.c (G_DEFINE_TYPE_WITH_CODE):
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
* pango/pangox-fontmap.c (pango_x_make_matching_xlfd):
* tests/dump-boundaries.c (fail):
Remove unused variables. Remove excess semicolon after DEFINE_TYPE
macros.
Behdad Esfahbod [Mon, 10 Apr 2006 11:44:34 +0000 (11:44 +0000)]
Removed. Have not been updated since Feb 2001.
2006-04-10 Behdad Esfahbod <behdad@gnome.org>
* config.h.win32, examples/makefile.msc: Removed. Have not been
updated since Feb 2001.
Behdad Esfahbod [Mon, 10 Apr 2006 11:19:43 +0000 (11:19 +0000)]
Fix broken changes I made :).
2006-04-10 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c: Fix broken changes I made :).
Behdad Esfahbod [Mon, 10 Apr 2006 10:33:17 +0000 (10:33 +0000)]
Fix minor bugs reported by the Coverity scan report.
2006-04-10 Behdad Esfahbod <behdad@gnome.org>
Fix minor bugs reported by the Coverity scan report.
* pango/opentype/harfbuzz-gdef.c (HB_GDEF_Build_ClassDefinition):
* pango/opentype/harfbuzz-gpos.c (HB_GPOS_Query_Scripts),
(HB_GPOS_Query_Languages), (HB_GPOS_Query_Features): Do not access
structs before we check them for nullity.
* pango/pango-layout.c (pango_layout_index_to_line),
(pango_layout_index_to_line_and_extents),
(pango_layout_index_to_pos): Check for invalid iterators outside the
loop, so we don't crash.
* pango/pango-layout.c (pango_layout_line_x_to_index): Set
char_trailing instead of trailing in one of too many paths. Should
have been a typo.
* pango/pangox.c (get_font_metrics_from_subfonts): Check for nullity
somewhere.
Tor Lillqvist [Sun, 9 Apr 2006 20:59:39 +0000 (20:59 +0000)]
Fix typo in doc comment.
2006-04-09 Tor Lillqvist <tml@novell.com>
* pango/pango-utils.c (pango_quantize_line_geometry): Fix typo in
doc comment.
Behdad Esfahbod [Sun, 9 Apr 2006 20:38:58 +0000 (20:38 +0000)]
Bug 337821 – invisible unicode chars are visible next to hebrew chars
2006-04-09 Behdad Esfahbod <behdad@gnome.org>
Bug 337821 – invisible unicode chars are visible next to hebrew chars
* modules/hebrew/hebrew-fc.c: Handle zero_width chars in fallback
shaper too.
* modules/hebrew/hebrew-shaper.c: Remove unused Unicode<->ISO8859
tables.
Behdad Esfahbod [Fri, 7 Apr 2006 08:48:17 +0000 (08:48 +0000)]
Incorrect text rendering when in x86 64-bit precision mode
2006-04-07 Behdad Esfahbod <behdad@gnome.org>
Incorrect text rendering when in x86 64-bit precision mode
https://bugs.freedesktop.org/show_bug.cgi?id=5200
* pango/pangocairo-fcfont.c:Round metrics when converting
to Pango units.
Behdad Esfahbod [Thu, 6 Apr 2006 20:09:31 +0000 (20:09 +0000)]
Bug 337502 – Win32 build fix Patch from Alexander Larsson.
2006-04-06 Behdad Esfahbod <behdad@gnome.org>
Bug 337502 – Win32 build fix
Patch from Alexander Larsson.
* pango/pangocairo-fontmap.c: Fix order of checking for freetype and
win32 cairo backends to match the constructor.
* pango/pangoft2.def: Add missing symbol
Behdad Esfahbod [Thu, 6 Apr 2006 18:23:49 +0000 (18:23 +0000)]
Update from HarfBuzz. Lars Knoll fixed all the warnings.
2006-04-06 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype: Update from HarfBuzz. Lars Knoll fixed all the
warnings.
Behdad Esfahbod [Tue, 4 Apr 2006 22:53:04 +0000 (22:53 +0000)]
Fix a few warnings.
2006-04-04 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-utils.c, pango/querymodules.c: Fix a few warnings.
Behdad Esfahbod [Mon, 3 Apr 2006 20:13:17 +0000 (20:13 +0000)]
Make sure TTAG_GDEF and frineds are defined, needed for FreeType <= 2.1.7
2006-04-03 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-impl.h: Make sure TTAG_GDEF and frineds are
defined, needed for FreeType <= 2.1.7 (pointed by Tim Janik).
Behdad Esfahbod [Mon, 3 Apr 2006 15:19:59 +0000 (15:19 +0000)]
Bug 337029 – pango/fonts.c: Illegal structure initialization
2006-04-03 Behdad Esfahbod <behdad@gnome.org>
Bug 337029 – pango/fonts.c: Illegal structure initialization
* pango/fonts.c: Change NULL's to ""'s after previous change, and fix
code to follow.
Behdad Esfahbod [Fri, 31 Mar 2006 23:06:17 +0000 (23:06 +0000)]
Change char* to char[] in the ft error table, to avoid relocations.
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c:
* pango/pango-utils.c:
* pango/pangox-fontmap.c:
* pango/pangoft2.c (_pango_ft2_ft_strerror): Change char* to
char[] in the ft error table, to avoid relocations.
Behdad Esfahbod [Fri, 31 Mar 2006 22:41:07 +0000 (22:41 +0000)]
Change char* to char[] in the ft error table, to avoid relocations.
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoft2.c (_pango_ft2_ft_strerror): Change char* to
char[] in the ft error table, to avoid relocations.
Behdad Esfahbod [Fri, 31 Mar 2006 22:09:39 +0000 (22:09 +0000)]
Make const data static. Doesn't help as it's got strings to relocate.
Behdad Esfahbod [Fri, 31 Mar 2006 13:19:29 +0000 (13:19 +0000)]
.
Behdad Esfahbod [Fri, 31 Mar 2006 13:18:23 +0000 (13:18 +0000)]
.
Behdad Esfahbod [Fri, 31 Mar 2006 13:09:47 +0000 (13:09 +0000)]
Part of Bug 336026 – Make fallback shaper in modules work Patch from
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 336026 – Make fallback shaper in modules work
Patch from Denis Jacquerye.
* pango/pango-ot-buffer.c (pango_ot_buffer_output): Call
pango_fc_font_kern_glyphs if GPOS not applied.
Behdad Esfahbod [Fri, 31 Mar 2006 12:59:33 +0000 (12:59 +0000)]
Bug 334802 – Using plain integer as NULL pointer
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
Bug 334802 – Using plain integer as NULL pointer
* pango/mapping.c (pango_glyph_string_x_to_index): Fix type assigining
trailing instead of *trailing.
* pango/pango-layout.c (pango_layout_line_new): Use NULL instead of 0.
Behdad Esfahbod [Fri, 31 Mar 2006 12:55:51 +0000 (12:55 +0000)]
Exclude harfbuzz headers.
Behdad Esfahbod [Fri, 31 Mar 2006 12:45:40 +0000 (12:45 +0000)]
Define NULL.
Behdad Esfahbod [Fri, 31 Mar 2006 12:28:09 +0000 (12:28 +0000)]
Convert pango/opentype to the new project called HarfBuzz.
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
Convert pango/opentype to the new project called HarfBuzz.
* pango/opentype/*: Restructured.
* pango/pango-ot-*: Updated to use HarfBuzz symbol names.
Behdad Esfahbod [Fri, 31 Mar 2006 04:28:20 +0000 (04:28 +0000)]
Bug 335840 – Typo in including Xft.
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
Bug 335840 – Typo in including Xft.
* pangoxft-render.h: Define _XFT_NO_COMPAT_ instead of _XFT_NO_COMPAT.
Behdad Esfahbod [Fri, 31 Mar 2006 02:20:23 +0000 (02:20 +0000)]
Make #include syntax in sources and headers more consistent. We are using
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
* pango/*.[ch]: Make #include syntax in sources and headers more
consistent. We are using the "..." syntax for all Pango headers
in source files, and <...> syntax in all header files, except for
including private headers, that we use "...".
Behdad Esfahbod [Fri, 31 Mar 2006 01:42:54 +0000 (01:42 +0000)]
Hook up pango-utils.h into the documentation, as we are installing it
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
Hook up pango-utils.h into the documentation, as we are installing
it anyway. Move some internal stuff to pango-impl-utils.h and make
source files include that instead.
Tor Lillqvist [Fri, 31 Mar 2006 00:21:30 +0000 (00:21 +0000)]
Fix blurred underlines on Win32 (#332656):
2006-03-30 Tor Lillqvist <tml@novell.com>
Fix blurred underlines on Win32 (#332656):
* pango/pango-utils.c (pango_quantize_line_geometry):
New public function. Used to be the static quantize_position() in
pangofc-font.c
* pango/pango-utils.h: Declare it.
* pango/pango.def: Here, too.
* pango/pangofc-font.c (quantize_position): Remove.
(get_face_metrics): Use pango_quantize_line_geometry() instead.
* pango/pangocairo-win32font.c (create_metrics_for_context): Call
pango_quantize_line_geometry() for underline and strikethrough
geometries.
Behdad Esfahbod [Sat, 25 Mar 2006 23:52:30 +0000 (23:52 +0000)]
Don't err on Table_Missing.
2006-03-25 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/ottest.c: Don't err on Table_Missing.
Behdad Esfahbod [Mon, 13 Mar 2006 05:21:44 +0000 (05:21 +0000)]
Create pango-1-12 stable branch.
2006-03-13 Behdad Esfahbod <behdad@gnome.org>
Create pango-1-12 stable branch.
* ChangeLog.pre-1-12: Created.
* Makefile.am: Updated to dist above.
Behdad Esfahbod [Mon, 13 Mar 2006 05:06:05 +0000 (05:06 +0000)]
=== Released 1.12.0 ===
2006-03-13 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.12.0 ===
* configure.in: Version 1.12.0
* NEWS, README: Updated.
Tor Lillqvist [Thu, 2 Mar 2006 23:56:03 +0000 (23:56 +0000)]
Fix compilation error with MSVC. (#333115)
2006-03-03 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-private.h (PING): Fix compilation error with
MSVC. (#333115)
Tor Lillqvist [Wed, 1 Mar 2006 00:26:07 +0000 (00:26 +0000)]
Check the font pointer being NULL to avoid crashes for at least one class
2006-03-01 Tor Lillqvist <tml@novell.com>
* pango/pango-context.c (update_metrics_from_items): Check the
font pointer being NULL to avoid crashes for at least one class of
"bad" fonts (those without a Unicode cmap) on Win32. It would
probably be better to prune out such fonts already in the
enumeration phase. That would require opening (CreateFontIndirect)
every font, though, to be able to check with GetFontData() whether
there is a Unicode cmap. Don't know how much that would slow down
the enumeration.
Tor Lillqvist [Tue, 28 Feb 2006 21:57:33 +0000 (21:57 +0000)]
pango/pangowin32-private.h (PING) pango/pangowin32.c Use g_print() instead
2006-02-28 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-private.h (PING)
* pango/pangowin32.c
* modules/basic/basic-win32.c: Use g_print() instead of printf()
for debugging output, to enable easy redirection using GLib
facilities. (#332855)
Behdad Esfahbod [Sun, 26 Feb 2006 23:32:00 +0000 (23:32 +0000)]
=== Released 1.11.99 "Just In Case" ===
2006-02-26 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.99 "Just In Case" ===
* configure.in: Version 1.11.99
* NEWS: Updated.
Behdad Esfahbod [Sun, 26 Feb 2006 21:23:14 +0000 (21:23 +0000)]
Replace each byte in invalid UTF-8 sequences with '?'. (bug #331995)
2006-02-26 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_set_text): Replace each byte in invalid
UTF-8 sequences with '?'. (bug #331995)
* examples/renderdemo.c: Don't exit on invalid UTF-8 input.
Hans Breuer [Sat, 25 Feb 2006 17:33:48 +0000 (17:33 +0000)]
return TRUE to glyphs rendered at all (instead of box). This may be
2006-02-25 Hans Breuer <hans@breuer.org>
* pango/pangocairo-win32font.c(pango_cairo_win32_font_install) :
return TRUE to glyphs rendered at all (instead of box). This may
be compiler specific (what to return w/o return) but fixes bug #332538
* pango/makefile.msc : updated
* pango/pango.def : just some sorting
Behdad Esfahbod [Sat, 25 Feb 2006 13:47:11 +0000 (13:47 +0000)]
Added. Parts of Genesis.
2006-02-25 Behdad Esfahbod <behdad@gnome.org>
* examples/test-hebrew.txt: Added. Parts of Genesis.
* examples/Makefile.am: Adjusted.
Behdad Esfahbod [Fri, 24 Feb 2006 20:05:14 +0000 (20:05 +0000)]
Comment typo.
Behdad Esfahbod [Wed, 22 Feb 2006 12:32:01 +0000 (12:32 +0000)]
Bug 332167 – Void function returns value - breaks Solaris build Reported
2006-02-22 Behdad Esfahbod <behdad@gnome.org>
Bug 332167 – Void function returns value - breaks Solaris build
Reported by Damien Carbery
* pango/pangocairo-fcfont (pango_cairo_fc_font_unlock_face): Simply
return.
Behdad Esfahbod [Tue, 21 Feb 2006 12:30:48 +0000 (12:30 +0000)]
=== Released 1.11.6 ===
2006-02-11 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.6 ===
* configure.in: Version 1.11.6
* NEWS: Updated.
Behdad Esfahbod [Tue, 21 Feb 2006 11:58:09 +0000 (11:58 +0000)]
Bug 328206 – Update/remove some old files
2006-02-21 Behdad Esfahbod <behdad@gnome.org>
Bug 328206 – Update/remove some old files
* docs/TEXT/{coding-style,modules,questions,ligatures,western-design}:
Removed.
* HACKING: Added. Renamed from docs/TEXT/coding-style.
* Makefile.am: Add HACKING.
Behdad Esfahbod [Tue, 21 Feb 2006 11:41:12 +0000 (11:41 +0000)]
Bug 314239 – pangocairo crashes when font cannot be read
2006-02-21 Behdad Esfahbod <behdad@gnome.org>
Bug 314239 – pangocairo crashes when font cannot be read
* pango/pangocairo-fcfont.c, pango/pangocairo-font.c: Hack up to not
crash if we cannot create cairo_scaled_font_t for PangoFont (font is
not readable, removed, etc.)
Behdad Esfahbod [Tue, 21 Feb 2006 10:47:30 +0000 (10:47 +0000)]
Bug 331723 – shapers should not crash on failures
2006-02-21 Behdad Esfahbod <behdad@gnome.org>
Bug 331723 – shapers should not crash on failures
* modules/*/*-fc.c: Return instead of g_return_if_fail when
face == NULL.
* pango/pango-engine.h (PangoEngineShape): Document that a shaper
should return an empty glyph string on failure.
Behdad Esfahbod [Tue, 21 Feb 2006 10:22:48 +0000 (10:22 +0000)]
Emphasize that input text should be valid UTF-8.
Behdad Esfahbod [Tue, 21 Feb 2006 10:12:02 +0000 (10:12 +0000)]
Change g_critical to g_warning. We already handle them gracefully.
2006-02-21 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c, pango/glyphstring.c, pango/pango-fontmap.c,
pango/pango-ot-buffer.c, pango/pangocairo-font.c, pango/pangoft2.c,
pango/pangoxft-font.c, pango/shape.c: Change g_critical to g_warning.
We already handle them gracefully.
Bug 331994 – --disable-debug removes G_DISABLE_CAST_CHECKS
Patch from charlet@act-europe.fr
* configure.in: Do not lose PANGO_DEBUG_FLAGS when reassigning.
Bug 331995 – pango_layout_set_text optimization
Patch from charlet@act-europe.fr
* pango/pango-layout.c: Do not validate input text if asserts are
disabled. Moreover, do not truncate input text on invalid sequence.
Bug 331996 – avoid crashes in win32 font handling
Patch from charlet@act-europe.fr
* pango/pangofc-fontmap.c, pango/pangowin32-fontmap.c,
pango/pangowin32.c: if (!font) return NULL in a number of places.
Behdad Esfahbod [Fri, 17 Feb 2006 08:11:02 +0000 (08:11 +0000)]
Bug 329148 – pango_glyph_item_split: assertion `split_index > 0' failed
2006-02-17 Behdad Esfahbod <behdad@gnome.org>
Bug 329148 – pango_glyph_item_split: assertion `split_index > 0' failed
* pango/ellipsize.c (init_state): Do not mistakenly set start_offset = 0.
Behdad Esfahbod [Fri, 17 Feb 2006 07:26:17 +0000 (07:26 +0000)]
Move PANGO_GLYPH_EMPTY, PANGO_GLYPH_UNKNOWN_FLAG, and
2006-02-17 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-types.h, pango/pango-font.h: Move PANGO_GLYPH_EMPTY,
PANGO_GLYPH_UNKNOWN_FLAG, and PANGO_GET_UNKNOWN_GLYPH from the former
to the latter, and only define if PANGO_ENABLE_ENGINE or
PANGO_ENABLE_BACKEND is set.
Behdad Esfahbod [Wed, 15 Feb 2006 05:39:20 +0000 (05:39 +0000)]
Bug 331038 – pango-querymodules --help and --version Patch from Antoine
2006-02-15 Behdad Esfahbod <behdad@gnome.org>
Bug 331038 – pango-querymodules --help and --version
Patch from Antoine Dopffer.
* examples/renderdemo.c, pango/querymodules.c: Add --version option.
Behdad Esfahbod [Mon, 13 Feb 2006 19:12:21 +0000 (19:12 +0000)]
Pass gnits instead of gnu to automake.
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Pass gnits instead of gnu to automake.
* AUTHORS: Contributors move to THANKS.
* THANKS: New file.
Behdad Esfahbod [Mon, 13 Feb 2006 19:04:24 +0000 (19:04 +0000)]
Remove AUTOMAKE_OPTIONS, as we do that in configure.in now.
Behdad Esfahbod [Mon, 13 Feb 2006 19:03:39 +0000 (19:03 +0000)]
Pass 1.6 and gnu options to automake.
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Pass 1.6 and gnu options to automake.
* modules/Makefile.am: Distribute Module.mk.
* modules/Module.mk: Common bits for writing module Makefil.am's.
* modules/*/Makefile.am: Include Module.mk instead of copying common
bits.
Behdad Esfahbod [Sun, 12 Feb 2006 22:29:58 +0000 (22:29 +0000)]
Document pango_layout_set_width as getting width in Pango units.
Behdad Esfahbod [Sat, 11 Feb 2006 20:34:14 +0000 (20:34 +0000)]
Bug 330795 – pango_renderer_draw_glyph segfaults when trying to call the
2006-02-11 Behdad Esfahbod <behdad@gnome.org>
Bug 330795 – pango_renderer_draw_glyph segfaults when trying to call
the class vfunc
Opened by Torsten Schoenfeld
* pango/pango-renderer.c (pango_renderer_draw_trapezoid,
pango_renderer_draw_glyph): Bail if method is not implemented.
Behdad Esfahbod [Sat, 11 Feb 2006 18:45:49 +0000 (18:45 +0000)]
Oops. Fix typo in docs.
Behdad Esfahbod [Sat, 11 Feb 2006 18:37:55 +0000 (18:37 +0000)]
Docs rebuilt.
Behdad Esfahbod [Sat, 11 Feb 2006 18:30:05 +0000 (18:30 +0000)]
=== Released 1.11.5 ===
2006-02-11 Behdad Esfahbod <behdad@gnome.org>
* === Released 1.11.5 ===
* configure.in: Version 1.11.5
* NEWS: Updated.
Tor Lillqvist [Fri, 10 Feb 2006 21:47:25 +0000 (21:47 +0000)]
Rename the recently added pango_win32_pango_font_description_from_logfont()
to pango_win32_font_description_from_logfont(). Add it to pangowin32.def
and pango-sections.txt, too.
Tor Lillqvist [Fri, 10 Feb 2006 13:00:27 +0000 (13:00 +0000)]
Add Since: info to the doc comment for the function just added.
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.