Note that there are some explanatory texts on larger screens.

plurals
  1. POTCPDF Stretch Text Vertically
    primarykey
    data
    text
    <p>i am working on a project that need texts to be stretched with a given sized rectangle. I tried imagick for this but there some quality losses with it.</p> <p>For example i have a box with sizes 203x78 (any size), and wrote a text "LOREM IPSUM LOREM" (any text). I want this text to be fully fit my given size 203x78, no matter font-size no matter any other things, just the quality and fully fit with my box.</p> <p>I cound not find any method better than imagick with that way: firstly drawing transparent text with a closest font-size to my box (sure more little), and drawing image. After that, resizing it to my box size. When resizing it, i tried any of filter in imagick. There is no matter in this way except little sized texts. For eg. font size 20px and my certain box size is bigger than draw about 1-3px on any side. I mean, 20px drawn text size is 40x18, but my box is 41x20. so resizing it to 41x20 but blurred in any effect and effect value.</p> <p>So i want to create my text with TCPDF and want to resize text to fit any given size. Fitting must be fully fit both horizontal and vertical, totally stretched. I chosed PDF because text in PDF in vectoral format and there is no losses while resizing any size.</p> <p>TCPDF has a horizontal stretch but i could not find any way to stretch with both of sides.</p> <p>Additional infos: using ttf files to create a text is required. transparent png output is required. horizontal stretch must not be with character spacing, all behaviors must be the same as vector resizing, JUST LIKE ADOBE ILLUSTRATOR.</p> <p><img src="https://i.stack.imgur.com/fOKh4.jpg" alt="illustrator resized texts, any size"></p> <p>Tries: i used php gd for this but very bad quality than imagick. i tried to install my server php-cairo but could not do it. i searched for inkscape to do this, but could not find a way working on command line. i tried imagick output > inkscape to convert vector, but totally fiasco. i tried TCPDF output > imagick to resize, but quality fiacso (imagick has no vector resizing capabilty)</p> <p>Help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload