| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
GI.Pango.Objects.Fontset
Description
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.
Synopsis
- newtype Fontset = Fontset (ManagedPtr Fontset)
 - class (GObject o, IsDescendantOf Fontset o) => IsFontset o
 - toFontset :: (MonadIO m, IsFontset o) => o -> m Fontset
 - noFontset :: Maybe Fontset
 - fontsetForeach :: (HasCallStack, MonadIO m, IsFontset a) => a -> FontsetForeachFunc -> m ()
 - fontsetGetFont :: (HasCallStack, MonadIO m, IsFontset a) => a -> Word32 -> m Font
 - fontsetGetMetrics :: (HasCallStack, MonadIO m, IsFontset a) => a -> m FontMetrics
 
Exported types
Memory-managed wrapper type.
Constructors
| Fontset (ManagedPtr Fontset) | 
Instances
| Eq Fontset Source # | |
| GObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset Methods gobjectType :: IO GType #  | |
| IsGValue Fontset Source # | Convert   | 
| HasParentTypes Fontset Source # | |
Defined in GI.Pango.Objects.Fontset  | |
| type ParentTypes Fontset Source # | |
Defined in GI.Pango.Objects.Fontset  | |
class (GObject o, IsDescendantOf Fontset o) => IsFontset o Source #
Instances
| (GObject o, IsDescendantOf Fontset o) => IsFontset o Source # | |
Defined in GI.Pango.Objects.Fontset  | |
Methods
Overloaded methods
foreach
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m, IsFontset a) | |
| => a | 
  | 
| -> m FontMetrics | Returns: a   | 
Get overall metric information for the fonts in the fontset.