Kristian Rietveld [Wed, 17 Mar 2010 22:01:48 +0000 (23:01 +0100)]
Get _pango_cairo_core_text_font_new right
Kristian Rietveld [Wed, 17 Mar 2010 21:56:48 +0000 (22:56 +0100)]
Properly propagate font size in pango_core_text_font_map_load_font
Kristian Rietveld [Sun, 7 Mar 2010 16:16:33 +0000 (17:16 +0100)]
Shape engine should return array in LTR order when expected
Kristian Rietveld [Sat, 6 Mar 2010 18:08:37 +0000 (19:08 +0100)]
Remove pointless FIXME
Kristian Rietveld [Sat, 6 Mar 2010 18:06:36 +0000 (19:06 +0100)]
Handle oblique fonts; synthesize italic fonts when needed
Deduce from the given style name whether a font is oblique. If a font
family does not have an italic or oblique variant, then add synthetic
italic variants that are handled by Pango.
Kristian Rietveld [Sat, 6 Mar 2010 10:16:09 +0000 (11:16 +0100)]
Factor out translation of CTFontDescriptor into seperate function
Kristian Rietveld [Fri, 5 Mar 2010 20:46:38 +0000 (21:46 +0100)]
Start implementation of CoreText backend
On Mac OS X systems where CoreText is available (that is, 10.5 or
higher), we will build the CoreText backend instead of the ATSUI
backend. In this case, the ATSUI backend will not be built and
installed. This change is necessary because since Mac OS 10.5
ATSUI has been marked as deprecated.
For older systems, we will have to continue to use the
ATSUI backend.
Behdad Esfahbod [Thu, 7 Apr 2011 17:12:33 +0000 (13:12 -0400)]
Bug 646213 - Hangul Jamo render as U+00xx boxes and produce valgrind errors
Fix the previous fix!
Behdad Esfahbod [Wed, 6 Apr 2011 20:04:15 +0000 (16:04 -0400)]
Bug 646213 - Hangul Jamo render as U+00xx boxes and produce valgrind errors
Behdad Esfahbod [Mon, 14 Mar 2011 20:05:39 +0000 (17:05 -0300)]
Handle realloc failure in the buffer
Ported from http://cgit.freedesktop.org/harfbuzz/commit/?id=
a6a79df5fe2e
by Karl Tomlinson <karlt+@karlt.net>
Víctor Manuel Jáquez Leal [Mon, 14 Mar 2011 12:18:16 +0000 (13:18 +0100)]
build: gtk-doc scanner links agains glib
https://bugzilla.gnome.org/show_bug.cgi?id=644724
John (J5) Palmieri [Thu, 17 Feb 2011 17:39:25 +0000 (12:39 -0500)]
[gi] add out annotations to pango layout API
https://bugzilla.gnome.org/show_bug.cgi?id=642593
Behdad Esfahbod [Thu, 17 Feb 2011 16:19:48 +0000 (11:19 -0500)]
Bug 639882 - Heap corruption in font parsing with FreeType2 backend
Laszlo Pandy [Wed, 9 Feb 2011 15:55:36 +0000 (16:55 +0100)]
[GI] Add (allow-none) annotations to pango_parse_markup().
Laszlo Pandy [Fri, 4 Feb 2011 13:30:59 +0000 (14:30 +0100)]
[GI] Annotate out arguments of pango_parse_markup().
Behdad Esfahbod [Tue, 28 Dec 2010 09:17:55 +0000 (03:17 -0600)]
Bug 636348 - Hex boxes are incorrectly scaled with non identity cairo scale
Paolo Borelli [Sat, 11 Dec 2010 13:52:53 +0000 (14:52 +0100)]
Annotate pango_layout_get_context().
Behdad Esfahbod [Mon, 6 Dec 2010 21:26:00 +0000 (16:26 -0500)]
[git.mk] Support Mallard docs
Sven Herzberg [Mon, 15 Nov 2010 18:04:47 +0000 (19:04 +0100)]
ensure gnome-autogen.sh's behaviour
* autogen.sh: make sure that autoreconf calls aclocal the same way
gnome-autogen.sh would have done
Christian Persch [Sat, 24 May 2008 14:22:06 +0000 (16:22 +0200)]
Use G_DEFINE_BOXED_TYPE.
Bug #539622.
Javier Jardón [Tue, 26 Oct 2010 16:22:03 +0000 (18:22 +0200)]
Use autoreconf instead gnome-autogen.sh
Fixed https://bugzilla.gnome.org/show_bug.cgi?id=633208
Colin Walters [Wed, 29 Sep 2010 14:41:26 +0000 (10:41 -0400)]
introspection: Fix some annotation syntax usage
Colin Walters [Tue, 28 Sep 2010 19:51:44 +0000 (15:51 -0400)]
introspection: Use --include-uninstalled
For inter-module includes we need to use --include-uninstalled,
otherwise we may try to process pkg-config entries for uninstalled
.pc files.
Also:
* Don't include pangoft2 in its own package list.
* Filter out non-public pango-color-table.h
https://bugzilla.gnome.org/show_bug.cgi?id=630857
Colin Walters [Tue, 28 Sep 2010 19:17:53 +0000 (15:17 -0400)]
configure.in: Add missing ;
Behdad Esfahbod [Tue, 28 Sep 2010 18:16:46 +0000 (14:16 -0400)]
Bug 630812 - Ignore gnome-doc-utils, .dirstamp and GSettings files in git.mk
Patches from Philip Withnall.
[PATCH 1/3] Ignore gnome-doc-utils' .mo files and generated headers
gnome-doc-utils can optionally generate a header (specified in DOC_H_FILE)
which is cleaned by gnome-doc-utils.make in mostlyclean. Additionally, it
generates MO files for the documentation translations which are also cleaned
by gnome-doc-utils.make in mostlyclean.
[PATCH 2/3] Ignore .dirstamp files
These are automatically removed on distclean by automake under some
circumstances.
[PATCH 3/3] Ignore files generated by gsettings.m4
gsettings.m4 generates .valid files and can optionally generate enum files,
which are all removed on mostlyclean by gsettings.m4.
Behdad Esfahbod [Wed, 22 Sep 2010 19:45:33 +0000 (15:45 -0400)]
Doc template changes
Behdad Esfahbod [Tue, 21 Sep 2010 19:53:52 +0000 (15:53 -0400)]
Fix docs build on Ubuntu
I'm guessing that Ubuntu has broken libtool by not automatically adding
dependent libraries from the .la file...
Behdad Esfahbod [Tue, 28 Sep 2010 01:07:34 +0000 (21:07 -0400)]
Bug 628497 - Crash in pango_layout_line_get_extents at pango-layout.c
Cleanup LINE_IS_VALID() usage.
Behdad Esfahbod [Thu, 23 Sep 2010 19:49:57 +0000 (15:49 -0400)]
Bug 626966 - SIGFPE _hb_sanitize_array
Fix two div-by-zero's. Both have been fixed upstream.
Behdad Esfahbod [Tue, 14 Sep 2010 18:50:01 +0000 (14:50 -0400)]
Bug 629632 - configure bug
Tor Lillqvist [Sat, 11 Sep 2010 11:52:28 +0000 (14:52 +0300)]
Reduce DLL hijack risk and simplify code in basic-win32 module
Dont load usp10.dll dynamically with LoadLibrary(). Just link to the
Uniscribe API directly. MinGW comes with an import library so no
problem with that either. The Uniscribe DLL is present on all versions
of Windows we care for.
Colin Walters [Tue, 31 Aug 2010 22:12:40 +0000 (18:12 -0400)]
introspection: Filter out private headers
We shouldn't scan private headers. Also add --warn-all.
https://bugzilla.gnome.org/show_bug.cgi?id=627973
Behdad Esfahbod [Wed, 25 Aug 2010 19:48:41 +0000 (15:48 -0400)]
Bug 627978 - explicitly link with the math lib (-lm) for use of 'cos'
Behdad Esfahbod [Wed, 25 Aug 2010 16:00:34 +0000 (12:00 -0400)]
Bug 627902 - explicitely link dump-boundaries to GLib
Behdad Esfahbod [Tue, 24 Aug 2010 23:47:49 +0000 (19:47 -0400)]
Fix include
Robert Ancell [Tue, 10 Aug 2010 06:31:44 +0000 (16:31 +1000)]
Bug 626500 - Fails to compile with gobject-introspection 0.9
Behdad Esfahbod [Fri, 6 Aug 2010 16:48:10 +0000 (12:48 -0400)]
Bug 625807 - approximate character width is 0 on pangoft2
Fix regression.
Behdad Esfahbod [Fri, 23 Jul 2010 03:15:33 +0000 (23:15 -0400)]
Bug 617772 - pango fails to build from git outside source tree
Depends on gobject-introspection >= 0.6.14, where introspection sources are
referenced via VPATH. Remove $(srcdir) prefix in sources.
Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Owen W. Taylor [Thu, 8 Jul 2010 19:51:33 +0000 (15:51 -0400)]
Add PANGO_LIBDIR and PANGO_SYSCONFDIR enviroment variables
Add environment variables to override the compile time values
for the libdir and sysconfdir. This provides additional
flexibility and enables using a static pango.modules file
for libraries packaged with an application on OS X by setting
environment variables at application startup and using
paths of the form:
@executable_path/../lib/pango/modules/..
in the modules file.
https://bugzilla.gnome.org/show_bug.cgi?id=554524
Tor Lillqvist [Sun, 27 Jun 2010 20:40:18 +0000 (23:40 +0300)]
Typo fix
As such libpangowin32 is deprecated, I guess...
Tor Lillqvist [Sat, 26 Jun 2010 13:05:13 +0000 (16:05 +0300)]
Improve performance on Windows especially for non-Latin scripts
The use of Uniscribe script caches was decidedly suboptimal. Use one
persistent SCRIPT_CACHE per Win32 font and script.
Patch by by David E. Hollingsworth and Fredrik Corneliusson, from bug
Behdad Esfahbod [Tue, 15 Jun 2010 15:36:18 +0000 (11:36 -0400)]
Bump version to 1.29
Behdad Esfahbod [Tue, 15 Jun 2010 14:05:16 +0000 (10:05 -0400)]
Backport this commit from harfbuzz-ng repo:
Fix awful confusion between lookup format and subtable format
As reported by John Daggett.
Behdad Esfahbod [Tue, 15 Jun 2010 12:38:59 +0000 (08:38 -0400)]
Bug 621612 - VPATH build fix
Matthias Clasen [Thu, 3 Jun 2010 15:53:21 +0000 (11:53 -0400)]
Fix a test failure
See http://build.gnome.org/builders/pango-RHEL5/builds/310/steps/pango%20check/logs/stdio
Behdad Esfahbod [Wed, 26 May 2010 20:21:47 +0000 (16:21 -0400)]
Cypriot is RTL
Behdad Esfahbod [Tue, 11 May 2010 00:45:07 +0000 (20:45 -0400)]
Fix glyph class building. Oops!
Bug 605870 - Incorrect shaping for Syriac
Behdad Esfahbod [Tue, 4 May 2010 17:40:35 +0000 (13:40 -0400)]
[cairo] Scale font metrics to user space
Bug 457990 - font metrics are not converted to user space in cairo backend
Behdad Esfahbod [Tue, 4 May 2010 15:55:27 +0000 (11:55 -0400)]
[cairo] Refactor common code in create_metrics_for_context()
Behdad Esfahbod [Wed, 21 Apr 2010 06:04:22 +0000 (02:04 -0400)]
[HB] Minor
Behdad Esfahbod [Wed, 21 Apr 2010 04:49:40 +0000 (00:49 -0400)]
[HB] Improve comments
Behdad Esfahbod [Wed, 21 Apr 2010 04:40:50 +0000 (00:40 -0400)]
[HB] Remove stale TODO item
Behdad Esfahbod [Wed, 21 Apr 2010 04:32:47 +0000 (00:32 -0400)]
[HB] Use a function template instead of struct template for Null
Behdad Esfahbod [Wed, 21 Apr 2010 04:14:12 +0000 (00:14 -0400)]
[HB] Simplify Tag struct
Behdad Esfahbod [Wed, 21 Apr 2010 03:50:45 +0000 (23:50 -0400)]
[HB] Cosmetic
Behdad Esfahbod [Tue, 20 Apr 2010 19:52:47 +0000 (15:52 -0400)]
[HB] Fix Class operator return type
Behdad Esfahbod [Tue, 20 Apr 2010 19:51:53 +0000 (15:51 -0400)]
[HB] Add couple consts to operators
Behdad Esfahbod [Tue, 20 Apr 2010 19:25:27 +0000 (15:25 -0400)]
[HB] Remove ASSERT_SIZE_DATA
Behdad Esfahbod [Mon, 29 Mar 2010 04:04:12 +0000 (00:04 -0400)]
GNOME Bug 613015 - [HB] Does not sanitize Device tables referenced from ValueRecords
Behdad Esfahbod [Mon, 19 Apr 2010 06:34:10 +0000 (02:34 -0400)]
[HB] Round instead of trunc
Behdad Esfahbod [Mon, 19 Apr 2010 06:29:04 +0000 (02:29 -0400)]
[HB] Fix warnings
Behdad Esfahbod [Mon, 19 Apr 2010 06:27:56 +0000 (02:27 -0400)]
[HB] Fix debug build
Behdad Esfahbod [Thu, 1 Apr 2010 07:33:22 +0000 (03:33 -0400)]
Bug 582698 - Support CSS-style margin specification
Tor Lillqvist [Tue, 30 Mar 2010 07:28:51 +0000 (10:28 +0300)]
Remove the .vcproj files before rewriting them
In case they are write protected for some reason. Might help Behdad's
problem with make dist.
Behdad Esfahbod [Sat, 27 Mar 2010 21:00:19 +0000 (17:00 -0400)]
[HB] Fix leak when duplicating blob
Kristian Rietveld [Sun, 21 Mar 2010 20:23:56 +0000 (21:23 +0100)]
Bug 611033 - Layout using ATSUI fontmap treats absolute font sizes a...
pango_atsui_font_map_load_font() has been corrected to take into account
whether the size retrieved from the given font description is absolute
when setting this size again on best_description.
_pango_cairo_atsui_font_new() has been cleaned up with regard to size
conversion and usage. The code now properly takes the absolute property
into account and is more clear.
Tor Lillqvist [Tue, 16 Mar 2010 08:37:00 +0000 (10:37 +0200)]
Dist also the .vcprojin files
It has to be possible to run "make dist" also in an unpacked tarball.
Behdad Esfahbod [Tue, 16 Mar 2010 07:46:17 +0000 (03:46 -0400)]
[HB] Fix the mystery bug!
A couple bugs joined forces to exhibit the mystery behavior of
crashes / infinite loops on OS X / wrong kerning / invalid memory
access. Pooh!
The bugs were involved:
- Wrong pointer math with ValueRecord in PairPosFormat1
- Fallout from avoiding flex arrays, code not correctly updated
to remove sizeof() usage.
We strictly never use sizeof() directly now. And the PairPos code
is cleaned up. Should fix them all. Bugs are:
Bug 605655 - Pango 1.26.2 introduces kerning bug
Bug 611229 - Pango reads from uninitialized memory
Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X
We were also doing wrong math converting Device adjustments to
hb_position_t. Fallout from FreeType days. Should shift 16, not
6. Fixed that too.
There's still another bug: we don't sanitize Device records
referenced from value records. Fixing that also.
Behdad Esfahbod [Tue, 16 Mar 2010 07:15:00 +0000 (03:15 -0400)]
[HB] Cosmetic
Tor Lillqvist [Mon, 15 Mar 2010 22:46:24 +0000 (00:46 +0200)]
Put the PANGO_MODULE_PREFIX defines in the project files
Put the PANGO_MODULE_PREFIX defines in the project files instead of
having them behind an ifdef in the source files.
Tor Lillqvist [Mon, 15 Mar 2010 21:44:01 +0000 (23:44 +0200)]
Build fix on Linux after previous commits
Tor Lillqvist [Mon, 15 Mar 2010 21:28:51 +0000 (23:28 +0200)]
Add a couple of files accidentally left out in previous commit
Tor Lillqvist [Wed, 10 Feb 2010 13:30:12 +0000 (15:30 +0200)]
Add solution and project files for Visual Studio builds
The VS files are kept in build/win32/vs9, the same relative location
as in GLib, mostly for historical reasons.
Update README.win32 to reflect the VS possibility.
Include the VS solution and project files in the tarball when doing a
release.
To avoid having to list source files in several locations, generate
files listing source files at "make dist" time in the corresponding
source directories. Use the C preprocessor to preprocess .vcprojin
files that include said list files into the actual .vcproj project
files.
Provide a rc file for the pangocairo DLL, too.
Construct and provide in the tarball a pregenerated config.h.win32
which can be used as config.h when building with Visual C without
running any configure script. Provide pregenerarated
module-defs.h.win32, module-defs-lang.c.win32 files too.
Define PANGO_MODULE_PREFIX appropriately in the relevant module source
files if not available from the compilation command line.
Update module-defs-fc.c.win32 and module-defs-win32.c.win32 to match
what the configure script provides.
Behdad Esfahbod [Sat, 13 Mar 2010 05:02:30 +0000 (00:02 -0500)]
[git.mk] Fix bug with parallel make and subdirs
Behdad Esfahbod [Thu, 4 Mar 2010 02:43:09 +0000 (21:43 -0500)]
Bug 594101 - [Indic] needed character class data updates to support unicode 5.1
Random character class changes... It's all Chinese to me.
Behdad Esfahbod [Thu, 4 Mar 2010 01:43:26 +0000 (20:43 -0500)]
Bug 345066 - backspace changes independent indic characters
Behdad Esfahbod [Tue, 2 Mar 2010 03:30:51 +0000 (22:30 -0500)]
Bug 609326 - Complex script shaping failed in the FT2 backend on Windows
Check for face->stream->read == NULL instead of face->stream->base != NULL.
Behdad Esfahbod [Tue, 23 Feb 2010 21:44:55 +0000 (16:44 -0500)]
Make blob unlocking 64bit-safe
Bug 604128 - Applications crash when displaying Hebrew characters
Tor Lillqvist [Mon, 1 Mar 2010 15:53:54 +0000 (17:53 +0200)]
Bug 609326 - Complex script shaping failed in the FT2 backend on Windows
I am not sure whether the root cause is a bug in FreeType, or the way
Pango uses FreeType, or some more exotic mechanism. Anyway, add a
simple workaround.
Kristian Rietveld [Sun, 28 Feb 2010 12:48:22 +0000 (13:48 +0100)]
Bug 608923 - Incorrect/broken ligatures on MacOS
Fix the basic ATSUI to probably work on 64-bit Snow Leopard. The main
culprit was most probably in the usage of CGFontRef, where ATSUFontID
was expected.
Behdad Esfahbod [Tue, 23 Feb 2010 19:14:17 +0000 (14:14 -0500)]
Bug 610791 - checks fail for unused documented symbols
Hookup new symbol.
Behdad Esfahbod [Mon, 22 Feb 2010 21:06:18 +0000 (16:06 -0500)]
Release 1.27.1
Behdad Esfahbod [Mon, 22 Feb 2010 21:03:15 +0000 (16:03 -0500)]
Ensure proper alignment of NullPool
Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X
Behdad Esfahbod [Mon, 22 Feb 2010 19:01:01 +0000 (14:01 -0500)]
Enable introspection for dist again
Behdad Esfahbod [Wed, 17 Feb 2010 20:13:37 +0000 (15:13 -0500)]
Bug 610183 - Pango doesn't compile with gcc 3.3.3
Disable some __attribute__s with gcc 3.
Behdad Esfahbod [Tue, 26 Jan 2010 17:58:01 +0000 (12:58 -0500)]
[HB] Remove unused argument
Behdad Esfahbod [Tue, 26 Jan 2010 17:30:44 +0000 (12:30 -0500)]
[HB/GDEF] Fix bug in building synthetic GDEF table
Behdad Esfahbod [Tue, 12 Jan 2010 20:23:43 +0000 (15:23 -0500)]
Lets see if this shuts introspection down so I can get a release out
Behdad Esfahbod [Tue, 12 Jan 2010 19:05:48 +0000 (14:05 -0500)]
[configure] Remove stale code
Behdad Esfahbod [Tue, 5 Jan 2010 12:21:35 +0000 (13:21 +0100)]
Bug 582697 - Add pango-view --pixels option
Johan Dahlin [Wed, 30 Dec 2009 23:27:38 +0000 (00:27 +0100)]
Do not get the gir and typelib dir for g-i
Since it breaks when using a system install of gobject-introspection
Behdad Esfahbod [Fri, 25 Dec 2009 15:03:12 +0000 (16:03 +0100)]
Simplify cluster analysis
Behdad Esfahbod [Fri, 25 Dec 2009 15:02:34 +0000 (16:02 +0100)]
Always recalculate run width after breaking the run
Before we only did this if justifying. However, computing the width is
essentially free these days, so do it always.
Behdad Esfahbod [Fri, 25 Dec 2009 15:00:11 +0000 (16:00 +0100)]
Zero the space at the end of line when breaking lines
Previously we were not zeroing the final space in the line when breaking
lines and were doing that only after lines were broken. This was broken
since setting layout width to its own logical width (under width=-1) could
result in differently broken lines. That's fixed now.
Problem originally reported on gtk-list on 2009-12-22 by Ben Pfaff.
Behdad Esfahbod [Fri, 25 Dec 2009 14:59:54 +0000 (15:59 +0100)]
Cosmetic
Behdad Esfahbod [Fri, 25 Dec 2009 14:30:57 +0000 (15:30 +0100)]
[modules] Don't warn multiple times
Kristian Rietveld [Thu, 24 Dec 2009 07:49:48 +0000 (08:49 +0100)]
Don't use devel version numbers in Since tags
Kristian Rietveld [Tue, 22 Dec 2009 11:26:12 +0000 (12:26 +0100)]
Revert usage of CoreText in ATSUI backend
Next to CGFontRef we also store an ATSFontRef now. This required
the addition of the public for backends function
pango_atsui_font_get_atsfont(). I have marked this call to be available
starting version 1.27, as Pango is now in the midst of the 1.26 series.
Since we now store the ATSFontRef next to CGFontRef, we can continue to
make use of the ATS API in
pango_cairo_atsui_font_create_metrics_for_context(). The CoreText calls
have been removed. Both Tiger and earlier, and Leopard and later machines
will now use the ATS API.
It is well known that the ATS API has been deprecated in Leopard. In the
near future a brand-new CoreText backend has to be written (from scratch)
that should be installed and used on Macs running Leopard and later.
This patch has been tested on 32-bit Tiger and 64-bit Snow Leopard and
found to be functioning correctly. The build should now work again fine
on Tiger machines, as it has been broken since the introduction of the
CoreText calls.
Behdad Esfahbod [Fri, 6 Nov 2009 20:20:29 +0000 (15:20 -0500)]
Fix FT_Face finalizer call
Johan Dahlin [Fri, 18 Dec 2009 11:14:50 +0000 (09:14 -0200)]
Use introspection.m4
Use introspection.m4 without requiring it to be included in the tree.
https://bugzilla.gnome.org/show_bug.cgi?id=604770