To program that graphics card I'd build up to a DSL whereby I can specify a bunch of inter-related layout formulas for the compiler to infer the control-flow. Syntactic sugar to match CSS constructs could make for a nice graphics API outputting to the compositor...
The final layout would be cached to speed up animations & scrolling! Or editing the text.
And then we'd need to introduce a desktop through which to interact with the system...
4/5!