pdf-toolbox-content-0.1.2: A collection of tools for processing PDF files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pdf.Content.FontInfo

Description

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

Synopsis

Documentation

data FontInfo Source #

Font info

Instances

Instances details
Show FontInfo Source # 
Instance details

Defined in Pdf.Content.FontInfo

data FISimple Source #

Font info for simple fonts

Instances

Instances details
Show FISimple Source # 
Instance details

Defined in Pdf.Content.FontInfo

data FontBaseEncoding Source #

Standard encoding, other encodings are based on them

Instances

Instances details
Show FontBaseEncoding Source # 
Instance details

Defined in Pdf.Content.FontInfo

data SimpleFontEncoding Source #

Encoding fo simple font

Constructors

SimpleFontEncoding 

Fields

Instances

Instances details
Show SimpleFontEncoding Source # 
Instance details

Defined in Pdf.Content.FontInfo

makeCIDFontWidths :: Array -> Either String 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 -> ByteString -> [(Glyph, Double)] Source #

Decode string into list of glyphs and their widths