From a60896c984dfe679f5cf596dfab10ca07e9278cc Mon Sep 17 00:00:00 2001 From: Collie-IT <40590185+Collie-IT@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:38:55 +0100 Subject: [PATCH] Update introduction.md Add documentation default font color --- docs/usage/introduction.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/usage/introduction.md b/docs/usage/introduction.md index b3a101ab0d..1a87fe4b93 100644 --- a/docs/usage/introduction.md +++ b/docs/usage/introduction.md @@ -128,13 +128,14 @@ You can alter the default paper by using the following function: ### Default font -By default, every text appears in Arial 10 point. You can alter the +By default, every text appears in Arial 10 point in the color red (FF0000). You can alter the default font by using the following two functions: ``` php setDefaultFontName('Times New Roman'); +$phpWord->setDefaultFontColor('FF0000'); $phpWord->setDefaultFontSize(12); ``` @@ -381,4 +382,4 @@ To control whether or not words in all capital letters shall be hyphenated use t getSettings()->setDoNotHyphenateCaps(true); -``` \ No newline at end of file +```