summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-04-24 17:31:03 +0000
committerKeith Packard <keithp@keithp.com>2003-04-24 17:31:03 +0000
commit70ee88099eac5cb5f75b392dc38ce16852f3b0bd (patch)
tree24573a86ea261c15a25323722a6f8d5b6e945f99
parentf45d39b1fda93c949f4625a9fcee0c482b5cacd7 (diff)
Debug output for unknown ps weight names. ignore italic_angle for PS fonts
as FreeType already checks that
-rw-r--r--src/fcfreetype.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index df78b6e..539c007 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -767,12 +767,23 @@ FcFreeTypeQuery (const FcChar8 *file,
weight = ps_weights[w].value;
break;
}
+ if (FcDebug () & FC_DBG_SCANV)
+ {
+ if (w == NUM_PS_WEIGHTS)
+ printf ("\tunknown PS weight name %s\n", psfontinfo.weight);
+ }
}
- if (psfontinfo.italic_angle < 0)
+#if 0
+ /*
+ * Don't bother with italic_angle; FreeType already extracts that
+ * information for us and sticks it into style_flags
+ */
+ if (psfontinfo.italic_angle)
slant = FC_SLANT_ITALIC;
- else if (psfontinfo.italic_angle >= 0)
+ else
slant = FC_SLANT_ROMAN;
+#endif
if(!foundry)
foundry = FcNoticeFoundry(psfontinfo.notice);