|
Graphics.PDF.Text | Portability | portable | Stability | experimental | Maintainer | misc@NOSPAMalpheccar.org |
|
|
|
|
|
Description |
PDF Text
|
|
Synopsis |
|
|
|
|
Text
|
|
Types
|
|
data PDFFont |
Constructors | | Instances | |
|
|
data FontName |
Constructors | Helvetica | | Helvetica_Bold | | Helvetica_Oblique | | Helvetica_BoldOblique | | Times_Roman | | Times_Bold | | Times_Italic | | Times_BoldItalic | | Courier | | Courier_Bold | | Courier_Oblique | | Courier_BoldOblique | | Symbol | | ZapfDingbats | |
| Instances | |
|
|
data TextMode |
Rendering mode for text display
| Constructors | FillText | | StrokeText | | FillAndStrokeText | | InvisibleText | | FillTextAndAddToClip | | StrokeTextAndAddToClip | | FillAndStrokeTextAndAddToClip | | AddToClip | |
| Instances | |
|
|
data PDFText a |
The text monad
| Instances | |
|
|
type UnscaledUnit = PDFFloat |
Unscaled unit (not scaled by the font size)
|
|
Functions
|
|
drawText :: PDFText a -> Draw a |
Draw a text in the draw monad
|
|
text :: PDFFont -> PDFFloat -> PDFFloat -> PDFString -> PDFText () |
Utility function to quickly display one line of text
|
|
toPDFString :: String -> PDFString |
Create a PDF string from an Haskell one
|
|
startNewLine :: PDFText () |
Start a new line (leading value must have been set)
|
|
displayText :: PDFString -> PDFText () |
Display some text
|
|
textStart :: PDFFloat -> PDFFloat -> PDFText () |
Set position for the text beginning
|
|
setFont :: PDFFont -> PDFText () |
Select a font to use
|
|
leading :: UnscaledUnit -> PDFText () |
Set leading value
|
|
charSpace :: UnscaledUnit -> PDFText () |
Set the additional char space
|
|
wordSpace :: UnscaledUnit -> PDFText () |
Set the additional word space
|
|
textScale :: PDFFloat -> PDFText () |
Set scaling factor for text
|
|
renderMode :: TextMode -> PDFText () |
Choose the text rendering mode
|
|
rise :: UnscaledUnit -> PDFText () |
Set the rise value
|
|
setTextMatrix :: Matrix -> PDFText () |
Set the text transformation matrix
|
|
textWidth :: PDFFont -> PDFString -> PDFFloat |
|
getDescent :: PDFFont -> PDFFloat |
|
getHeight :: PDFFont -> PDFFloat |
|
textBox |
:: PDFFont | Font to use
| -> PDFString | Text to draw
| -> Rectangle | Where to draw
| -> Draw () | | Format a text string inside a rectangle. Experimental and will be replaced by a better typesetting
system in a next version
|
|
|
Produced by Haddock version 0.8 |