pdf-toolbox-content-0.0.2.0: A collection of tools for processing PDF files

Safe HaskellNone

Pdf.Toolbox.Content.FontInfo

Description

Font info contains information, extracted from font, that may be needed when processing content stream

Synopsis

Documentation

data FISimple Source

Font info for simple fonts

Constructors

FISimple 

Instances

data CIDFontWidths Source

Glyph widths for CID fonts

makeCIDFontWidths :: Monad m => Array -> PdfE m CIDFontWidthsSource

Make CIDFontWidths from value of "W" key in descendant font

cidFontGetWidth :: CIDFontWidths -> Int -> Maybe DoubleSource

Get glyph width by glyph code

fontInfoDecodeGlyphs :: FontInfo -> Str -> [(Glyph, Double)]Source

Decode string into list of glyphs and their widths