Open Demonstrandum opened 2 years ago
See https://metalbyexample.com/text-3d/ https://freetype.org/freetype2/docs/reference/ft2-outline_processing.html on getting vertex data from glyphs also, incase text manipulation wants to be done on the vertex level.
Text is not a rectangle with a texture (although it actually is), that would be misleading to conventional
fill
andstroke
functions, which would behave like this is a rectangle, and not stroke/fill the actual text.Text is handled separately, and is regarded as a primitive geometry.
Handle alignment, shaping, styling, sizing, fonts, hinting, option, all within a big record which can be translated to what harfbuzz understands. functions like
text
should be incredibly simple (in contrast) however.