Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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 # | |
GObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
ManagedPtrNewtype Fontset Source # | |
Defined in GI.Pango.Objects.Fontset toManagedPtr :: Fontset -> ManagedPtr Fontset | |
TypedObject Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
HasParentTypes Fontset Source # | |
Defined in GI.Pango.Objects.Fontset | |
IsGValue (Maybe Fontset) Source # | Convert |
Defined in GI.Pango.Objects.Fontset gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Fontset -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, foreach, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getFont, getMetrics, getProperty, getQdata.
Setters
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.