Hufflepdf/src/PDF/Font.hs

16 lines
289 B
Haskell
Raw Normal View History

module PDF.Font (
Font
, FontSet
, emptyFont
) where
import Data.ByteString (ByteString)
import Data.Map (Map)
import PDF.Object (Name)
type Font = ByteString -> Either String ByteString
type FontSet = Map Name Font
emptyFont :: Font
emptyFont _ = Left "No fond loaded"