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 |
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
- 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.
Instances
Eq Fontset Source # | |
IsGValue Fontset Source # | Convert |
ManagedPtrNewtype Fontset Source # | |
Defined in GI.Pango.Objects.Fontset toManagedPtr :: Fontset -> ManagedPtr Fontset # | |
TypedObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
GObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
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
:: (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
:: (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
:: (HasCallStack, MonadIO m, IsFontset a) | |
=> a |
|
-> m FontMetrics | Returns: a |
Get overall metric information for the fonts in the fontset.