mjakeman / text-engine

A lightweight rich text framework for GTK
Other
21 stars 1 forks source link

Fully implement rendering model #23

Open mjakeman opened 2 years ago

mjakeman commented 2 years ago

The text-engine rendering model is a very simplified version of most major browsers:

image

It consists of five individual trees:

Each tree is cached and only updates relevant parts whenever a previous tree is invalidated (see #11). Style nodes and layout nodes will be attached together; there is a one-to-one relationship between them. Style nodes wrap model nodes and index format nodes. I might simplify this by dropping style altogether and make model nodes refer to format directly.

Once implemented, it should be fully documented.