Everywhere: Changes to @html_dom_node and TrueType API

CSS properties fontFamily and fontSize are part of @html_dom_node now,
and the TrueType API only accepts I32 code point streams, so we have
to preprocess UTF-8 streams before rendering text.
This commit is contained in:
Alec Murphy 2025-04-12 18:09:26 -04:00
parent bef1c78c5d
commit df0adc0a15
4 changed files with 130 additions and 22 deletions

View file

@ -212,8 +212,11 @@ U0 @cyberia_navigate()
// background1->ctx->fill(Color(255, 255, 255));
status1->SetText("Rendering page...");
Sleep(100);
node_list->backgroundColor = Color(255, 255, 255);
node_list->color = Color(0, 0, 0);
node_list->fontFamily = "Free Serif";
node_list->fontSize = 16;
@render_node_list(node_list, renderer);
@window_widgets_list* append = renderer->widgets_base;