Allow for inventory item bolding
This commit is contained in:
@@ -25,6 +25,7 @@ module Picture.Base (
|
||||
line,
|
||||
lineCol,
|
||||
text,
|
||||
hackBoldText,
|
||||
textRight,
|
||||
textJustifyLeft,
|
||||
textJustifyRight,
|
||||
@@ -194,6 +195,9 @@ text :: String -> Picture
|
||||
{-# INLINE text #-}
|
||||
text = drawText 0
|
||||
|
||||
hackBoldText :: String -> Picture
|
||||
hackBoldText s = text s <> translate 10 0 (text s)
|
||||
|
||||
-- lines up the rightmost part of the last character with 0
|
||||
textJustifyRight :: String -> Picture
|
||||
{-# INLINE textJustifyRight #-}
|
||||
|
||||
Reference in New Issue
Block a user