mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-25 05:20:46 +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:
@@ -100,11 +100,12 @@ func (r *Run) AddTab() *Run {
|
||||
}
|
||||
|
||||
// Font sets the font of the run
|
||||
func (r *Run) Font(ascii, hansi, hint string) *Run {
|
||||
func (r *Run) Font(ascii, eastAsia, hansi, hint string) *Run {
|
||||
r.RunProperties.Fonts = &RunFonts{
|
||||
ASCII: ascii,
|
||||
HAnsi: hansi,
|
||||
Hint: hint,
|
||||
ASCII: ascii,
|
||||
EastAsia: eastAsia,
|
||||
HAnsi: hansi,
|
||||
Hint: hint,
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user