Home
last modified time | relevance | path

Searched defs:HBFixed (Results 1 – 1 of 1) sorted by relevance

/external/harfbuzz_ng/src/
Dhb-open-type.hh145 struct HBFixed : Type struct
147 static constexpr float shift = (float) (1 << fraction_bits);
150 HBFixed& operator = (typename Type::type i ) { Type::operator= (i); return *this; } in operator =()
151 float to_float (float offset = 0) const { return ((int32_t) Type::v + offset) / shift; } in to_float()
152 void set_float (float f) { Type::v = roundf (f * shift); } in set_float()