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 |
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.
- 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
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