Safe Haskell | None |
---|---|
Language | Haskell2010 |
Font info contains information, extracted from font, that may be needed when processing content stream
Synopsis
- 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 :: Array -> Either String CIDFontWidths
- cidFontGetWidth :: CIDFontWidths -> Int -> Maybe Double
- fontInfoDecodeGlyphs :: FontInfo -> ByteString -> [(Glyph, Double)]
Documentation
Font info
Font info for simple fonts
FISimple | |
|
data FontBaseEncoding Source #
Standard encoding, other encodings are based on them
Instances
Show FontBaseEncoding Source # | |
Defined in Pdf.Content.FontInfo showsPrec :: Int -> FontBaseEncoding -> ShowS # show :: FontBaseEncoding -> String # showList :: [FontBaseEncoding] -> ShowS # |
data SimpleFontEncoding Source #
Encoding fo simple font
SimpleFontEncoding | |
|
Instances
Show SimpleFontEncoding Source # | |
Defined in Pdf.Content.FontInfo showsPrec :: Int -> SimpleFontEncoding -> ShowS # show :: SimpleFontEncoding -> String # showList :: [SimpleFontEncoding] -> ShowS # |
data FIComposite Source #
Font info for Type0 font
Instances
Show FIComposite Source # | |
Defined in Pdf.Content.FontInfo showsPrec :: Int -> FIComposite -> ShowS # show :: FIComposite -> String # showList :: [FIComposite] -> ShowS # |
data CIDFontWidths Source #
Glyph widths for CID fonts
CIDFontWidths | |
|
Instances
Show CIDFontWidths Source # | |
Defined in Pdf.Content.FontInfo showsPrec :: Int -> CIDFontWidths -> ShowS # show :: CIDFontWidths -> String # showList :: [CIDFontWidths] -> ShowS # | |
Semigroup CIDFontWidths Source # | |
Defined in Pdf.Content.FontInfo (<>) :: CIDFontWidths -> CIDFontWidths -> CIDFontWidths # sconcat :: NonEmpty CIDFontWidths -> CIDFontWidths # stimes :: Integral b => b -> CIDFontWidths -> CIDFontWidths # | |
Monoid CIDFontWidths Source # | |
Defined in Pdf.Content.FontInfo mempty :: CIDFontWidths # mappend :: CIDFontWidths -> CIDFontWidths -> CIDFontWidths # mconcat :: [CIDFontWidths] -> CIDFontWidths # |
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