diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-29 20:19:23 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-29 20:19:23 +0100 |
commit | 12bb627384ddfd47382b9f1b6464481a58d01ebb (patch) | |
tree | f9760c04ccd4fcd7de214e2acd5b0e43fb530aa9 /dev-libs/m17n-lib/files/m17n-lib-freetype.patch | |
parent | 5fdd950c7ae03e12746a45c86d85861beaacc846 (diff) |
gentoo resync : 29.08.2018
Diffstat (limited to 'dev-libs/m17n-lib/files/m17n-lib-freetype.patch')
-rw-r--r-- | dev-libs/m17n-lib/files/m17n-lib-freetype.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/m17n-lib/files/m17n-lib-freetype.patch b/dev-libs/m17n-lib/files/m17n-lib-freetype.patch new file mode 100644 index 000000000000..59b040c4335b --- /dev/null +++ b/dev-libs/m17n-lib/files/m17n-lib-freetype.patch @@ -0,0 +1,46 @@ +--- /src/font.c ++++ /src/font.c +@@ -1763,10 +1763,10 @@ + + if (format == Mx || format == Mnil) + result = xlfd_parse_name (name, font); +-#ifdef HAVE_FONTCONFIG ++#if defined (HAVE_FONTCONFIG) && defined (HAVE_FREETYPE) + if (format == Mfontconfig || (result < 0 && format == Mnil)) + result = mfont__ft_parse_name (name, font); +-#endif /* HAVE_FONTCONFIG */ ++#endif /* HAVE_FONTCONFIG && HAVE_FREETYPE*/ + return result; + } + +@@ -2352,11 +2352,11 @@ + + if (format == Mx) + name = xlfd_unparse_name (font, 1); +-#ifdef HAVE_FONTCONFIG ++#if defined (HAVE_FONTCONFIG) && defined (HAVE_FREETYPE) + else if (format == Mfontconfig) + name = mfont__ft_unparse_name (font); + +-#endif /* HAVE_FONTCONFIG */ ++#endif /* HAVE_FONTCONFIG && HAVE_FREETYPE*/ + else + MERROR (MERROR_FONT, NULL); + return name; +--- /src/font.h ++++ /src/font.h +@@ -307,10 +307,14 @@ + + extern void mfont__ft_fini (); + ++#ifdef HAVE_FONTCONFIG ++ + extern int mfont__ft_parse_name (const char *name, MFont *font); + + extern char *mfont__ft_unparse_name (MFont *font); + ++#endif /* HAVE_FONTCONFIG */ ++ + #ifdef HAVE_OTF + + extern int mfont__ft_drive_otf (MGlyphString *gstring, int from, int to, |