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

Safe HaskellNone
LanguageHaskell98

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

Instances

data FontBaseEncoding Source

Standard encoding, other encodings are based on them

data SimpleFontEncoding Source

Encoding fo simple font

Constructors

SimpleFontEncoding 

Fields

simpleFontBaseEncoding :: FontBaseEncoding
 
simpleFontDifferences :: [(Word8, ByteString)]

Mapping from glyph code to glyph name for cases when it is different from base encoding

makeCIDFontWidths :: Monad m => Array -> PdfE m CIDFontWidths Source

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

cidFontGetWidth :: CIDFontWidths -> Int -> Maybe Double Source

Get glyph width by glyph code

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

Decode string into list of glyphs and their widths