Forum


Replies: 9   Views: 249
How to reduce space between one line break

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.