Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Pango.Objects.Fontset
Description
A PangoFontset
represents a set of PangoFont
to use when rendering text.
A PangoFontset
is the result of resolving a PangoFontDescription
against a particular PangoContext
. 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 Methods 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 Methods 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 type ParentTypes Fontset = '[Object] |
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
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 a Unicode character.
getMetrics
Arguments
:: (HasCallStack, MonadIO m, IsFontset a) | |
=> a |
|
-> m FontMetrics | Returns: a |
Get overall metric information for the fonts in the fontset.