Portability | portable |
---|---|
Stability | experimental |
Maintainer | misc@NOSPAMalpheccar.org |
Safe Haskell | None |
PDF Text
- data PDFFont = PDFFont FontName FontSize
- data FontName
- data TextMode
- data PDFText a
- type UnscaledUnit = PDFFloat
- drawText :: PDFText a -> Draw a
- text :: PDFFont -> PDFFloat -> PDFFloat -> PDFString -> PDFText ()
- toPDFString :: String -> PDFString
- startNewLine :: PDFText ()
- displayText :: PDFString -> PDFText ()
- textStart :: PDFFloat -> PDFFloat -> PDFText ()
- setFont :: PDFFont -> PDFText ()
- leading :: UnscaledUnit -> PDFText ()
- charSpace :: UnscaledUnit -> PDFText ()
- wordSpace :: UnscaledUnit -> PDFText ()
- textScale :: PDFFloat -> PDFText ()
- renderMode :: TextMode -> PDFText ()
- rise :: UnscaledUnit -> PDFText ()
- setTextMatrix :: Matrix -> PDFText ()
- textWidth :: PDFFont -> PDFString -> PDFFloat
- getDescent :: PDFFont -> PDFFloat
- getHeight :: PDFFont -> PDFFloat
- ripText :: PDFFont -> PDFString -> [(PDFFloat, Char)]
- charWidth :: PDFFont -> Char -> PDFFloat
Text
Types
Rendering mode for text display
type UnscaledUnit = PDFFloatSource
Unscaled unit (not scaled by the font size)
Functions
text :: PDFFont -> PDFFloat -> PDFFloat -> PDFString -> PDFText ()Source
Utility function to quickly display one line of text
toPDFString :: String -> PDFStringSource
Create a PDF string from an Haskell one
startNewLine :: PDFText ()Source
Start a new line (leading value must have been set)
displayText :: PDFString -> PDFText ()Source
Display some text
leading :: UnscaledUnit -> PDFText ()Source
Set leading value
charSpace :: UnscaledUnit -> PDFText ()Source
Set the additional char space
wordSpace :: UnscaledUnit -> PDFText ()Source
Set the additional word space
renderMode :: TextMode -> PDFText ()Source
Choose the text rendering mode
rise :: UnscaledUnit -> PDFText ()Source
Set the rise value
setTextMatrix :: Matrix -> PDFText ()Source
Set the text transformation matrix
getDescent :: PDFFont -> PDFFloatSource