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 |
A Fontset
represents a set of Font
to use
when rendering text. It is the result of resolving a
FontDescription
against a particular Context
.
It has operations for finding the component font for
a particular Unicode character, and for finding a composite
set of metrics for the entire fontset.
- newtype Fontset = Fontset (ManagedPtr Fontset)
- class GObject o => IsFontset o
- toFontset :: IsFontset o => o -> IO Fontset
- noFontset :: Maybe Fontset
- data FontsetForeachMethodInfo
- fontsetForeach :: (HasCallStack, MonadIO m, IsFontset a) => a -> FontsetForeachFunc -> m ()
- data FontsetGetFontMethodInfo
- fontsetGetFont :: (HasCallStack, MonadIO m, IsFontset a) => a -> Word32 -> m Font
- data FontsetGetMetricsMethodInfo
- fontsetGetMetrics :: (HasCallStack, MonadIO m, IsFontset a) => a -> m FontMetrics
Exported types
GObject Fontset Source # | |
IsObject Fontset Source # | |
IsFontset Fontset Source # | |
((~) * info (ResolveFontsetMethod t Fontset), MethodInfo * info Fontset p) => IsLabel t (Fontset -> p) Source # | |
((~) * info (ResolveFontsetMethod t Fontset), MethodInfo * info Fontset p) => IsLabelProxy t (Fontset -> p) Source # | |
HasAttributeList * Fontset Source # | |
type AttributeList Fontset Source # | |
type SignalList Fontset Source # | |
Methods
foreach
data FontsetForeachMethodInfo Source #
((~) * signature (FontsetForeachFunc -> m ()), MonadIO m, IsFontset a) => MethodInfo * FontsetForeachMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontset a) | |
=> a |
|
-> FontsetForeachFunc |
|
-> m () |
Iterates through all the fonts in a fontset, calling func
for
each one. If func
returns True
, that stops the iteration.
Since: 1.4
getFont
data FontsetGetFontMethodInfo Source #
((~) * signature (Word32 -> m Font), MonadIO m, IsFontset a) => MethodInfo * FontsetGetFontMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontset a) | |
=> a |
|
-> Word32 |
|
-> m Font | Returns: a |
Returns the font in the fontset that contains the best glyph for the
Unicode character wc
.
getMetrics
data FontsetGetMetricsMethodInfo Source #
((~) * signature (m FontMetrics), MonadIO m, IsFontset a) => MethodInfo * FontsetGetMetricsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontset a) | |
=> a |
|
-> m FontMetrics | Returns: a |
Get overall metric information for the fonts in the fontset.