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 :: forall n. (Read n, RealFloat n) => FilePath -> IO (PreparedFont n)
loadDataFont FilePath
filepath =
do f <- FilePath -> IO FilePath
dataFile FilePath
filepath
loadFont f
bit :: (Read n, RealFloat n) => IO (PreparedFont n)
bit :: forall n. (Read n, RealFloat n) => 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 :: forall n. (Read n, RealFloat n) => 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 :: forall n. (Read n, RealFloat n) => IO (PreparedFont n)
lin2 = FilePath -> IO (PreparedFont n)
forall n. (Read n, RealFloat n) => FilePath -> IO (PreparedFont n)
loadDataFont FilePath
"fonts/LinLibertineCut.svg"