1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-11 02:50:27 +08:00

fix: 修复Font设置 (#45)

* fix: 修复Font设置

* Update main.go

* fix: 修复测试函数

---------

Co-authored-by: guoqiang <guoqiang@antiy.cn>
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
This commit is contained in:
Rodrigo Stewart
2024-12-23 23:23:52 +08:00
committed by GitHub
parent f7d29bb5c3
commit 7d167974e5
3 changed files with 9 additions and 7 deletions

View File

@@ -66,11 +66,12 @@ func main() {
para1.AddText("italic").Italic().AddTab()
para1.AddText("underline").Underline("double").AddTab()
para1.AddText("highlight").Highlight("yellow").AddTab()
para1.AddText("font").Font("Consolas", "", "cs").AddTab()
para1.AddText("font").Font("Consolas", "", "", "cs").AddTab()
para2 := w.AddParagraph().Justification("end")
para2.AddText("test all font attrs").
Size("44").Color("ff0000").Font("Consolas", "", "cs").
Size("44").Color("ff0000").
Font("Consolas", "", "", "cs").
Shade("clear", "auto", "E7E6E6").
Bold().Italic().Underline("wave").
Highlight("yellow")