Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
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
- newtype Font = Font (ManagedPtr Font)
- noFont :: Maybe Font
- class GObject o => IsFont o
- toFont :: (MonadIO m, IsFont o) => o -> m Font
- fontGetScaledFont :: (HasCallStack, MonadIO m, IsFont a) => a -> m (Maybe ScaledFont)
Exported types
Memory-managed wrapper type.
Constructors
Font (ManagedPtr Font) |
Instances
GObject Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font Methods gobjectType :: Font -> IO GType # | |
IsObject Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
IsFont Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
IsFont Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font |
class GObject o => IsFont o Source #
Instances
(GObject a, (UnknownAncestorError Font a :: Constraint)) => IsFont a Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
IsFont Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font |
Methods
getScaledFont
Arguments
:: (HasCallStack, MonadIO m, IsFont a) | |
=> a | |
-> m (Maybe ScaledFont) | Returns: the |
Gets the ScaledFont
used by font
.
The scaled font can be referenced and kept using
cairo_scaled_font_reference()
.
Since: 1.18