[pango/pangowin32-more-harfbuzz: 8/9] PangoWin32: Filter out Type 1 fonts
- From: Khaled Hosny <khaledh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pangowin32-more-harfbuzz: 8/9] PangoWin32: Filter out Type 1 fonts
- Date: Fri, 26 Jul 2019 11:29:53 +0000 (UTC)
commit 68c6c746c8c8af668ddef610c7cc507a64e006b9
Author: Khaled Hosny <khaledhosny eglug org>
Date: Thu Jul 25 22:50:55 2019 +0200
PangoWin32: Filter out Type 1 fonts
HarfBuzz does not support them so they are unusable now.
pango/pangowin32-fontmap.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 1c0b70f2..658f5dbc 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -53,10 +53,6 @@ struct _PangoWin32Family
# define NTM_PS_OPENTYPE 0x20000
#endif
-#if !defined(NTM_TYPE1)
-# define NTM_TYPE1 0x100000
-#endif
-
#define PANGO_WIN32_TYPE_FAMILY (pango_win32_family_get_type ())
#define PANGO_WIN32_FAMILY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_WIN32_TYPE_FAMILY,
PangoWin32Family))
#define PANGO_WIN32_IS_FAMILY (object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_WIN32_TYPE_FAMILY))
@@ -209,7 +205,7 @@ pango_win32_enum_proc (LOGFONTW *lfp,
PING (("%S: %lu %lx", lfp->lfFaceName, fontType, metrics->ntmFlags));
- if (fontType == TRUETYPE_FONTTYPE || ((metrics->ntmFlags & NTM_PS_OPENTYPE) || (metrics->ntmFlags &
NTM_TYPE1)))
+ if (fontType == TRUETYPE_FONTTYPE || metrics->ntmFlags & NTM_PS_OPENTYPE)
{
lf = *lfp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]