Windows: also load the Segoe UI faces and Noto Sans SC (variable).
fontconfig/plain-Linux: register sans-serif/serif/monospace aliases, and guard pd_font_find_path() NULL before load.
Expand variable fonts into static weight instances via the wght axis so font-weight resolves to a real face.
Add pd_font_get_glyph_index and skip faces lacking a glyph during family fallback, so a missing glyph keeps falling back instead of stopping at a cached .notdef.
Fix an off-by-one in find_bolder_weight/find_lighter_weight (must index weights[weight-1]), which dereferenced NULL and crashed on sparse-weight families.
Cover these with variable-font, CJK-fallback and weight-fallback tests.
Expose ui_get_mouseover() and, at the end of ui_server_update(), resolve
the first non-auto cursor up the hover ancestor chain (emulating CSS
inheritance), then apply it to the owning window. Runs after style
recomputation so :hover and dynamic changes take effect in the same
frame; resets to auto when the hovered widget is destroyed.
Add ptk_window_set/get_cursor() and a driver vtable. Win32 keeps the
cursor via WM_SETCURSOR (NONE hides it), X11 defines a cached cursor-font
shape (NONE uses a transparent pixmap), framebuffer records only. Values
map to the closest system cursor where no exact match exists.
Register the `cursor` property (36 standard keywords, no url() images),
add css_cursor_t, a 6-bit type_bits field and the 34 new keywords, and
implement css_cascade_cursor(). Defaults to `auto`.
The function freed the previous `txt->content` buffer before running
`y_wcsdup(text)` on the caller-supplied pointer. When the caller passes
`txt->content` itself (e.g. trimming flip in ui_text_on_parse_attr),
wcslen() then walks freed memory, returns a stale length, and wcscpy()
overruns the freshly allocated buffer.
Snapshot the source into a local `content` pointer first, release the
previous buffer, and reuse that snapshot for both `txt->content` and
the task queue copy.
Allow \[, \], and \\ to be used in style-tag-enabled text input
so users can include literal bracket characters without triggering
tag parsing. Add tests covering open/close bracket escapes,
backslash self-escape, mixed real and escaped tags, and verify
unrelated backslash sequences (e.g. \n) are left untouched.
- Add examples/doc-viewer, an LCUI-based documentation viewer with an
MDX compiler pipeline that converts source MDX files into C/TSX
page components rendered by lcui build.
- Add zh-CN and en documentation for 5 widgets (anchor, button,
scrollarea, text, text-input), each with C/TSX/XML example variants
and widget-fields data.
- Add handbook and overview documentation.
Co-authored-by: Liu <lc-soft@live.cn>
Expose lcui_settings_get_string / lcui_settings_set_string for reading
and writing custom [section] key-value pairs. Writes mark the settings
dirty; persistence requires a subsequent lcui_settings_flush() call.
Floating point truncation during cbox↔bbox round-trip conversion
caused accumulated error, e.g. 57.3333321 → 57.3333282, resulting
in unexpected line wrap. Using ceil() prevents value shrinkage and
ensures stable text layout.
- Use project-local clang-format from node_modules/.bin instead of system
PATH to avoid version mismatches between CI and development environments
- Print clang-format version and binary path in CI logs for debugging
- Add format:check script to package.json so `npm run format:check` works
- Add `needs: format` to build job so formatting failures block the build
and don't waste CI resources
- Per-window state with [window.<id>] sections in settings.ini
- Settings module split into rendering and window_state subsystems
- Schema-driven (de)serialization with DEFINE_SETTING_INT/BOOL_FIELD macros
- Listener-based change notification via deserialize/serialize callbacks
- Integration tests for get/set, validation, and bind/restore lifecycle