diff --git a/README.md b/README.md index f0f1e49c..a7be92df 100755 --- a/README.md +++ b/README.md @@ -63,10 +63,12 @@ $PHPWord->addFontStyle('myOwnStyle', array('name'=>'Verdana', 'size'=>14, 'color $section->addText('Hello world! I am formatted by a user defined style', 'myOwnStyle'); // You can also putthe appended element to local object an call functions like this: +$fontStyle = new PHPWord_Style_Font(); +$fontStyle->setBold(true); +$fontStyle->setName('Verdana'); +$fontStyle->setSize(22); $myTextElement = $section->addText('Hello World!'); -$myTextElement->setBold(); -$myTextElement->setName('Verdana'); -$myTextElement->setSize(22); +$myTextElement->setFontStyle($fontStyle); // At least write the document to webspace: $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007'); diff --git a/changelog.txt b/changelog.txt index 6a0b1b8b..381b4708 100755 --- a/changelog.txt +++ b/changelog.txt @@ -26,6 +26,7 @@ Changes in branch for release 0.7.1 : - Bugfix: (gabrielbull) - Fixed bug with cell styling - Bugfix: (gabrielbull) - Fixed bug list items inside of cells - Bugfix: (SiebelsTim) GH-51 - Adding a value that contains "&" in a template breaks it +- Bugfix: (Progi1984) GH-89 - Example in README.md is broken - Feature: (RomanSyroeshko) GH-56 GH-57 - Template : Permit to save a template generated as a file (PHPWord_Template::saveAs()) - Feature: (gabrielbull) - Word2007 : Support sections page numbering - Feature: (gabrielbull) - Word2007 : Added support for line height