A frame-local snapshot of the font dependencies and resolved reference ranges of the render tree. More...
#include "donner/svg/components/FontResourceGraph.h"
Classes | |
| struct | Collection |
| Owned result of following the prepared references reachable from a target. More... | |
Public Types | |
| enum class | Purpose { CompleteTarget , RenderedFrame } |
| Choose between full prepared dependencies and completed rendered-frame evidence. More... | |
Public Member Functions | |
| FontResourceGraph (const Registry ®istry) | |
| Snapshot a prepared tree under the document access guard. Does not load any font. | |
| Collection | collect (const Registry ®istry, Entity target, Purpose purpose=Purpose::CompleteTarget) const |
| Collect main-tree instances beneath target, including <use> shadow children, and follow only their resolved paint/mask/marker ranges. A text span includes its containing text root. | |
| void | invalidateDependents (Registry ®istry, std::span< const Entity > changedOwners) const |
| Mark consumers of changed geometry through the references captured before refresh. Ordinary ancestor-layer propagation remains the renderer's existing dirty-entity path. | |
| void | refreshMetadata (const Registry ®istry) |
| Refresh per-instance font evidence after resources change without rebuilding graph edges. | |
A frame-local snapshot of the font dependencies and resolved reference ranges of the render tree.
Component pointers never survive construction. Build before resource refresh removes geometry, then use the same snapshot to invalidate its actual consumers.
| struct donner::svg::components::FontResourceGraph::Collection |
Owned result of following the prepared references reachable from a target.
| Class Members | ||
|---|---|---|
| vector< FontFaceDependency > | dependencies | |
| bool | needsRender = false | |
| bool | resourceLimit = false | |
| vector< Entity > | textRoots | Reached geometry owners, for guarded layout preparation. |
|
strong |
| void donner::svg::components::FontResourceGraph::refreshMetadata | ( | const Registry & | registry | ) |
Refresh per-instance font evidence after resources change without rebuilding graph edges.
| registry | Document registry with current font and instance metadata. |