Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
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, IsDescendantOf Font 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.
Instances
GObject Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font gobjectType :: IO GType # | |
HasParentTypes Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
type ParentTypes Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font |
class (GObject o, IsDescendantOf Font o) => IsFont o Source #
Instances
(GObject o, IsDescendantOf Font o) => IsFont o Source # | |
Defined in GI.PangoCairo.Interfaces.Font |
Methods
getScaledFont
:: (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