Source codeContentsIndex
Font
Description
The module Font export basic types and classes concerning font resources.
Synopsis
class FontDesignator fh where
toFont :: fh -> Font
newtype Font = Font String
data XFont
= XFont {
foundry :: String
family :: (Maybe FontFamily)
weight :: (Maybe FontWeight)
slant :: (Maybe FontSlant)
fontwidth :: (Maybe FontWidth)
pixels :: (Maybe Int)
points :: (Maybe Int)
xres :: (Maybe Int)
yres :: (Maybe Int)
spacing :: (Maybe FontSpacing)
charwidth :: (Maybe Int)
charset :: (Maybe String)
}
| XFontAlias String
xfont :: XFont
data FontFamily
= Lucida
| Times
| Helvetica
| Courier
| Symbol
| Other String
data FontWeight
= NormalWeight
| Medium
| Bold
data FontSlant
= Roman
| Italic
| Oblique
data FontWidth
= NormalWidth
| Condensed
| Narrow
data FontSpacing
= MonoSpace
| Proportional
Documentation
class FontDesignator fh where
Datatypes that describe a font instantiate the class FontDesignator.
Methods
toFont :: fh -> Font
Instances
FontDesignator Font
FontDesignator String
FontDesignator XFont
FontDesignator FontFamily
FontDesignator (FontFamily, Int)
FontDesignator (FontFamily, FontWeight, Int)
FontDesignator (FontFamily, FontSlant, Int)
newtype Font
The general Font datatype.
Constructors
Font String
Instances
FontDesignator Font
GUIValue Font
Show Font
Read Font
data XFont
The XFont datatype - representing the elements of an X font string.
Constructors
XFont
foundry :: String
family :: (Maybe FontFamily)
weight :: (Maybe FontWeight)
slant :: (Maybe FontSlant)
fontwidth :: (Maybe FontWidth)
pixels :: (Maybe Int)
points :: (Maybe Int)
xres :: (Maybe Int)
yres :: (Maybe Int)
spacing :: (Maybe FontSpacing)
charwidth :: (Maybe Int)
charset :: (Maybe String)
XFontAlias String
Instances
FontDesignator XFont
GUIValue XFont
Show XFont
Read XFont
xfont :: XFont
data FontFamily
Constructors
Lucida
Times
Helvetica
Courier
Symbol
Other String
Instances
FontDesignator FontFamily
FontDesignator (FontFamily, Int)
FontDesignator (FontFamily, FontWeight, Int)
FontDesignator (FontFamily, FontSlant, Int)
Read FontFamily
Show FontFamily
GUIValue FontFamily
data FontWeight
The FontWeight datatype.
Constructors
NormalWeight
Medium
Bold
Instances
FontDesignator (FontFamily, FontWeight, Int)
Read FontWeight
Show FontWeight
GUIValue FontWeight
data FontSlant
Constructors
Roman
Italic
Oblique
Instances
FontDesignator (FontFamily, FontSlant, Int)
Read FontSlant
Show FontSlant
GUIValue FontSlant
data FontWidth
Constructors
NormalWidth
Condensed
Narrow
Instances
Read FontWidth
Show FontWidth
GUIValue FontWidth
data FontSpacing
Constructors
MonoSpace
Proportional
Instances
Read FontSpacing
Show FontSpacing
GUIValue FontSpacing
Produced by Haddock version 0.3