uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Kernel.Font

Description

The module Font export basic types and classes concerning font resources.

Synopsis

Documentation

class FontDesignator fh where Source #

Datatypes that describe a font instantiate the class FontDesignator.

Minimal complete definition

toFont

Methods

toFont :: fh -> Font Source #

Instances

FontDesignator String Source #

An X font string represents a font.

Methods

toFont :: String -> Font Source #

FontDesignator FontFamily Source #

A FontFamily object describes a font (default values set for other parameters).

FontDesignator XFont Source #

An XFont object (see type) represents a font.

Methods

toFont :: XFont -> Font Source #

FontDesignator Font Source #

A Font object itself represents a font.

Methods

toFont :: Font -> Font Source #

FontDesignator (FontFamily, Int) Source #

A tuple of (FontFamily,Int) describes a font with its font family and points.

Methods

toFont :: (FontFamily, Int) -> Font Source #

FontDesignator (FontFamily, FontSlant, Int) Source #

A tuple of (FontFamily,FontSlant,Int) describes a font with its font family, font slant and points.

FontDesignator (FontFamily, FontWeight, Int) Source #

A tuple of (FontFamily,FontWeight,Int) describes a font with its font family, font weight and points.

newtype Font Source #

The general Font datatype.

Constructors

Font String 

data XFont Source #

The XFont datatype - representing the elements of an X font string.

xfont :: XFont Source #

Standard font.

data FontFamily Source #

The FontFamily datatype.

Instances

Read FontFamily Source #

Internal.

Show FontFamily Source #

Internal.

GUIValue FontFamily Source #

Internal.

FontDesignator FontFamily Source #

A FontFamily object describes a font (default values set for other parameters).

FontDesignator (FontFamily, Int) Source #

A tuple of (FontFamily,Int) describes a font with its font family and points.

Methods

toFont :: (FontFamily, Int) -> Font Source #

FontDesignator (FontFamily, FontSlant, Int) Source #

A tuple of (FontFamily,FontSlant,Int) describes a font with its font family, font slant and points.

FontDesignator (FontFamily, FontWeight, Int) Source #

A tuple of (FontFamily,FontWeight,Int) describes a font with its font family, font weight and points.

data FontWeight Source #

The FontWeight datatype.

Constructors

NormalWeight 
Medium 
Bold 

data FontSlant Source #

The FontSlant datatype.

Constructors

Roman 
Italic 
Oblique