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 #

Font info for simple fonts

Instances

data FontBaseEncoding #

Standard encoding, other encodings are based on them

data SimpleFontEncoding #

Encoding fo simple font

Constructors

SimpleFontEncoding 

Fields

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

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

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

Get glyph width by glyph code

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

Decode string into list of glyphs and their widths