Stil/gd-text class library text outline - php

Using a still/gd-text class library is a way to make it work. My question: how to get rounded a or n letter everywhere? because when you increase the stroke value, the outline is not perfect ...
Referring to: How to give border to text in PHP GD library


FPDF rounded rectangle

I need to create a rounded rectangle in FPDF like here. But I also want it to be possible to enter text or even QR codes in there,so far I haven't found a solution.
How to make a rounded rectangle where I can insert anything (text, images, etc.)?
or How to make the line bend (as I really need this for background purposes only)?

Is it possible to wrap text around an image using Asciidoc & Fopub?

I use asciidoc and the fopub backend to generate the docs for Codename One. The HTML generation is pretty easy but when I do the PDF generation I can't wrap image text properly.
The float attribute and hint for asciidoc is only supported for HTML output. The align attribute works great with the fop/docbook backend but doesn't let the text wrap around the image as the float argument does.
Is there a way to do the text wrapping that will work with the fop PDF output?
I'm not deeply familiar with asciidoc but I think the problem is in FOP based on the answers here: Block Image Right and Flow Text Around It?
Without that asciidoc can't even begin to wrap around an image with the fop backend.
Apache FOP 2.0 new features include some support for floats:
Floats (fo:float) are supported with some limitations:
the "clear" fo:float attribute is ignored; only the float attribute (left or right) is used
overlapping of floats in the Y is not handled (even in the case there would not be overlap in the X direction)
floats that extend beyond the body region are not properly handled and will overflow past the edge of the region
if a float extends to bottom of the body region and there are footnotes in the page the float may overlap with the footnote region
floats next to a table are not supported unless the start and end of the table happens in between the start and end of the float
So it seems that now is only about getting proper DocBook floats from AsciiDoc.

suggestions for php classes to add text on image

I'm looking for a php class that can help me add text to an image.
I would like to define an x and y point for the upper left corner, and then set a width (maybe height) and then get the text in there so that it automatically continues on the next line. I've been searching but I can't figure out how to do this....
You can achieve this using the GD library really easily. A tutorial is available right here.
I've done something similar a few years back with using PHP and GD to create header graphics. It basically breaks the string of text into words, calculates the width of each word, and then adds each word one by one. If a word takes it over the width limit, it pushes that to the next line. With a bit of tweaking it should do the trick for you:

get text length in px, php [duplicate]

Possible Duplicate:
PHP Accurate Font Width
For example I have Arial font (22px size) text: "my name is lola" and how get this text length in pixels? (PHP languages)
well normaly you should be able to, make sure it has some wrapping tags like a span tag and use .width() function in jquery to get the width in pixels
Edit: it's not php but it's the only possible way i know of doing this
... it depends:)
so i wont get downvoted more than i already had..without getting a comment:
it depends on:
the used font
the OS where this font is used (the font renderer on linux is produces slightly different results that the one on windows, and probaly the same rule applies on OSX)
wherever you are using antialising and what kind of antialising is used
wherever the font is bold or not
the output medium (printed fonts are not identical to displayed font because of printer characteristics)
the letter spacing
As a solution you may use GD to render the text into a surface, and try to crop it..

PHP GD center gradient

I've made gradient images using PHP GD horizontal and vertical but how can you get images like these.
These are example images for the Emulate Gradient Fill PHP class
I want to know how to make these from scratch, the website is an example
From the site documentation:
$image = new gd_gradient_fill($width,$height,$direction,$startcolor,$endcolor,$step)
string $direction
The shape or direction of the gradient, which can be any of : vertical, horizontal, ellipse, ellipse2, circle, circle2, rectangle, diamond.
So in the function you set the direction to diamond etc, try out the different ones on your own to see how they display.
To make them from scratch, well the easiest way is look at the source code of that script: from there you should be able to rummage through it and get the proper commands for it. Given it is only 240 lines of code it should be trivial to read through it.