Safe Haskell | None |
---|---|
Language | Haskell98 |
Font info contains information, extracted from font, that may be needed when processing content stream
- data FontInfo
- data FISimple = FISimple {}
- data FontBaseEncoding
- data SimpleFontEncoding = 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 for simple fonts
FISimple | |
|
data FontBaseEncoding Source
Standard encoding, other encodings are based on them
data SimpleFontEncoding Source
Encoding fo simple font
SimpleFontEncoding | |
|
data CIDFontWidths Source
Glyph widths for CID fonts
CIDFontWidths | |
|
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