Copyright | (c) 2006-2016 alpheccar.org |
---|---|
License | BSD-style |
Maintainer | misc@NOSPAMalpheccar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PDF Text
Synopsis
- data PDFFont = PDFFont AnyFont FontSize
- data FontName
- data TextMode
- data PDFText a
- type UnscaledUnit = PDFFloat
- drawText :: PDFText a -> Draw a
- text :: PDFFont -> PDFFloat -> PDFFloat -> Text -> PDFText ()
- startNewLine :: PDFText ()
- displayGlyphs :: PDFGlyph -> PDFText ()
- displayText :: Text -> 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 -> Text -> PDFFloat
- pdfGlyph :: PDFFont -> Text -> PDFGlyph
- glyph :: GlyphCode -> PDFGlyph
Text
Types
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
Enum FontName Source # | |
Defined in Graphics.PDF.Fonts.StandardFont | |
Show FontName Source # | |
Eq FontName Source # | |
Ord FontName Source # | |
Defined in Graphics.PDF.Fonts.StandardFont |
Rendering mode for text display
FillText | |
StrokeText | |
FillAndStrokeText | |
InvisibleText | |
FillTextAndAddToClip | |
StrokeTextAndAddToClip | |
FillAndStrokeTextAndAddToClip | |
AddToClip |
Instances
Enum TextMode Source # | |
Eq TextMode Source # | |
Ord TextMode Source # | |
Defined in Graphics.PDF.Text |
The text monad
type UnscaledUnit = PDFFloat Source #
Unscaled unit (not scaled by the font size)
Functions
text :: PDFFont -> PDFFloat -> PDFFloat -> Text -> PDFText () Source #
Utility function to quickly display one line of text
startNewLine :: PDFText () Source #
Start a new line (leading value must have been set)
displayGlyphs :: PDFGlyph -> PDFText () Source #
Display glyphs
displayText :: Text -> PDFText () Source #
Display 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