EPOK RUNTIME
Font Types
font_types.hpp · GPU text rendering with the built-in or uploaded font atlas
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.
Module
GPU text rendering with the built-in or uploaded font atlas.
Include this module
C++ include
#include "font_types.hpp"Types
Functions and methods
builtin_cellThe cell mapping src/bitmap_font.rs bakes into the built-in atlas: ASCII 32..126 in order, then the sixteen Spanish extras, and anything else draws '?'.Functionfind_glyphMetrics are sorted by codepoint at import, so a miss costs log2(count) reads.Functionutf8_scalarOne UTF-8 scalar from `text`, advancing `n` past it.FunctionFields, variables and values
advanceExposes `advance` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.FieldbaselineExposes `baseline` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.Fieldclut_xExposes `clut_x` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.Fieldclut_yExposes `clut_y` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldcodepointExposes `codepoint` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.FieldcountExposes `count` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldheightExposes `height` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldheightExposes `height` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.Fieldline_heightExposes `line_height` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldmetricsExposes `metrics` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldpaletteExposes `palette` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldpixelsExposes `pixels` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FielduExposes `u` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.FieldvExposes `v` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.FieldwidthExposes `width` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.FieldwidthExposes `width` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.FieldxExposes `x` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.Fieldx_offsetExposes `x_offset` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.FieldyExposes `y` on `epok::Font` for GPU text rendering with the built-in or uploaded font atlas.Fieldy_offsetExposes `y_offset` on `epok::GlyphMetric` for GPU text rendering with the built-in or uploaded font atlas.Field