1, split render code to 3 files: __render_border.c, __render_bg_image.c, __render_text.c,
authoryu.dongliang <18588496441@163.com>
Sun, 3 May 2026 08:17:02 +0000 (16:17 +0800)
committeryu.dongliang <18588496441@163.com>
Sun, 3 May 2026 08:17:07 +0000 (16:17 +0800)
commitf0444a7e582c7cd386edb0a7b4858ee2a5faf3ec
tree0cbd92e6239b1810a82a5a2dcf4f3f676474a6f3
parent77b06bb7b3280339669e6917fda0455c8e247715
1, split render code to 3 files: __render_border.c, __render_bg_image.c, __render_text.c,
2, use GL_BLEND to show background-image when draw text,
3, scf: add scf_utf8_len() to get a UTF-8 char & its bytes,
4, css: support Chinese Char (中文) in border,
5, css: use macro ABC_CSS_BOX() to add HTML labels' attrs for css box model,
ABC_CSS_SELECTOR() for css selector,
ABC_CSS_BACK_GROUND() for back-ground attrs,
ABC_CSS_FONT() for font attrs,
ABC_CSS_TEXT() for text align, etc.
6, and render the margin of HTML objects transparent / clearing.
19 files changed:
examples/p_multi_line.html
examples/style.css
html/abc_css_border.c
html/abc_css_position.c
html/abc_html.c
html/abc_obj.h
js/lex/scf_lex_util.c
js/util/Makefile
js/util/scf_string.c
js/util/scf_string.h
ui/Makefile
ui/__render_bg_image.c [new file with mode: 0644]
ui/__render_border.c [new file with mode: 0644]
ui/__render_text.c [new file with mode: 0644]
ui/abc.h
ui/abc_render_body.c
ui/abc_render_h1.c
ui/abc_render_table.c
ui/abc_render_td.c