gi-pango-1.0.16: Pango bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Pango.Objects.Fontset

Contents

Description

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

Exported types

newtype Fontset Source #

Memory-managed wrapper type.

Constructors

Fontset (ManagedPtr Fontset) 
Instances
GObject Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

IsObject Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

IsFontset Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

class GObject o => IsFontset o Source #

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

Instances
(GObject a, (UnknownAncestorError Fontset a :: Constraint)) => IsFontset a Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

IsFontset Fontset Source # 
Instance details

Defined in GI.Pango.Objects.Fontset

IsFontset FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

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.

noFontset :: Maybe Fontset Source #

A convenience alias for Nothing :: Maybe Fontset.

Methods

foreach

fontsetForeach Source #

Arguments

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

fontset: a Fontset

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

-> Word32

wc: a Unicode character

-> m Font

Returns: a Font. The caller must call g_object_unref when finished with the font.

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

getMetrics

fontsetGetMetrics Source #

Arguments

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

fontset: a Fontset

-> m FontMetrics

Returns: a FontMetrics object. The caller must call fontMetricsUnref when finished using the object.

Get overall metric information for the fonts in the fontset.