Skip to content

Commit a60896c

Browse files
authored
Update introduction.md
Add documentation default font color
1 parent 0658b4e commit a60896c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/usage/introduction.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,14 @@ You can alter the default paper by using the following function:
128128

129129
### Default font
130130

131-
By default, every text appears in Arial 10 point. You can alter the
131+
By default, every text appears in Arial 10 point in the color red (FF0000). You can alter the
132132
default font by using the following two functions:
133133

134134
``` php
135135
<?php
136136

137137
$phpWord->setDefaultFontName('Times New Roman');
138+
$phpWord->setDefaultFontColor('FF0000');
138139
$phpWord->setDefaultFontSize(12);
139140
```
140141

@@ -381,4 +382,4 @@ To control whether or not words in all capital letters shall be hyphenated use t
381382
<?php
382383

383384
$phpWord->getSettings()->setDoNotHyphenateCaps(true);
384-
```
385+
```

0 commit comments

Comments
 (0)