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