From 9fd138494e66f241d796d55d0c242bc6051dcfeb Mon Sep 17 00:00:00 2001 From: Ivan Lanin Date: Sun, 9 Mar 2014 15:21:53 +0700 Subject: [PATCH] Constants explanation --- Classes/PHPWord.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Classes/PHPWord.php b/Classes/PHPWord.php index 12d8af4b..64f9d9a2 100755 --- a/Classes/PHPWord.php +++ b/Classes/PHPWord.php @@ -39,8 +39,22 @@ if (!defined('PHPWORD_BASE_PATH')) { class PHPWord { + /** + * Default font name (Arial) + */ const DEFAULT_FONT_NAME = 'Arial'; + + /** + * Default font size in points (10pt) + * + * OOXML defined font size values in halfpoints, i.e. twice of what PHPWord + * use, and the conversion will be conducted during XML writing. + */ const DEFAULT_FONT_SIZE = 10; + + /** + * Default font color (black) + */ const DEFAULT_FONT_COLOR = '000000'; /**