Skip to content

R/Sweave/cairo/freetype bug fix.

3 messages · Hin-Tak Leung, Simon Urbanek

#
--- On Sat, 30/3/13, Hin-Tak Leung <htl10 at users.sourceforge.net> wrote:

            
It is perhaps worth repeating the quote:  'The official R binaries for windows ... are compiled against static libraries of cairo 1.10.2 ... are firmly in the "do not work correctly" category'

The minimum version of cairo to work being 1.11.2. On closer examination, the official bundle (http://www.rforge.net/Cairo/files/cairo-current-win.tar.gz) is built with neither fontconfig nor freetype. So even if it is bumped to current version (1.12.x), it does not work correctly.

Perhaps also wasn't clear in the bugzilla thread - everybody from fontconfig/cairo/freetype involved knew it being the issue so it has never been explicitly spelled out - the problem was (is) with cairo's pdf/ps generation, aided by freetype.
#
On Apr 1, 2013, at 5:18 AM, Hin-Tak Leung wrote:

            
That is not "the official bundle" - that is merely a convenience binary for the Cairo package (not to be confused with cairo back-end in R) for users that don't have cairographics installed on their system. I don't think that CRAN uses this for R builds.
But then why would even the old binary in the Cairo package be an issue? It uses Win32 API, not freetype.

Cheers,
Simon
1 day later
#
--- On Mon, 1/4/13, Hin-Tak Leung <htl10 at users.sourceforge.net> wrote:
Here is a drop-in replacement for the above:
http://sourceforge.net/projects/outmodedbonsai/files/R/cairo-1.12.14%2Bft%2Bfc-win.tar.gz

Besides being over 2 years more up-to-date, cairo (1.12.14) is also built with fontconfig and freetype enabled, and freetype being 2.4.11 + back-ported patch (https://bugzilla.redhat.com/show_bug.cgi?id=891457#c35) so at least there is a a better chance of R working correctly.

The full list of the tar ball is (a superset of the above, due to addition of fontconfig and freetype and their dependencies):
-------
cairo-1.12.14
pixman-0.26.2
libpng-1.5.13
zlib-1.2.7
fontconfig-2.10.1
freetype-2.4.11 (patched)
glib2-2.34.3
expat-2.1.0
bzip2-1.0.6
libffi-3.0.11
gettext-0.18.2
---------
This allows the C-based cairo bug demo (#c10) to build so I am sure it is sufficient for building windows R. At some stage I'll rebuild a less-buggy R 2.15.3 for windows, but not for a few weeks so if somebody wants to beat me to it, please feel free to do so.