gi-pangocairo-1.0.20: PangoCairo bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.PangoCairo.Interfaces.Font

Contents

Description

Font is an interface exported by fonts for use with Cairo. The actual type of the font will depend on the particular font technology Cairo was compiled to use.

Since: 1.18

Synopsis

Exported types

newtype Font Source #

Memory-managed wrapper type.

Constructors

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

Defined in GI.PangoCairo.Interfaces.Font

Methods

gobjectType :: IO GType #

HasParentTypes Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

type ParentTypes Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

type ParentTypes Font = Font ': (Object ': ([] :: [Type]))

noFont :: Maybe Font Source #

A convenience alias for Nothing :: Maybe Font.

class (GObject o, IsDescendantOf Font o) => IsFont o Source #

Type class for types which can be safely cast to Font, for instance with toFont.

Instances
(GObject o, IsDescendantOf Font o) => IsFont o Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

toFont :: (MonadIO m, IsFont o) => o -> m Font Source #

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

Methods

getScaledFont

fontGetScaledFont Source #

Arguments

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

font: a Font from a FontMap

-> m (Maybe ScaledFont)

Returns: the ScaledFont used by font, or Nothing if font is Nothing.

Gets the ScaledFont used by font. The scaled font can be referenced and kept using cairo_scaled_font_reference().

Since: 1.18