Commit graph

250 commits

Author SHA1 Message Date
652396a18c System/Libraries/Html/Renderer: Apply CSS display rules in order 2025-04-23 09:22:38 -04:00
22d5ce4b4c Meta: Update Default.css 2025-04-22 15:45:55 -04:00
453d6f35a5 System/Libraries/Css+Html: Handle text-align: left 2025-04-22 15:45:39 -04:00
1cf0007b0b System/Libraries/Css+Html: Handle display: inline-block 2025-04-22 15:34:17 -04:00
49666d7ea9 Everywhere: Kill app_event_loop on window close 2025-04-21 19:57:19 -04:00
ce44a8db0f Include/Gui: Make @gui_event_loop() available as app_event_loop 2025-04-21 19:49:59 -04:00
d8fe2f0899 System/Libraries/Graphics2D+Widget: Use CAlloc2() 2025-04-21 19:49:25 -04:00
1b5635962f System/Core: Use CAlloc2() 2025-04-21 19:48:33 -04:00
9d774cfc23 System/Setup/Environment: Add CAlloc2(), MAlloc2() 2025-04-21 19:45:51 -04:00
ea724e0795 Meta: Bump QEMU smp cores to 6 2025-04-21 19:44:02 -04:00
e04b8e6fb4 System/Libraries/Graphics2D: Use Plot2D() for HLine2D() 2025-04-21 09:53:02 -04:00
75a2bb10c4 System/Libraries/Css+Html: Implement text-decoration-line: line-through 2025-04-21 09:31:00 -04:00
d723c7d9df System/FFI/TrueType: Reduce memory pool size from 32MB to 8MB
The maximum allocated memory by stbtt_RenderText() has never exceeded
2MB during testing. 8MB ought to be enough for anybody :^)
2025-04-20 10:09:58 -04:00
000cf3cea2 Settings/config.json: Use Liberation as default TrueType font family 2025-04-20 09:33:28 -04:00
39973f452d Meta: Suppress compiler warnings 2025-04-19 21:38:13 -04:00
a322c06850 Everywhere: Give stbtt its own 32MB static memory pool
At boot time, we preallocate 32MB of RAM to reuse for all malloc()
requests by stbtt_RenderText(), which should be more than enough for the
primary use case (browsing web pages).
2025-04-19 21:01:14 -04:00
b40820272f System/Setup/Environment+FFI/LibC: Increase calloc/malloc mem_tasks
Give LibC malloc() and calloc() an array of 16 mem_tasks each, for now.
We will probably be removing this, in favor of giving each non-HolyC
library its own static memory pool, as we will do with stb_truetype.h in
a forthcoming commit.
2025-04-19 20:33:30 -04:00
b7cab3b419 System/Libraries/Html/Renderer: Use renderer->task instead of erythros_mem_task where applicable 2025-04-19 16:28:14 -04:00
d56a092dde System/FFI/LibC: Use Round-robin mem_task selection for calloc 2025-04-19 16:26:09 -04:00
15926654f8 System/Core/Compositor: Show available TrueType fonts in system log 2025-04-19 16:07:17 -04:00
b9eb4cb874 System/Libraries/Graphics2D: Alloc c2d wrapper functions off of Adam task's code heap 2025-04-19 16:00:21 -04:00
bf3112bdd6 Applications/Internet/Cyberia: Initialize status2 (hover) label with empty string 2025-04-19 15:57:10 -04:00
9550f24f73 System/Core/Compositor: Set TrueType font defaults from global config 2025-04-19 14:34:14 -04:00
dbc6976380 Meta: Update Settings/config.json 2025-04-19 14:33:42 -04:00
a15de6eb33 System/Libraries/Graphics2D: Update @get_truetype_text_width() to use @stbtt_GetTextWidth() 2025-04-19 14:18:15 -04:00
80f691385a System/Utilities/TrueType: Add @stbtt_GetTextWidth() 2025-04-19 14:17:46 -04:00
546fd54a62 System/Libraries/Graphics2D: Update @get_truetype_text_width() to include advance 2025-04-19 10:42:26 -04:00
78ba717732 System/Utilities/TrueType: Update stbtt_RenderText() API to include advance 2025-04-19 10:41:55 -04:00
33b795fa93 System/Libraries/String: Add StrLenI32() 2025-04-19 10:41:11 -04:00
c54cd6ea51 System: Use Settings/config.json for debug options 2025-04-19 08:13:58 -04:00
3448acac38 System/Setup/Environment: Remove duplicate erythros_mem_task 2025-04-19 07:54:42 -04:00
c214ba9552 Meta: clang-format 20 2025-04-19 07:54:18 -04:00
3e1007ca21 Meta: Update .gitignore 2025-04-19 07:36:54 -04:00
186b2d3ded src/openlibm: rm object files 2025-04-19 07:34:56 -04:00
e7d8b456aa Everywhere: Update to clang-format 20 2025-04-19 07:31:54 -04:00
402d802d2f System/Libraries/Html/Renderer: Set text underline height to 2px 2025-04-16 19:43:18 -04:00
f0a72aeaa5 Applications/Internet/Cyberia: Add hanbaga menu boilerplate
Not functional yet, just laying the foundation.
2025-04-16 18:56:17 -04:00
d9e4c186e4 Applications/Internet/Cyberia: Press Enter to submit form with only one input element 2025-04-16 18:55:37 -04:00
5192ae34ec System/Libraries/Html/Renderer: Set focus is autofocus attribute is present 2025-04-16 18:21:31 -04:00
5ea8809a34 System/Libraries/Html/Tokenizer: Support empty attributes 2025-04-16 18:04:54 -04:00
ebfaa0254c Applications/Internet/Cyberia.app: Initial support for FORM method=get
Now we can search with simple engines like Wiby and FrogFind.
2025-04-16 15:03:59 -04:00
4ef542cf32 System/Libraries/Html/Renderer: Keep track of form element widgets
Save a pointer to the corresponding Gui widget for each form element as
an attribute in the @html_dom_node.

I'm not a fan of doing this, but it is probably one of the better
options considering the way things are currently implemented, and the
remaining work to be done.
2025-04-16 14:57:33 -04:00
34a5985cf0 Meta: Update Default.css 2025-04-16 14:56:46 -04:00
99268200f4 System/Libraries/Html/Renderer: Fix BGR/RGB flip in background
This is no longer needed and breaks things, so let's revert it.
2025-04-16 14:55:31 -04:00
24500f52a3 System/Libraries/(Css,Graphics2D,Html): Support underlined text
This commit adds the necessary functions to minimally implement support
for CSS text-decoration: underline.
2025-04-16 14:53:16 -04:00
622c35e038 System/Libraries/Html/Renderer: Apply CSS and HTML Element attribute width/height values to form elements 2025-04-16 10:36:51 -04:00
e60ffee006 System/Libraries/Html/Renderer: Unset node->display_block based on CSS value 2025-04-16 10:19:50 -04:00
e3d6121fe3 System/Libraries/Css/Tokenizer: Include single/double quoted tokens in CSS value 2025-04-16 10:09:29 -04:00
58f2243bf1 System/Core/Compositor: Update defaults for TrueType fonts 2025-04-15 16:22:12 -04:00
0a579a4f09 System/Libraries/Html/Renderer: Handle italic/oblique text 2025-04-15 16:21:52 -04:00