diff options
author | Christopher Zimmermann <madroach@gmerlin.de> | 2020-07-07 21:02:56 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-22 22:00:38 +0000 |
commit | 9fb05de7d6c57d045b4a88516f3c28cf3cf98722 (patch) | |
tree | 291c178c9b2bb390fcb82ee618d5a67a60b4e9a2 /util.c | |
parent | 58cbf737557f34744b950668e3354ec2f2dae766 (diff) |
use more properties according to XLFD
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) { |