Package Details: perl-font-freetype 0.07-1

Git Clone URL: https://aur.archlinux.org/perl-font-freetype.git (read-only)
Package Base: perl-font-freetype
Description: read font files and render glyphs from Perl using FreeType2
Upstream URL: https://metacpan.org/release/Font-FreeType
Licenses: GPL, PerlArtistic
Submitter: None
Maintainer: jnbek
Last Packager: jnbek
Votes: 1
Popularity: 0.000000
First Submitted: 2010-11-30 19:16
Last Updated: 2016-04-07 16:52

Latest Comments

fragfutter commented on 2013-08-18 08:52

interface for freetype changed. See
https://rt.cpan.org/Public/Bug/Display.html?id=32713


--- Font-FreeType-0.03/FreeType.xs 2004-09-11 22:50:44.000000000 +0200
+++ Font-FreeType-0.03-mod/FreeType.xs 2013-08-17 09:53:37.779638871 +0200
@@ -226,7 +226,7 @@
#define QEFFT2_CALL_TIDY FREETMPS; LEAVE;

static int
-handle_move_to (FT_Vector *to, void *data)
+handle_move_to (const FT_Vector *to, void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
double x = QEFFT2_NUM(to->x), y = QEFFT2_NUM(to->y);
@@ -243,7 +243,7 @@
}

static int
-handle_line_to (FT_Vector *to, void *data)
+handle_line_to (const FT_Vector *to, void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
double x = QEFFT2_NUM(to->x), y = QEFFT2_NUM(to->y);
@@ -260,7 +260,7 @@
}

static int
-handle_conic_to (FT_Vector *control, FT_Vector *to, void *data)
+handle_conic_to (const FT_Vector *control, const FT_Vector *to, void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
double x = QEFFT2_NUM(to->x), y = QEFFT2_NUM(to->y);
@@ -292,7 +292,7 @@
}

static int
-handle_cubic_to (FT_Vector *control1, FT_Vector *control2, FT_Vector *to,
+handle_cubic_to (const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to,
void *data)
{
struct QefFT2_Outline_Decompose_Extra_ *extra = data;
@@ -805,7 +805,8 @@
char_code = FT_Get_First_Char(face, &glyph_idx);
while (glyph_idx) {
if (glyph_idx == glyph->index) {
- RETVAL = newSVuv((UV) glyph->char_code = char_code);
+ glyph->char_code = char_code;
+ RETVAL = newSVuv((UV) glyph->char_code);
break;
}
char_code = FT_Get_Next_Char(face, char_code, &glyph_idx);
~