Epok Engine

EPOK RUNTIME

epok::find_glyph

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

Metrics are sorted by codepoint at import, so a miss costs log2(count) reads.

Belongs to
epok
Header
font_types.hpp
Overloads
1

Declaration

Declaration
inline const GlyphMetric* find_glyph(const Font& font,uint32_t codepoint)

Metrics are sorted by codepoint at import, so a miss costs log2(count) reads.

ParameterTypeMeaning
fontconst Font &Not documented; consult the linked header.
codepointuint32_tNot documented; consult the linked header.

Returns: const GlyphMetric *. Consult the linked header for its meaning.

Example sketch

C++ example
#include "font_types.hpp"

// Assume these named values have been initialized with valid data:
// const Font & font
// uint32_t codepoint

auto result = epok::find_glyph(font, codepoint);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/font_types.hpp:15

Related members