Forum


Replies: 9   Views: 331
How to reduce space between one line break
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by fairshareitservices  · 25-07-2024 - 10:31

I have a variable of type text and which has <br> tag inside it, so when code finds <br> tags it breaks the sentence using below code
 

$break = new WordFragment($docx);

    $break->addBreak();
 

if (!empty($lineBreakText)) {

                    $text[] = array(

                        'text' => $lineBreakText

                    );

                }

               $text[] = $break;
But this line break gets added by default with font 'Microsoft Sans Serif' with size 11. I want it to make it as 'Arial' with size 6.