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]]
inline auto otype_maxp_parse(std::span<std::byte const>
bytes)
20 big_uint32_buf_t version;
21 big_uint16_buf_t num_glyphs;
25 big_uint32_buf_t version;
26 big_uint16_buf_t num_glyphs;
47 hilet version = *
header.version;
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.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377