7#include "otype_utilities.hpp"
8#include "../utility/utility.hpp"
9#include "../macros.hpp"
13hi_export_module(hikogui.font.maxp);
15hi_export
namespace hi {
inline namespace v1 {
17[[
nodiscard]] hi_inline
auto otype_maxp_parse(std::span<std::byte const>
bytes)
21 big_uint16_buf_t num_glyphs;
26 big_uint16_buf_t num_glyphs;
48 hi_check(
version == 0x00010000 ||
version == 0x00005000,
"MAXP version must be 0.5 or 1.0");
51 r.num_glyphs = *
header.num_glyphs;
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378