gi-pango-1.0.13: 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 #

Constructors

Fontset (ManagedPtr Fontset) 

Instances

GObject Fontset Source # 
IsObject Fontset Source # 
IsFontset Fontset Source # 
((~) * info (ResolveFontsetMethod t Fontset), MethodInfo * info Fontset p) => IsLabel t (Fontset -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Fontset -> p #

((~) * info (ResolveFontsetMethod t Fontset), MethodInfo * info Fontset p) => IsLabelProxy t (Fontset -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Fontset -> p #

HasAttributeList * Fontset Source # 
type AttributeList Fontset Source # 
type SignalList Fontset Source # 

Methods

foreach

data FontsetForeachMethodInfo Source #

Instances

((~) * signature (FontsetForeachFunc -> m ()), MonadIO m, IsFontset a) => MethodInfo * FontsetForeachMethodInfo a signature Source # 

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

data FontsetGetFontMethodInfo Source #

Instances

((~) * signature (Word32 -> m Font), MonadIO m, IsFontset a) => MethodInfo * FontsetGetFontMethodInfo a signature Source # 

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.