Files
Liu 093a6a1e35 feat: add explicit window lifecycle and per-window event routing
- add the window API and lifecycle design specs
- lcui_init no longer creates a window; settings loading is explicit
- add lcui_window_* create/bind/geometry/state/show/close api
- replace display modes with window options and quit-on-last-window
- add per-window event scopes and window-based pointer/keyboard routing
- keep pending updates for widgets appended during a frame
- migrate examples, tests, previews and internals docs
- remove default-scope focus and mouseover getters
2026-11-16 00:03:50 +08:00

24 lines
697 B
C

/*
* tests/cases/test_font_face.c
*
* Copyright (c) 2023-2026, Liu Chao <hello@lcui.dev> All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of LCUI, distributed under the MIT License found in the
* LICENSE.TXT file in the root directory of this source tree.
*/
#include <LCUI.h>
#include <ctest-custom.h>
void test_font_face(void)
{
lcui_init();
ctest_equal_int("should load CSS file containing @font-face",
ui_load_css_file("test_font_face.css"), 0);
ctest_equal_bool("should resolve font registered via @font-face",
pd_font_get_id("icomoon", 0, 0) > 0, true);
lcui_destroy();
}