dvi-processing-0.3.1: Read/write DVI and TFM file

Safe HaskellSafe-Inferred

Graphics.DVI

Contents

Synopsis

Pages

Units

Fonts

data LigKern Source

Constructors

Kerning 

Fields

lkChar :: Word8
 
kernDist :: Dimen
 
Ligature 

Fields

lkChar :: Word8
 
ligChar :: Word8
 
ligCode :: Int
 

Instances

data Extensible Source

Constructors

Extensible 

Fields

extTop :: Word8
 
extMid :: Word8
 
extBot :: Word8
 
extRep :: Word8
 

Reading

withDVI :: FilePath -> (Word32 -> ByteString -> IO Font) -> s -> (s -> Page -> IO (Maybe (s, t))) -> IO [t]Source

Writing

Glue

data Glue Source

Instances

data GlueSS Source

Constructors

GlueSS 

Instances

Typesetting Nodes

data Node whereSource

Constructors

Node :: forall x. NodeClass x => x -> Node 

travBoxFunc :: (Applicative f, Monad f, NodeClass x) => (x -> f Node) -> Node -> f NodeSource

Typesetting

hPack :: (Dimen -> Dimen) -> [Node] -> (BoxNode, Glue, [Node])Source

vPack :: Bool -> Dimen -> (Dimen -> Dimen) -> [Node] -> (BoxNode, Glue)Source

findBreaks :: Bool -> (Node -> (Glue, Maybe Int)) -> [Node] -> [(Int, Glue, Int)]Source

type CustomStringFn x = Font -> x -> (Int, Either Char (Int -> [Node]))Source