-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Template Haskell for embedding text rendered using PCF fonts.
--   
--   pcf-font-embed is a library for rendering X11 PCF fonts at
--   compile-time and statically embedding those images into user programs.
@package pcf-font-embed
@version 0.1.2.0


-- | <b>pcf-font-embed</b> allows users to render and embed text with X11
--   PCF fonts at compile-time. Perhaps the best use-case for this library
--   is in generating textures for text rendering with accelerated
--   graphics. For reference, here is a simple example of
--   <b>pcf-font-embed</b> in action:
--   
--   <pre>
--   {-# LANGUAGE TemplateHaskell #-}
--   import Graphics.Text.PCF
--   import Graphics.Text.PCF.Embed
--   
--   -- | USAGE: program
--   main :: IO ()
--   main = putStrLn $ pcf_text_ascii $(embedPCFText "font.pcf.gz" "Hello!")
--   </pre>
module Graphics.Text.PCF.Embed

-- | Render text at compile time. Default opaque and blank colors of 0x00
--   and 0xFF are used respectively. The generated expression consists of a
--   <a>PCFText</a>.
embedPCFText :: FilePath -> String -> Q Exp

-- | Render text at compile time. The generated expression consists of a
--   <a>PCFText</a>.
embedPCFTextColor :: FilePath -> Word8 -> Word8 -> String -> Q Exp
