Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The FontFamily
structure is used to represent a family of related
font faces. The faces in a family share a common design, but differ in
slant, weight, width and other aspects.
- newtype FontFamily = FontFamily (ManagedPtr FontFamily)
- class GObject o => IsFontFamily o
- toFontFamily :: IsFontFamily o => o -> IO FontFamily
- noFontFamily :: Maybe FontFamily
- data FontFamilyGetNameMethodInfo
- fontFamilyGetName :: (HasCallStack, MonadIO m, IsFontFamily a) => a -> m Text
- data FontFamilyIsMonospaceMethodInfo
- fontFamilyIsMonospace :: (HasCallStack, MonadIO m, IsFontFamily a) => a -> m Bool
- data FontFamilyListFacesMethodInfo
- fontFamilyListFaces :: (HasCallStack, MonadIO m, IsFontFamily a) => a -> m [FontFace]
Exported types
newtype FontFamily Source #
GObject FontFamily Source # | |
IsObject FontFamily Source # | |
IsFontFamily FontFamily Source # | |
((~) * info (ResolveFontFamilyMethod t FontFamily), MethodInfo * info FontFamily p) => IsLabel t (FontFamily -> p) Source # | |
((~) * info (ResolveFontFamilyMethod t FontFamily), MethodInfo * info FontFamily p) => IsLabelProxy t (FontFamily -> p) Source # | |
HasAttributeList * FontFamily Source # | |
type AttributeList FontFamily Source # | |
type SignalList FontFamily Source # | |
class GObject o => IsFontFamily o Source #
toFontFamily :: IsFontFamily o => o -> IO FontFamily Source #
Methods
getName
data FontFamilyGetNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsFontFamily a) => MethodInfo * FontFamilyGetNameMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontFamily a) | |
=> a |
|
-> m Text | Returns: the name of the family. This string is owned by the family object and must not be modified or freed. |
Gets the name of the family. The name is unique among all
fonts for the font backend and can be used in a FontDescription
to specify that a face from this family is desired.
isMonospace
data FontFamilyIsMonospaceMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsFontFamily a) => MethodInfo * FontFamilyIsMonospaceMethodInfo a signature Source # | |
fontFamilyIsMonospace Source #
:: (HasCallStack, MonadIO m, IsFontFamily a) | |
=> a |
|
-> m Bool | Returns: |
A monospace font is a font designed for text display where the the
characters form a regular grid. For Western languages this would
mean that the advance width of all characters are the same, but
this categorization also includes Asian fonts which include
double-width characters: characters that occupy two grid cells.
unicharIswide
returns a result that indicates whether a
character is typically double-width in a monospace font.
The best way to find out the grid-cell size is to call
fontMetricsGetApproximateDigitWidth
, since the results
of fontMetricsGetApproximateCharWidth
may be affected
by double-width characters.
Since: 1.4
listFaces
data FontFamilyListFacesMethodInfo Source #
((~) * signature (m [FontFace]), MonadIO m, IsFontFamily a) => MethodInfo * FontFamilyListFacesMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontFamily a) | |
=> a |
|
-> m [FontFace] |
Lists the different font faces that make up family
. The faces
in a family share a common design, but differ in slant, weight,
width and other aspects.