gi-pango-1.0.25: Pango bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Exported types

newtype Fontset Source #

Memory-managed wrapper type.

Constructors

Fontset (ManagedPtr Fontset) 

Instances

Instances details
Eq Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

Methods

(==) :: Fontset -> Fontset -> Bool #

(/=) :: Fontset -> Fontset -> Bool #

GObject Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

ManagedPtrNewtype Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

TypedObject Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

Methods

glibType :: IO GType #

HasParentTypes Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

IsGValue (Maybe Fontset) Source #

Convert Fontset to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Pango.Objects.Fontset

type ParentTypes Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

class (GObject o, IsDescendantOf Fontset o) => IsFontset o Source #

Type class for types which can be safely cast to Fontset, for instance with toFontset.

Instances

Instances details
(GObject o, IsDescendantOf Fontset o) => IsFontset o Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

toFontset :: (MonadIO m, IsFontset o) => o -> m Fontset Source #

Cast to Fontset, for types for which this is known to be safe. For general casts, use castTo.

Methods

foreach

fontsetForeach Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontset a) 
=> a

fontset: a PangoFontset

-> FontsetForeachFunc

func: Callback function

-> 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

fontsetGetFont Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontset a) 
=> a

fontset: a PangoFontset

-> Word32

wc: a Unicode character

-> m Font

Returns: a PangoFont

Returns the font in the fontset that contains the best glyph for a Unicode character.

getMetrics

fontsetGetMetrics Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontset a) 
=> a

fontset: a PangoFontset

-> m FontMetrics

Returns: a PangoFontMetrics object

Get overall metric information for the fonts in the fontset.