Home
last modified time | relevance | path

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

/aosp_15_r20/external/harfbuzz_ng/src/
H A Dhb-open-type.hh228 struct HBFixed : Type struct
230 static constexpr float shift = (float) (1 << fraction_bits);
235 explicit operator float () const { return to_float (); } in operator float()
236 typename Type::type to_int () const { return Type::v; } in to_int()
237 void set_int (typename Type::type i ) { Type::v = i; } in set_int()
238 float to_float (float offset = 0) const { return ((int32_t) Type::v + offset) / shift; } in to_float()
239 void set_float (float f) { Type::v = roundf (f * shift); } in set_float()