Safe Haskell | None |
---|
Pdf.Toolbox.Content.FontInfo
Description
Font info contains information, extracted from font, that may be needed when processing content stream
- data FontInfo
- data FISimple = FISimple {}
- data SimpleFontEncoding
- data FIComposite = FIComposite {}
- data CIDFontWidths = CIDFontWidths {
- cidFontWidthsChars :: Map Int Double
- cidFontWidthsRanges :: [(Int, Int, Double)]
- makeCIDFontWidths :: Monad m => Array -> PdfE m CIDFontWidths
- cidFontGetWidth :: CIDFontWidths -> Int -> Maybe Double
- fontInfoDecodeGlyphs :: FontInfo -> Str -> [(Glyph, Double)]
Documentation
Font info
Constructors
FontInfoSimple FISimple | |
FontInfoComposite FIComposite |
Font info for simple fonts
Constructors
FISimple | |
Fields
|
data SimpleFontEncoding Source
Encoding of simple font
Constructors
SimpleFontEncodingWinAnsi | |
SimpleFontEncodingMacRoman |
Instances
data CIDFontWidths Source
Glyph widths for CID fonts
Constructors
CIDFontWidths | |
Fields
|
Instances
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