ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
TextEngine.hpp File Reference

Backend-independent text shaping (HarfBuzz), glyph rasterization (FreeType), dynamic atlas packing, layout, hit-testing, and batched rendering. More...

#include "Common.hpp"
#include "CoreTypes.hpp"
#include "UIEnums.hpp"
#include "Style.hpp"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <span>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  ZenitUI::FontMetrics
 Scaled vertical metrics for a font at a given logical pixel size. More...
struct  ZenitUI::TextMeasureSpec
 Typographic parameters governing shaping and measurement. More...
struct  ZenitUI::TextLayoutOptions
 Wrapping, truncation, and whitespace options for TextEngine::layout. More...
struct  ZenitUI::ShapedGlyph
 Single shaped glyph positioned along a laid-out line. More...
struct  ZenitUI::TextLine
 One visual line produced by TextEngine::layout. More...
struct  ZenitUI::TextLayout
 Complete laid-out text block ready for sizing, hit-testing, and rendering. More...
struct  ZenitUI::TextAtlasStats
 Diagnostic counters for the dynamic FreeType glyph atlas. More...
class  ZenitUI::TextEngine
 Per-context font store, HarfBuzz shaper, FreeType glyph atlas, and layout engine. More...

Detailed Description

Backend-independent text shaping (HarfBuzz), glyph rasterization (FreeType), dynamic atlas packing, layout, hit-testing, and batched rendering.

Designed to live as a value member inside UIContext (zero global state). FreeType and HarfBuzz headers are strictly private to src/TextEngine.cpp via PIMPL.