From 68b6296d3333fd38bd5442d2ba087ced481603bc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 1 Mar 2016 16:41:53 +0900 Subject: [PATCH] Add F2DOT14 type --- src/hb-open-type-private.hh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 6a52000..0754ef0 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -662,6 +662,15 @@ typedef SHORT FWORD; /* 16-bit unsigned integer (USHORT) that describes a quantity in FUnits. */ typedef USHORT UFWORD; +/* 16-bit signed fixed number with the low 14 bits of fraction (2.14). */ +struct F2DOT14 : SHORT +{ + //inline float to_float (void) const { return ???; } + //inline void set_float (float f) { v.set (f * ???); } + public: + DEFINE_SIZE_STATIC (2); +}; + /* Date represented in number of seconds since 12:00 midnight, January 1, * 1904. The value is represented as a signed 64-bit integer. */ struct LONGDATETIME -- 2.7.4