Skip to content

Commit 9edfaed

Browse files
author
Jui-Nan Lin
committed
doc: examples and changes
1 parent ea83d11 commit 9edfaed

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/changes/1.x/1.4.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Enhancements
66

7+
- Default Font: Allow specify Asisn font and Latin font separately
8+
79
- Writer ODText: Support for ListItemRun by [@Progi1984](https://github.com/Progi1984) fixing [#2159](https://github.com/PHPOffice/PHPWord/issues/2159), [#2620](https://github.com/PHPOffice/PHPWord/issues/2620) in [#2669](https://github.com/PHPOffice/PHPWord/pull/2669)
810
- Writer HTML: Support for vAlign in Tables by [@SpraxDev](https://github.com/SpraxDev) in [#2675](https://github.com/PHPOffice/PHPWord/pull/2675)
911

docs/usage/introduction.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ $phpWord->setDefaultFontName('Times New Roman');
138138
$phpWord->setDefaultFontSize(12);
139139
```
140140

141+
Or you can specify Asian Font
142+
143+
``` php
144+
<?php
145+
146+
$phpWord->setDefaultAsianFontName('標楷體');
147+
```
148+
141149
## Document settings
142150

143151
Settings for the generated document can be set using ``$phpWord->getSettings()``
@@ -381,4 +389,4 @@ To control whether or not words in all capital letters shall be hyphenated use t
381389
<?php
382390

383391
$phpWord->getSettings()->setDoNotHyphenateCaps(true);
384-
```
392+
```

0 commit comments

Comments
 (0)