Skip to content

Commit 9bae85e

Browse files
committed
Merge pull request #93 from ivanlanin/develop
Refactor and unit test PHPWord_Style_Font
2 parents 9042bb5 + 9fd1384 commit 9bae85e

File tree

8 files changed

+376
-44
lines changed

8 files changed

+376
-44
lines changed

Classes/PHPWord.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,23 @@
3939
class PHPWord
4040
{
4141

42+
/**
43+
* Default font name (Arial)
44+
*/
4245
const DEFAULT_FONT_NAME = 'Arial';
43-
const DEFAULT_FONT_SIZE = 20;
46+
47+
/**
48+
* Default font size in points (10pt)
49+
*
50+
* OOXML defined font size values in halfpoints, i.e. twice of what PHPWord
51+
* use, and the conversion will be conducted during XML writing.
52+
*/
53+
const DEFAULT_FONT_SIZE = 10;
54+
55+
/**
56+
* Default font color (black)
57+
*/
58+
const DEFAULT_FONT_COLOR = '000000';
4459

4560
/**
4661
* Document properties

0 commit comments

Comments
 (0)