Text is drawn by the following steps:
The figure below explains text positioning:
You can see that, in contrast to Hollywood's coordinate system, the PDF document's coordinate system for placing text starts at the bottom and extends upwards.
Here is a list of text state operators:
page:SetCharSpace() page:SetFontAndSize() page:SetHorizontalScaling() page:SetTextLeading() page:SetTextRenderingMode() page:SetTextRise() page:SetWordSpace() |
Here is a list of text positioning operators:
page:MoveTextPos() page:SetTextMatrix() |
Here is a list of text painting operators:
page:ShowText() page:ShowTextNextLine() page:TextOut() page:TextRect() |