summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorChristopher Zimmermann <madroach@gmerlin.de>2020-07-07 21:02:56 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2020-09-22 22:00:38 +0000
commit9fb05de7d6c57d045b4a88516f3c28cf3cf98722 (patch)
tree291c178c9b2bb390fcb82ee618d5a67a60b4e9a2 /util.c
parent58cbf737557f34744b950668e3354ec2f2dae766 (diff)
use more properties according to XLFD
Diffstat (limited to 'util.c')
-rw-r--r--util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/util.c b/util.c
index fc6eb38..ba9d096 100644
--- a/util.c
+++ b/util.c
@@ -391,6 +391,19 @@ faceFlags(FT_Face face)
return flags;
}
+int
+faceIntProp(FT_Face face, const char *name)
+{
+ int rc;
+ BDF_PropertyRec prop;
+
+ rc = FT_Get_BDF_Property(face, name, &prop);
+ if(rc == 0 && prop.type == BDF_PROPERTY_TYPE_INTEGER)
+ return prop.u.integer;
+ else
+ return UNDEF;
+}
+
char *
faceEncoding(FT_Face face)
{