gi-pango-1.0.15: 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

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.