HPDF-1.5.0: Generation of PDF documents

Copyright(c) 2006-2016 alpheccar.org
LicenseBSD-style
Maintainermisc@NOSPAMalpheccar.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.PDF.Fonts.Font

Description

PDF Font

Documentation

class IsFont f where Source #

Methods

name :: f -> String Source #

getDescent :: f -> FontSize -> PDFFloat Source #

getHeight :: f -> FontSize -> PDFFloat Source #

getKern :: f -> FontSize -> GlyphCode -> GlyphCode -> PDFFloat Source #

glyphWidth :: f -> FontSize -> GlyphCode -> PDFFloat Source #

hyphenGlyph :: f -> Maybe GlyphCode Source #

spaceGlyph :: f -> GlyphCode Source #

charGlyph :: f -> Char -> GlyphCode Source #

Instances
IsFont AnyFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.Font

Methods

name :: AnyFont -> String Source #

getDescent :: AnyFont -> FontSize -> PDFFloat Source #

getHeight :: AnyFont -> FontSize -> PDFFloat Source #

getKern :: AnyFont -> FontSize -> GlyphCode -> GlyphCode -> PDFFloat Source #

glyphWidth :: AnyFont -> FontSize -> GlyphCode -> PDFFloat Source #

hyphenGlyph :: AnyFont -> Maybe GlyphCode Source #

spaceGlyph :: AnyFont -> GlyphCode Source #

charGlyph :: AnyFont -> Char -> GlyphCode Source #

IsFont Type1Font Source # 
Instance details

Defined in Graphics.PDF.Fonts.Type1

IsFont StdFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.StandardFont

Methods

name :: StdFont -> String Source #

getDescent :: StdFont -> FontSize -> PDFFloat Source #

getHeight :: StdFont -> FontSize -> PDFFloat Source #

getKern :: StdFont -> FontSize -> GlyphCode -> GlyphCode -> PDFFloat Source #

glyphWidth :: StdFont -> FontSize -> GlyphCode -> PDFFloat Source #

hyphenGlyph :: StdFont -> Maybe GlyphCode Source #

spaceGlyph :: StdFont -> GlyphCode Source #

charGlyph :: StdFont -> Char -> GlyphCode Source #

data GlyphSize Source #

Instances
Enum GlyphSize Source # 
Instance details

Defined in Graphics.PDF.Fonts.FontTypes

Eq GlyphSize Source # 
Instance details

Defined in Graphics.PDF.Fonts.FontTypes

Integral GlyphSize Source # 
Instance details

Defined in Graphics.PDF.Fonts.FontTypes

Num GlyphSize Source # 
Instance details

Defined in Graphics.PDF.Fonts.FontTypes

Ord GlyphSize Source # 
Instance details

Defined in Graphics.PDF.Fonts.FontTypes

Real GlyphSize Source # 
Instance details

Defined in Graphics.PDF.Fonts.FontTypes

data PDFFont Source #

Constructors

PDFFont AnyFont FontSize 
Instances
Eq PDFFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.Font

Methods

(==) :: PDFFont -> PDFFont -> Bool #

(/=) :: PDFFont -> PDFFont -> Bool #

Ord PDFFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.Font

data AnyFont Source #

Constructors

(IsFont f, PdfResourceObject f) => AnyFont f 
Instances
Eq AnyFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.Font

Methods

(==) :: AnyFont -> AnyFont -> Bool #

(/=) :: AnyFont -> AnyFont -> Bool #

Ord AnyFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.Font

IsFont AnyFont Source # 
Instance details

Defined in Graphics.PDF.Fonts.Font

Methods

name :: AnyFont -> String Source #

getDescent :: AnyFont -> FontSize -> PDFFloat Source #

getHeight :: AnyFont -> FontSize -> PDFFloat Source #

getKern :: AnyFont -> FontSize -> GlyphCode -> GlyphCode -> PDFFloat Source #

glyphWidth :: AnyFont -> FontSize -> GlyphCode -> PDFFloat Source #

hyphenGlyph :: AnyFont -> Maybe GlyphCode Source #

spaceGlyph :: AnyFont -> GlyphCode Source #

charGlyph :: AnyFont -> Char -> GlyphCode Source #