Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbeb28a8

Browse files
committed
Fix#146 guard against oooold freetype versions
1 parent972920b commitbeb28a8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎NEWS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#systemfonts (development version)
22

3+
* Fixed a compilation error when compiling against very old versions of Freetype
4+
35
#systemfonts 1.3.1
46

57
* Fixed a sanitizer issue with converting variation axis names to tags

‎src/ft_cache.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,18 @@ std::string enc_to_string(FT_Encoding_ enc) {
215215
case FT_ENCODING_UNICODE:return"unicode";
216216
case FT_ENCODING_MS_SYMBOL:return"microsoft symbol";
217217
case FT_ENCODING_SJIS:return"shift jis";
218+
#if (FREETYPE_MAJOR >= 2 && FREETYPE_MINOR >= 8) || FREETYPE_MAJOR > 2
218219
case FT_ENCODING_PRC:return"prc";
220+
#endif
219221
case FT_ENCODING_BIG5:return"big5";
220222
case FT_ENCODING_WANSUNG:return"extended wansung";
221223
case FT_ENCODING_JOHAB:return"johab";
222224
case FT_ENCODING_ADOBE_LATIN_1:return"abobe latin-1";
223225
case FT_ENCODING_ADOBE_STANDARD:return"adobe standard";
224226
case FT_ENCODING_ADOBE_EXPERT:return"adobe expert";
225227
case FT_ENCODING_ADOBE_CUSTOM:return"adobe custom";
228+
case FT_ENCODING_APPLE_ROMAN:return"apple roman";
229+
case FT_ENCODING_OLD_LATIN_2:return"old latin 2";
226230
default:return"";
227231
}
228232
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp