{-# LANGUAGE MultiParamTypeClasses #-}
module Graphics.PDF.Typesetting.StandardStyle(
StandardStyle(..)
, StandardParagraphStyle(..)
) where
import Graphics.PDF.Colors
import Graphics.PDF.Text
import Graphics.PDF.Typesetting.Vertical
import Graphics.PDF.Typesetting.Box
data StandardStyle = Font PDFFont Color Color
data StandardParagraphStyle = NormalParagraph
instance ComparableStyle StandardStyle where
isSameStyleAs (Font a sca fca) (Font b scb fcb) = a == b && sca == scb && fca == fcb
instance ComparableStyle StandardParagraphStyle where
isSameStyleAs NormalParagraph NormalParagraph = True
instance Style StandardStyle where
textStyle (Font a sc fc) = TextStyle a sc fc FillText 1.0 1.0 1.0 1.0
instance ParagraphStyle StandardParagraphStyle StandardStyle