using Cairo with ttf font files
- From: Niel Das <indraniel yahoo com>
- To: gtk-perl-list gnome org
- Subject: using Cairo with ttf font files
- Date: Sun, 14 Dec 2008 15:34:37 -0800 (PST)
I'm experimenting with Cairo and would like to use a particular ttf font file for rendering the text. The
Cairo documentation and examples notes that this can be done via using the Font::FreeType module. However, I
am having trouble installing this module:
###########################################
$ tar zxvf Font-FreeType-0.03.tar.gz
$ cd Font-FreeType-0.03
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Font::FreeType
$ make
cp lib/Font/FreeType.pm blib/lib/Font/FreeType.pm
cp lib/Font/FreeType/Face.pm blib/lib/Font/FreeType/Face.pm
cp lib/Font/FreeType/Glyph.pm blib/lib/Font/FreeType/Glyph.pm
/usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap
typemap FreeType.xs > FreeType.xsc && mv FreeType.xsc FreeType.c
cc -c -I/usr/include/freetype2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.03\"
-DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl/5.10/CORE" FreeType.c
FreeType.xs: In function âmake_glyphâ:
FreeType.xs:174: warning: format not a string literal and no format arguments
FreeType.xs: In function âXS_Font__FreeType_qefft2_faceâ:
FreeType.xs:392: warning: format not a string literal and no format arguments
FreeType.xs: In function âXS_Font__FreeType__Glyph_char_codeâ:
FreeType.xs:808: error: lvalue required as left operand of assignment
FreeType.xs: In function âXS_Font__FreeType__Glyph_nameâ:
FreeType.xs:844: warning: format not a string literal and no format arguments
FreeType.xs:851: warning: format not a string literal and no format arguments
FreeType.xs: In function âXS_Font__FreeType__Glyph_outline_decompose_â:
FreeType.xs:1013: warning: assignment from incompatible pointer type
FreeType.xs:1014: warning: assignment from incompatible pointer type
FreeType.xs:1015: warning: assignment from incompatible pointer type
FreeType.xs:1016: warning: assignment from incompatible pointer type
FreeType.xs: In function âXS_Font__FreeType__Glyph_bitmapâ:
FreeType.xs:1055: warning: format not a string literal and no format arguments
make: *** [FreeType.o] Error 1
###########################################
This was being installed against a freetype-2.3.7 version library (the libfreetype6 package in Ubuntu 8.10).
Is there a way to be able render the text alternatively in Cairo via Gtk2::Pango?
Cheers,
Indraniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]