Behdad Esfahbod [Thu, 24 Jul 2014 19:03:13 +0000 (15:03 -0400)]
Accept PANGOCAIRO_BACKEND=fc as alias to fontconfig
Behdad Esfahbod [Wed, 23 Jul 2014 16:27:48 +0000 (12:27 -0400)]
Fix introspection includes
Inspired by:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-pango
Behdad Esfahbod [Wed, 23 Jul 2014 16:21:53 +0000 (12:21 -0400)]
[pangocairo] Allow backend selection
Based on:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-pango/0008-allow-backend-selection.mingw.patch
Behdad Esfahbod [Wed, 23 Jul 2014 15:42:13 +0000 (11:42 -0400)]
Give CC to gir-scanner
From:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-pango/0006-give-cc-to-gir-scanner.mingw.patch
Behdad Esfahbod [Mon, 14 Jul 2014 16:53:12 +0000 (12:53 -0400)]
Bug 733137 - Don't force no static builds on Win32
Behdad Esfahbod [Fri, 11 Jul 2014 16:05:45 +0000 (12:05 -0400)]
Prevent HarfBuzz from using REPLACEMENT CHARACTER
Needed after this:
https://github.com/behdad/harfbuzz/commit/
efe74214bbb68eaa3d7621e73869b5d58210107e
Chun-wei Fan [Tue, 1 Jul 2014 08:04:51 +0000 (16:04 +0800)]
MSVC 2012/2013 Support: Update Property Sheet Creation
Be a bit more carful when copying and updating the property sheets, so that
we don't accidently change fields with '10' in them that are actually not
indicating the Visual Studio version.
Chun-wei Fan [Tue, 1 Jul 2014 05:46:46 +0000 (13:46 +0800)]
Build: Provide Simple Support for MSVC 2012/2013
As the Visual Studio 2012/2013 are only slightly different from the Visual
Studio 2010 projects, we can provide support for them by using scripts to
copy the Visual Studio 2010 projects, and update the specific parts as
necessary. Thus, there would be little maintenance overhead for these as
only the 2010 projects need to be kept up-to-date as a result.
This might change when we do get the stack working with WinRT/Metro, but
that's going to be another totally different issue.
Sebastian Dröge [Thu, 26 Jun 2014 11:15:38 +0000 (13:15 +0200)]
pango: Don't fail to initialize if LC_CTYPE is not set
g_once_init_leave() does not work on NULL, and just returns... and
all future calls to g_once_init_enter() will block forever.
Happens on Android, so let's just fall back to the C locale if there's
nothing else we can do.
https://bugzilla.gnome.org/show_bug.cgi?id=732276
Matthias Clasen [Tue, 24 Jun 2014 17:38:32 +0000 (13:38 -0400)]
Bump version
Matthias Clasen [Tue, 24 Jun 2014 17:29:00 +0000 (13:29 -0400)]
1.36.5
Behdad Esfahbod [Tue, 24 Jun 2014 16:26:37 +0000 (10:26 -0600)]
Revert "build: Require Harfbuzz 0.9.29"
This reverts commit
e728c4c3659cc0ead406344b4cf98c0676cb769e.
See previous commit for explanation.
Behdad Esfahbod [Tue, 24 Jun 2014 16:26:08 +0000 (10:26 -0600)]
Revert "ot-info: Update after API break in HarfBuzz"
This reverts commit
4901fb74b3c1137d13a6b7e4e8784577c1816e47.
The removed API was added back to HarfBuzz. So, no need for this.
Matthias Clasen [Mon, 23 Jun 2014 18:05:51 +0000 (14:05 -0400)]
Bump version
Matthias Clasen [Mon, 23 Jun 2014 17:35:22 +0000 (13:35 -0400)]
1.36.4
Emmanuele Bassi [Fri, 20 Jun 2014 10:39:15 +0000 (11:39 +0100)]
ot-info: Update after API break in HarfBuzz
Emmanuele Bassi [Fri, 20 Jun 2014 10:38:19 +0000 (11:38 +0100)]
build: Require Harfbuzz 0.9.29
There has been an API change in HB:
-hb_ot_layout_language_get_required_feature_index
+hb_ot_layout_language_get_required_feature
Commit:
da132937989acb4d8ca9bd41c79f98750e7dda30
So we need to bump the dependency.
Emmanuele Bassi [Fri, 20 Jun 2014 10:26:33 +0000 (11:26 +0100)]
Fix introspection annotation
Missing colon broke the g-ir-scanner.
Matthias Clasen [Tue, 10 Jun 2014 23:46:55 +0000 (19:46 -0400)]
Update PangoWeight documentation
A while ago, we added a weight of 1000 to the enumeration, but
neglected to update the allowed values in the documentation.
Fix that.
Chun-wei Fan [Mon, 9 Jun 2014 02:49:53 +0000 (10:49 +0800)]
MSVC 2010+ Projects: Update "Installation" Process
Currently, due to the way that Visual Studio 2010+ projects are handled,
the "install" project does not re-build upon changes to the sources, as it
does not believe that its dependencies have changed, although the changed
sources are automatically recompiled. This means that if a part or more
of the solution does not build, or if the sources need some other fixes
or enhancements, the up-to-date build is not copied automatically, which
can be misleading.
Improve on the situation by forcing the "install" project to trigger its
rebuild, so that the updated binaries can be copied. This does trigger an
MSBuild warning, but having that warning is way better than not having an
up-to-date build, especially during testing and development.
Matthias Clasen [Sat, 31 May 2014 04:19:57 +0000 (00:19 -0400)]
testsuite: put installed tests in the right place
Follow the prevailing practice and put the installed tests
into $libdir/installed-tests/$PACKAGE instead of
$pkglibdir/installed-tests.
Behdad Esfahbod [Thu, 8 May 2014 21:13:52 +0000 (17:13 -0400)]
Typo
Oops
Behdad Esfahbod [Thu, 8 May 2014 21:00:30 +0000 (17:00 -0400)]
Bug 729840 - Missing annotation for get_color
Behdad Esfahbod [Thu, 10 Apr 2014 03:50:50 +0000 (20:50 -0700)]
[win32] Fixup previous commit
Behdad Esfahbod [Wed, 9 Apr 2014 23:55:12 +0000 (16:55 -0700)]
[win32] Improve threadsafety
Based on patch from Chun-wei Fan. Original patch comments:
Improve the thread-safety situation on Windows by only allowing the
pango_aliases_ht GHashTable be populated once.
Pango on Windows is not yet thread-safe, but with the thread safety
patch on Cairo-Win32-Font[1], it does seem that the test program
test-pangocairo-threads does not crash randomly anymore, which seems
to be an improvement.
[1]: https://bugs.freedesktop.org/show_bug.cgi?id=73012
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=695913
Chun-wei Fan [Wed, 2 Apr 2014 03:52:01 +0000 (11:52 +0800)]
MSVC Builds: Fix "Installation" for MSVC 2010 and Later
We need to create $(prefix)\etc\pango before trying to create a default
pango.aliases file, otherwise it wouldn't work.
Matthias Clasen [Tue, 18 Mar 2014 01:17:12 +0000 (21:17 -0400)]
Bump version
Matthias Clasen [Tue, 18 Mar 2014 00:47:36 +0000 (20:47 -0400)]
Update the pango_color_parse docs
https://bugzilla.gnome.org/show_bug.cgi?id=711061
Chun-wei Fan [Tue, 25 Feb 2014 05:16:51 +0000 (13:16 +0800)]
MSVC Builds: Update Introspection Build Process
GObject-Introspection was recently changed to support acquiring the name of
the DLL from a library (.lib, etc) that was passed into g-ir-scanner on
Windows, like the *nix builds, instead of directly passing in the name of
the DLL.
This updates the introspection build process, so that introspection files
for Pango can continue to be properly built.
Chun-wei Fan [Fri, 21 Feb 2014 05:38:04 +0000 (13:38 +0800)]
build/Makefile-msvcproj.am: Remove Generated Intermediate Files
Delete libpangocairo.vs10.sourcefiles and
libpangocairo.vs10.sourcefiles.filters once we are done with them, so to
fix make distcheck
Akira TAGOH [Wed, 12 Feb 2014 09:39:27 +0000 (18:39 +0900)]
Avoid a crash when FT_Face is null
https://bugzilla.gnome.org/show_bug.cgi?id=724006
Behdad Esfahbod [Tue, 11 Feb 2014 17:37:33 +0000 (12:37 -0500)]
Fix cairotwisted curve_length()
Iain Lane [Fri, 7 Feb 2014 13:59:14 +0000 (13:59 +0000)]
Fix tests for builddir != srcdir by setting G_TEST_{SRC,BUILD}DIR
Matthias Clasen [Tue, 4 Feb 2014 19:09:42 +0000 (14:09 -0500)]
1.36.2
Behdad Esfahbod [Thu, 16 Jan 2014 03:37:21 +0000 (11:37 +0800)]
[coretext] Default DPI to 96 instead of 72
Chun-wei Fan [Mon, 13 Jan 2014 07:42:29 +0000 (15:42 +0800)]
MSVC Introspection Build: Fix build
Link and run the dumper program firstly against the build of ATK from
the same tarball, then linking to the other dependent libraries which
this build of ATK was built against before finally trying to link and
run against other existing builds.
This is especially important for unstable releases, as APIs are often
added and dependent upon during development cycles.
Chun-wei Fan [Mon, 13 Jan 2014 06:03:50 +0000 (14:03 +0800)]
build/introspection-msvc.mak: Fix Default typelib Path
Chun-wei Fan [Fri, 10 Jan 2014 08:58:38 +0000 (16:58 +0800)]
MSVC Builds: Rework Introspection Build
The current approach of building the introspection files for Pango works,
but is often cumbersome as one needs to set many environmental variables
before launching a solution file, which runs a Windows batch script to
generate the .gir/.typelib files. It was also possible to hand-run the
batch script from the Visual Studio command prompt, but even more
environmental variables need to be set.
This changes the approach to build the introspection files using an NMake
Makefile (but elimating from the Visual Studio Project Files the part to
build the introspection files) to:
-Make it clearer to the person building the introspection files what
environmental variables are needed, specifically for PKG_CONFIG_PATH and
MINGWDIR and CFG (formerly CONF). Setting stuff like VSVER, PLAT and
BASEDIR is no longer required, which was a bit clunky.
-Allows some more easier flexibility on the build of the intropsection
files.
Behdad Esfahbod [Sun, 15 Dec 2013 23:42:17 +0000 (18:42 -0500)]
Bug 720379 - SIGFPE in pango_layout_iter_get_char_extents()
Untested.
Behdad Esfahbod [Tue, 3 Dec 2013 23:03:11 +0000 (18:03 -0500)]
Fix build --withincluded-modules
According to Doug Felt:
pango's configure dies with --with-included-modules=yes, because when
have_libthai is true, thai_modules ends up being ",thai-lang", and
all_modules (and included_modules) ends up containing ',,'.
for module in $included_modules;
ends up with module='' and the case $module falls back to default, which
calls as_fn_error.
Behdad Esfahbod [Tue, 3 Dec 2013 21:22:02 +0000 (16:22 -0500)]
[git.mk] Update
Chun-wei Fan [Fri, 13 Dec 2013 09:01:38 +0000 (17:01 +0800)]
modules/basic/basic-win32.c: Silence a Warning
The length is an unsigned int, and it is already enforced that it must
be greater or equal to 0 in this source file, so fix the type declaration.
Chun-wei Fan [Thu, 5 Dec 2013 09:48:46 +0000 (17:48 +0800)]
MSVC 2008 Projects: More cleanups
We don't have the *_FC configs in the Pango and PangoWin32 projects
anymore, so get rid of all remaining traces of them in these projects, like
the MSVC 2010 ones.
Chun-wei Fan [Tue, 3 Dec 2013 09:20:06 +0000 (17:20 +0800)]
Remove the original "big" MSVC2010 property sheet
Chun-wei Fan [Tue, 3 Dec 2013 09:18:30 +0000 (17:18 +0800)]
Split up the MSVC 2010 property sheets
Split up the property sheets so that their maintenance can be simplified
Chun-wei Fan [Tue, 3 Dec 2013 08:16:29 +0000 (16:16 +0800)]
Split up the MSVC 2008 Property Sheets
...so that the maintenance of these files would be easier
Chun-wei Fan [Tue, 3 Dec 2013 07:15:26 +0000 (15:15 +0800)]
build/win32/vs*/README.txt: Update build information
As there is no longer a pango_fc.sln solution file, tell the people to use
the *_fc configs if building PangoFT2 and PangoCairo with FreeType/
FontConfig support with the Visual Studio Projects is desired.
Chun-wei Fan [Tue, 3 Dec 2013 07:10:21 +0000 (15:10 +0800)]
Visual Studio 2010 Projects: Improve Optimization
Turn on Whole Program Optimization/Link Time Code Generation for release
builds to improve optimization a bit
Chun-wei Fan [Tue, 3 Dec 2013 06:59:45 +0000 (14:59 +0800)]
Cleanup the Visual Studio 2008 Project Files
Combine the non-PangoFT2 and PangoFT2 builds into one single solution file
and remove configs in the Pango and PangoWin32 projects that aren't really
necessary. Also use Link Time Code Generation for release builds to
improve optimization a bit.
Chun-wei Fan [Tue, 3 Dec 2013 06:36:20 +0000 (14:36 +0800)]
build/win32/vs10/pango.propsin: Fix .lib installation
Missed out the $(Platform) part when building the FontConfig flavor, so
make it up.
Chun-wei Fan [Tue, 3 Dec 2013 05:17:26 +0000 (13:17 +0800)]
build/win32/vs10/pango.propsin: Improve DLL "installation"
Make the DLL installation more flexible, as one might still prefer to use
the autotools style DLL naming for the Visual Studio builds.
Chun-wei Fan [Tue, 3 Dec 2013 04:47:03 +0000 (12:47 +0800)]
build/win32/vs10/pangowin32.vcxproj: Clean up
We don't really need the NoFCDef here, as this DLL has nothing to do with
FreeType, like the main Pango DLL. FreeType matters when we build
PangoCairo (and the cxx-test.c and pango-view) though.
Chun-wei Fan [Tue, 3 Dec 2013 04:41:08 +0000 (12:41 +0800)]
build/win32/vs10/pango.vcxprojin: Clean up
We don't really need to NoFCDef here, so remove that.
Chun-wei Fan [Tue, 3 Dec 2013 04:39:17 +0000 (12:39 +0800)]
Update config.h.win32.in
Make its entries more consistent to the autotools-generated config.h.in,
and update MODULE_VERSION to 1.8.0, as that was missed.
Philip Withnall [Fri, 29 Nov 2013 12:38:07 +0000 (12:38 +0000)]
pango-utils: Fix a potential strtol(NULL) call
parse_int() is called by pango_parse_enum(), which permits the enum
string to be NULL. This string is passed directly through to parse_int()
and then to strtol(), which is tagged as nonnull.
Found by scan-build.
https://bugzilla.gnome.org/show_bug.cgi?id=719549
Chun-wei Fan [Mon, 2 Dec 2013 09:45:15 +0000 (17:45 +0800)]
build/Makefile-msvcproj.am: Cleanup
Remove lines that were left out in the last commit
Chun-wei Fan [Mon, 2 Dec 2013 09:34:51 +0000 (17:34 +0800)]
Clean up the Visual Studio 2010 projects
Use a single solution file for the non-PangoFT2 and PangoFT2 builds, and
use a single PangoCairo project for these builds too. Also get rid of
configurations that we don't really need in the Pango and PangoWin32
projects.
Chun-wei Fan [Mon, 25 Nov 2013 08:07:22 +0000 (16:07 +0800)]
build/win32/vs10/gengir.vcxproj: Add PlatformToolset tag
This makes it easier to upgrade to Visual Studio 2012/2013 formats, like
the other *.vcxproj files in Pango.
Matthias Clasen [Mon, 11 Nov 2013 16:41:42 +0000 (11:41 -0500)]
Bump version
Matthias Clasen [Mon, 11 Nov 2013 16:01:39 +0000 (11:01 -0500)]
1.36.1
Behdad Esfahbod [Mon, 30 Sep 2013 16:50:41 +0000 (12:50 -0400)]
Update git.mk
Behdad Esfahbod [Fri, 27 Sep 2013 19:09:56 +0000 (15:09 -0400)]
Doc fixups
Behdad Esfahbod [Fri, 27 Sep 2013 18:36:51 +0000 (14:36 -0400)]
Bug 685167 - migrate docs to no-tmpl flavour
Patch from Rafał Mużyło.
Owen W. Taylor [Wed, 25 Sep 2013 18:50:15 +0000 (14:50 -0400)]
pango_attr_iterator_get_font(): handle scaling absolute font sizes
When handling PANGO_ATTR_SCALE on a font description with an absolute
size, properly preserve the absolute flag when setting the scaled
size.
https://bugzilla.gnome.org/show_bug.cgi?id=708778
Matthias Clasen [Mon, 23 Sep 2013 10:41:36 +0000 (06:41 -0400)]
1.36.0
Behdad Esfahbod [Fri, 20 Sep 2013 17:14:12 +0000 (13:14 -0400)]
Bug 708432 - gravity_map in fonts.c: "Upside-Down" should be
PANGO_GRAVITY_NORTH instead of PANGO_GRAVITY_SOUTH?
Matthias Clasen [Tue, 10 Sep 2013 21:34:04 +0000 (17:34 -0400)]
Correct an annotation
The annotation for pango_layout_set_attributes should be
'transfer none', not 'transfer full'. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=707874
Benjamin Otte [Mon, 9 Sep 2013 15:12:50 +0000 (17:12 +0200)]
layout: Never return NULL from pango_layout_get_text()
layouts get initialized with text == NULL as an optimization (avoid a
malloc). But pango_layout_set_text (layout, NULL, 0); will set the text
to "", so it is impossible to set a NULL text.
Fxies crashers in various places that assume NULL return values never
happen.
https://bugzilla.gnome.org/show_bug.cgi?id=707659
Jehan [Wed, 4 Sep 2013 01:04:47 +0000 (13:04 +1200)]
Bug 707131 - removing useless test.
Since pango_scan_int() would return FALSE if the scanned value was over
INT_MAX; and the reference out value's type is an int, (n > INT_MAX)
test is unecessary.
If pango_scan_int() behavior was to be changed to accept long
int, an explicit test should be added (or the PangoAttrSize
type updated to handle long int too).
Matthias Clasen [Mon, 2 Sep 2013 18:55:57 +0000 (14:55 -0400)]
1.35.3
Jehan [Fri, 30 Aug 2013 15:02:41 +0000 (03:02 +1200)]
Bug 707131 - getting rid of the arbitrary MAX_SIZE for font.
Since the value is stored as an int, no reason to use any other value
than INT_MAX.
Behdad Esfahbod [Fri, 30 Aug 2013 18:14:22 +0000 (14:14 -0400)]
Bug 703995 - Compiler warnings about strict aliasing
Patch from Akira TAGOH.
Matthias Clasen [Tue, 20 Aug 2013 03:01:33 +0000 (23:01 -0400)]
1.35.2
Behdad Esfahbod [Sun, 4 Aug 2013 22:13:22 +0000 (18:13 -0400)]
Bug 705007 - sometimes the ordering of text is reversed
Fix all-RTL reordering. Oops!
Kristian Rietveld [Wed, 12 Jun 2013 17:32:03 +0000 (19:32 +0200)]
Bypass line reordering if all runs have the same direction
Matthias Clasen [Fri, 21 Jun 2013 13:24:25 +0000 (09:24 -0400)]
Bump version
Matthias Clasen [Fri, 21 Jun 2013 13:14:16 +0000 (09:14 -0400)]
1.35.1
Matthias Clasen [Sat, 8 Jun 2013 01:10:44 +0000 (21:10 -0400)]
Avoid hard-dep on bleeding-edge GLib
If new test api is not available, do without it. In this
case, the tests won't work installed, but they should still
work uninstalled and in distcheck.
Behdad Esfahbod [Thu, 6 Jun 2013 23:57:55 +0000 (19:57 -0400)]
Don't change fonts just for space characters
Back in the days we used to always use the font from surrounding runs
for any space characters. I changed that when I found that rendering
MathML results in hexboxes when a font doesn't have the space characters
needed...
Forward to these days: HarfBuzz will silently compatibility-decompose
any space character to the ASCII space. And looks like it's important
for Mongolian to not break runs around NNBSP. As such, go back to never
choosing a font just for space characters.
Seems to work, though more testing is needed.
Bug 701652 - wrong shaped classic Mongolian word suffixes
Matthias Clasen [Fri, 31 May 2013 22:02:03 +0000 (18:02 -0400)]
Make tests installable
This ensures that tests are run continuously on ostree.gnome.org.
Behdad Esfahbod [Mon, 27 May 2013 21:24:04 +0000 (17:24 -0400)]
Bug 700577 - Support invalid UTF-8 chars in pango_find_paragraph_boundary()
Colin Walters [Fri, 24 May 2013 17:04:49 +0000 (18:04 +0100)]
build: Add --with(out)-cairo configure option
Some builders (e.g. GNOME and jhbuild) hard depend on pangocairo,
and we really don't want to emit a build of pango without support
for it. So jhbuild can specify --with-cairo, and we'll get
a hard error.
Behdad Esfahbod [Wed, 15 May 2013 18:40:45 +0000 (14:40 -0400)]
Require cairo >= 1.12.10
Needed for threadsafety bug fixes.
Bug 700247 - test-pangocairo-threads segfaults
Matthias Clasen [Mon, 13 May 2013 15:34:10 +0000 (11:34 -0400)]
1.34.1
José Aliste [Wed, 1 May 2013 03:13:45 +0000 (23:13 -0400)]
don't break words between a letter adjacent to a number
Newer Unicode specs (6.2 for instance)
say that one should not break between letter or numbers
that are adjacent. This also makes us to match word selection
with many text capable apps.
Behdad Esfahbod [Thu, 2 May 2013 17:41:32 +0000 (13:41 -0400)]
Fix CoreText font scaling again
This partially reverts
25ad29b488d3e2ae10e4fee25602409fa39207f1
which itself was a revert. Apparently we want the change in
CoreText, but not on Win32...
See mailing list discussion.
Behdad Esfahbod [Fri, 26 Apr 2013 18:50:57 +0000 (14:50 -0400)]
Update win32/coretext shaper signature
Behdad Esfahbod [Thu, 25 Apr 2013 19:24:12 +0000 (15:24 -0400)]
Minor
Behdad Esfahbod [Thu, 4 Apr 2013 23:26:17 +0000 (19:26 -0400)]
Bug 696238 - PangoAttrFilterFunc vs pango_attr_list_filter docs
Matthias Clasen [Tue, 26 Mar 2013 02:09:54 +0000 (22:09 -0400)]
1.34.0
Matthias Clasen [Mon, 18 Mar 2013 22:35:49 +0000 (18:35 -0400)]
1.33.10
Matthias Clasen [Mon, 18 Mar 2013 22:31:03 +0000 (18:31 -0400)]
1.33.9
Chun-wei Fan [Mon, 18 Mar 2013 08:37:01 +0000 (16:37 +0800)]
Visual Studio Builds: Fix the Debug configs
We need to link to the Debug CRT for debug configs, not the release CRTs,
as linking to different CRTs will cause trouble during debugging.
Behdad Esfahbod [Fri, 15 Mar 2013 10:32:36 +0000 (06:32 -0400)]
[test] Fix scale
Behdad Esfahbod [Fri, 15 Mar 2013 10:13:09 +0000 (06:13 -0400)]
Bug 682846 - Use G_DEFINE_TYPE in pangowin32-fontmap
Based on patch from Chun-wei Fan.
Behdad Esfahbod [Fri, 15 Mar 2013 10:03:52 +0000 (06:03 -0400)]
Call g_type_init if necessary
Behdad Esfahbod [Fri, 15 Mar 2013 10:01:08 +0000 (06:01 -0400)]
Remove unused code
Behdad Esfahbod [Fri, 15 Mar 2013 09:57:52 +0000 (05:57 -0400)]
Port PangoWin32 to use GWeakRef
Patch from Chun-wei Fan.
Behdad Esfahbod [Fri, 15 Mar 2013 09:56:14 +0000 (05:56 -0400)]
Use g_snprintf()
Chun-wei Fan [Wed, 6 Mar 2013 07:58:29 +0000 (15:58 +0800)]
Update Visual Studio property sheets
Add commands to be used for building introspection files.