feat(bar): 新增 text 文字排版模块并将其集成到 bar 生命周期中

This commit is contained in:
2026-06-08 01:24:49 +08:00
parent 3a8c392d90
commit 62f6bab611
5 changed files with 90 additions and 0 deletions

9
src/bar/text.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include <stdint.h>
typedef struct text_context_t text_context_t;
text_context_t *
text_context_create(const char *family, uint32_t size, uint32_t dpi);
void text_context_destory(text_context_t *context);