29#define BITMAP_FONT_USE_SPANS
32namespace BUILTIN_FONT {
34#include "bitmap_font_img.c"
35#include "bitmap_font_desc.c"
39#ifdef BITMAP_FONT_USE_SPANS
40 auto *end = font_codepoint_spans +
sizeof( font_codepoint_spans ) /
sizeof(
FONT_SPAN_TYPE);
42 auto ptr = std::upper_bound( font_codepoint_spans, end, aCodepoint,
45 return codepoint < span.
end;
48 if( ptr != end && ptr->start <= aCodepoint )
50 unsigned int index = aCodepoint - ptr->start + ptr->cumulative;
51 return &font_codepoint_infos[ index ];
58 return &bitmap_chars[codepoint];
const FONT_GLYPH_TYPE * LookupGlyph(unsigned int aCodepoint)
The Cairo implementation of the graphics abstraction layer.