Combine outline thickness, boldness and font glyph index into a single 64-bit key
| 83 | |
| 84 | // Combine outline thickness, boldness and font glyph index into a single 64-bit key |
| 85 | std::uint64_t combine(float outlineThickness, bool bold, std::uint32_t index) |
| 86 | { |
| 87 | return (std::uint64_t{reinterpret<std::uint32_t>(outlineThickness)} << 32) | (std::uint64_t{bold} << 31) | index; |
| 88 | } |
| 89 | |
| 90 | // Thread-safe unique identifier generator |
| 91 | std::uint64_t getUniqueId() noexcept |
no outgoing calls
no test coverage detected