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.
Synopsis
- newtype Fontset = Fontset (ManagedPtr Fontset)
- class GObject 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.
Instances
GObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset gobjectType :: Fontset -> IO GType # | |
IsObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
IsFontset Fontset Source # | |
Defined in GI.Pango.Objects.Fontset |
class GObject o => IsFontset o Source #
Instances
(GObject a, (UnknownAncestorError Fontset a :: Constraint)) => IsFontset a Source # | |
Defined in GI.Pango.Objects.Fontset | |
IsFontset Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
IsFontset FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple |
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.