ConscriptRender.h header

#include <ew/app/ConscriptRender.h>

Namespace ew::app

Functions

std::vector< QString > ew::app::renderGlyphSequence(const ew::core::WritingSystem &writing, const QString &word)

Converts word (written in the language's romanization) into the ordered sequence of glyph names that spell it in writing, greedily matching the longest ligature or glyph grapheme at each position and reversing the order for a right-to-left script. A run of characters that maps to no glyph is kept verbatim as its own token, so unmapped text survives. This is the "render in script" step – the sequence a renderer draws.

QString ew::app::renderWordSvg(const ew::core::WritingSystem &writing, const QString &word, int glyphSize=100)

Renders word in writing as a standalone SVG document: each glyph's outline is placed in a glyphSize-pixel cell advancing along the script's writing direction (left-to-right, right-to-left, or top-to-bottom), with any unmapped token drawn as text. This is the script's artwork/asset export – a shareable image of the word in the constructed script. Returns an empty string when word is empty or glyphSize is not positive.