修改高亮,文本字体使用中文名称

This commit is contained in:
徐静波
2025-08-06 15:39:54 +08:00
parent bf7e854a0c
commit 33aaa5c65c
2 changed files with 13 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ func main() {
{FontFamily: "Calibri", FontSize: 16, Bold: true, Italic: true},
{FontFamily: "Calibri", FontSize: 16, Underline: true},
{FontFamily: "Calibri", FontSize: 16, Strike: true},
{FontFamily: "微软雅黑", FontSize: 18, Highlight: "yellow"},
}
texts := []string{
@@ -26,6 +27,7 @@ func main() {
"这是粗体斜体文本",
"这是下划线文本",
"这是删除线文本",
"这是高亮文本",
}
for i, text := range texts {