Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hacks that haven't found their home yet.
Synopsis
- data FontDefinition
- data HintingMode
- data FontSet = FontSet {}
- makePhrase :: [Part] -> Text
- makeSentence :: [Part] -> Text
- squashedWWandW :: [Part] -> (Part, Person)
- appDataDir :: IO FilePath
- xM :: Int -> Int64
- xD :: Double -> Double
- minusM :: Int64
- minusM1 :: Int64
- minusM2 :: Int64
- oneM :: Int64
- tenthM :: Int64
- show64With2 :: Int64 -> Text
- workaroundOnMainThreadMVar :: MVar (IO ())
Documentation
data FontDefinition Source #
FontProportional Text Int HintingMode | filename, size, hinting mode |
FontMonospace Text Int HintingMode | |
FontMapScalable Text Int HintingMode Int | extra cell extension |
FontMapBitmap Text Int | size ignored for bitmap fonts and no hinting |
Instances
data HintingMode Source #
HintingHeavy | current libfreetype6 default, thin, large letter spacing |
HintingLight | mimics OTF, blurry, thick, tight tracking, accurate shape |
Instances
Generic HintingMode Source # | |
Defined in Game.LambdaHack.Common.Misc type Rep HintingMode :: Type -> Type # from :: HintingMode -> Rep HintingMode x # to :: Rep HintingMode x -> HintingMode # | |
Read HintingMode Source # | |
Defined in Game.LambdaHack.Common.Misc readsPrec :: Int -> ReadS HintingMode # readList :: ReadS [HintingMode] # readPrec :: ReadPrec HintingMode # readListPrec :: ReadPrec [HintingMode] # | |
Show HintingMode Source # | |
Defined in Game.LambdaHack.Common.Misc showsPrec :: Int -> HintingMode -> ShowS # show :: HintingMode -> String # showList :: [HintingMode] -> ShowS # | |
Binary HintingMode Source # | |
Defined in Game.LambdaHack.Common.Misc | |
NFData HintingMode Source # | |
Defined in Game.LambdaHack.Common.Misc rnf :: HintingMode -> () # | |
Eq HintingMode Source # | |
Defined in Game.LambdaHack.Common.Misc (==) :: HintingMode -> HintingMode -> Bool # (/=) :: HintingMode -> HintingMode -> Bool # | |
type Rep HintingMode Source # | |
FontSet | |
|
Instances
Generic FontSet Source # | |
Read FontSet Source # | |
Show FontSet Source # | |
Binary FontSet Source # | |
NFData FontSet Source # | |
Defined in Game.LambdaHack.Common.Misc | |
Eq FontSet Source # | |
type Rep FontSet Source # | |
Defined in Game.LambdaHack.Common.Misc type Rep FontSet = D1 ('MetaData "FontSet" "Game.LambdaHack.Common.Misc" "LambdaHack-0.11.0.1-inplace" 'False) (C1 ('MetaCons "FontSet" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fontMapScalable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "fontMapBitmap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "fontPropRegular") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "fontPropBold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "fontMono") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))) |
makePhrase :: [Part] -> Text Source #
Re-exported English phrase creation functions, applied to our custom irregular word sets.
makeSentence :: [Part] -> Text Source #
Re-exported English phrase creation functions, applied to our custom irregular word sets.
squashedWWandW :: [Part] -> (Part, Person) Source #
Apply the WWandW
constructor, first representing repetitions
as CardinalWs
.
The parts are not sorted, only grouped, to keep the order.
The internal structure of speech parts is compared, not their string
rendering, so some coincidental clashes are avoided (and code is simpler).
appDataDir :: IO FilePath Source #
Personal data directory for the game. Depends on the OS and the game,
e.g., for LambdaHack under Linux it's ~/.LambdaHack/
.
show64With2 :: Int64 -> Text Source #
workaroundOnMainThreadMVar :: MVar (IO ()) Source #