5#include "true_type_font.hpp"
6#include "../geometry/module.hpp"
7#include "../telemetry/telemetry.hpp"
8#include "../utility/utility.hpp"
9#include "../parser/parser.hpp"
13hi_export_module(hikogui.font.otype_coverage);
18 big_int16_buf_t coverage_format;
19 big_int16_buf_t glyph_count;
23 big_int16_buf_t coverage_format;
24 big_int16_buf_t range_count;
28 big_int16_buf_t start_glyph_id;
29 big_int16_buf_t end_glyph_id;
30 big_int16_buf_t start_coverage_index;
40 if (*
header1->coverage_format == 1) {
44 return *item < *value;
53 }
else if (*
header1->coverage_format == 2) {
60 return *item.end_glyph_id < *value;
64 return *
it->start_coverage_index + *glyph_id - *
it->start_glyph_id;
DOXYGEN BUG.
Definition algorithm.hpp:16
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Definition otype_coverage.hpp:17
Definition otype_coverage.hpp:22
Definition otype_coverage.hpp:27
Definition tagged_id.hpp:20