gi-pangocairo-1.0.23: PangoCairo bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.PangoCairo.Interfaces.Font

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

Instances details
Eq Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

Methods

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

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

GObject Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

Methods

gobjectType :: IO GType #

IsGValue Font Source #

Convert Font to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.PangoCairo.Interfaces.Font

HasParentTypes Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

type ParentTypes Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

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

Instances details
(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

Overloaded 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