From: Tony Cook Date: Mon, 14 Jan 2019 00:29:53 +0000 (+1100) Subject: use non-deprecated encoding ids for freetype 2 X-Git-Tag: v1.010~18 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/f172cf0100ed8954fac134311286aadef228f6e5?ds=inline use non-deprecated encoding ids for freetype 2 --- diff --git a/FT2/Changes b/FT2/Changes index de2ee1c4..3a90e744 100644 --- a/FT2/Changes +++ b/FT2/Changes @@ -1,3 +1,9 @@ +Imager-Font-FT2 0.97 +==================== + + - use undeprecated encoding symbols. This may fix the build on the + badly patched CentOS 7 Freetype 2. + Imager-Font-FT2 0.96 ==================== diff --git a/FT2/FT2.pm b/FT2/FT2.pm index 93cd707f..074ddb5a 100644 --- a/FT2/FT2.pm +++ b/FT2/FT2.pm @@ -6,7 +6,7 @@ use vars qw($VERSION @ISA); @ISA = qw(Imager::Font); BEGIN { - $VERSION = "0.96"; + $VERSION = "0.97"; require XSLoader; XSLoader::load('Imager::Font::FT2', $VERSION); diff --git a/FT2/freetyp2.c b/FT2/freetyp2.c index 6ee45d79..87d5e571 100644 --- a/FT2/freetyp2.c +++ b/FT2/freetyp2.c @@ -187,16 +187,16 @@ static struct enc_score { /* the selections here are fairly arbitrary ideally we need to give the user a list of encodings available and a mechanism to choose one */ - { ft_encoding_unicode, 10 }, - { ft_encoding_sjis, 8 }, - { ft_encoding_gb2312, 8 }, - { ft_encoding_big5, 8 }, - { ft_encoding_wansung, 8 }, - { ft_encoding_johab, 8 }, - { ft_encoding_latin_2, 6 }, - { ft_encoding_apple_roman, 6 }, - { ft_encoding_adobe_standard, 6 }, - { ft_encoding_adobe_expert, 6 }, + { FT_ENCODING_UNICODE, 10 }, + { FT_ENCODING_MS_SJIS, 8 }, + { FT_ENCODING_MS_GB2312, 8 }, + { FT_ENCODING_MS_BIG5, 8 }, + { FT_ENCODING_MS_WANSUNG, 8 }, + { FT_ENCODING_MS_JOHAB, 8 }, + { FT_ENCODING_OLD_LATIN_2, 6 }, + { FT_ENCODING_APPLE_ROMAN, 6 }, + { FT_ENCODING_ADOBE_STANDARD, 6 }, + { FT_ENCODING_ADOBE_EXPERT, 6 }, }; /*