ui_app

module pkg::alloy::draw::glyphssource

Text's glyphs: each rasterized once per face, glyph, size and quarter pixel of x position (pkg::alloy::text, F4 question 2), kept in pages of their own: outlines' coverage in one-channel pages, color glyphs' premultiplied RGBA (F10's emoji) in four-channel ones, drawn at whole pixels in their own colors. A page is cut into 16 plots, each packed in shelves, stamped with the frame it last gave a glyph and listing the keys of the glyphs it holds (F14c). A glyph goes into the most recently used plot of its format with room, else an empty one, else a new page while the format's budget allows, else the least recently used plot the frame being drawn has not used, cleared. A frame needing more than the budget gets pages past it, which are emptied first and released once empty. What drew from a cleared plot stays in the kept texture, and the frames to come pack its glyphs anew as they draw them.