Skip to content

Commit

Permalink
Merge pull request #93 from ivanlanin/develop
Browse files Browse the repository at this point in the history
Refactor and unit test PHPWord_Style_Font
  • Loading branch information
Progi1984 committed Mar 9, 2014
2 parents 9042bb5 + 9fd1384 commit 9bae85e
Show file tree
Hide file tree
Showing 8 changed files with 376 additions and 44 deletions.
17 changes: 16 additions & 1 deletion Classes/PHPWord.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,23 @@
class PHPWord
{

/**
* Default font name (Arial)
*/
const DEFAULT_FONT_NAME = 'Arial';
const DEFAULT_FONT_SIZE = 20;

/**
* 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';

/**
* Document properties
Expand Down
Loading

0 comments on commit 9bae85e

Please sign in to comment.