HTk.Kernel.Font
Description
The module Font export basic types and classes concerning
font resources.
- class FontDesignator fh where
- newtype Font = Font String
- data XFont
- xfont :: XFont
- data FontFamily
- data FontWeight
- = NormalWeight
- | Medium
- | Bold
- data FontSlant
- data FontWidth
- = NormalWidth
- | Condensed
- | Narrow
- data FontSpacing
Documentation
class FontDesignator fh whereSource
Datatypes that describe a font instantiate the
class FontDesignator.
Instances
| FontDesignator String | An X font string represents a font. |
| FontDesignator FontFamily | A |
| FontDesignator XFont | An |
| FontDesignator Font | A |
| FontDesignator (FontFamily, Int) | A tuple of |
| FontDesignator (FontFamily, FontSlant, Int) | A tuple of |
| FontDesignator (FontFamily, FontWeight, Int) | A tuple of |
The general Font datatype.
The XFont datatype - representing the elements of an
X font string.
Constructors
| XFont | |
| XFontAlias String | |
data FontFamily Source
The FontFamily datatype.
Instances
| Read FontFamily | Internal. |
| Show FontFamily | Internal. |
| GUIValue FontFamily | Internal. |
| FontDesignator FontFamily | A |
| FontDesignator (FontFamily, Int) | A tuple of |
| FontDesignator (FontFamily, FontSlant, Int) | A tuple of |
| FontDesignator (FontFamily, FontWeight, Int) | A tuple of |
data FontWeight Source
The FontWeight datatype.
Constructors
| NormalWeight | |
| Medium | |
| Bold |
Instances
| Read FontWeight | Internal. |
| Show FontWeight | Internal. |
| GUIValue FontWeight | Internal. |
| FontDesignator (FontFamily, FontWeight, Int) | A tuple of |
The FontSlant datatype.
Instances
| Read FontSlant | Internal. |
| Show FontSlant | Internal. |
| GUIValue FontSlant | Internal. |
| FontDesignator (FontFamily, FontSlant, Int) | A tuple of |
The FontWidth datatype.
Constructors
| NormalWidth | |
| Condensed | |
| Narrow |
data FontSpacing Source
The FontSpacing datatype.
Constructors
| MonoSpace | |
| Proportional |
Instances
| Read FontSpacing | Internal. |
| Show FontSpacing | Internal. |
| GUIValue FontSpacing | Internal. |