module Graphics.SVGFonts.Fonts
(
bit, lin, lin2
) where
import System.IO.Unsafe (unsafePerformIO)
import Graphics.SVGFonts.ReadFont (loadFont, PreparedFont)
import Paths_SVGFonts (getDataFileName)
dataFile :: FilePath -> FilePath
dataFile = unsafePerformIO . getDataFileName
loadDataFont :: (Read n, RealFloat n) =>
FilePath -> PreparedFont n
loadDataFont = unsafePerformIO . loadFont . dataFile
bit :: (Read n, RealFloat n) => PreparedFont n
bit = loadDataFont "fonts/Bitstream.svg"
lin :: (Read n, RealFloat n) => PreparedFont n
lin = loadDataFont "fonts/LinLibertine.svg"
lin2 :: (Read n, RealFloat n) => PreparedFont n
lin2 = loadDataFont "fonts/LinLibertineCut.svg"