| 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.
- newtype Font = Font (ManagedPtr Font)
- noFont :: Maybe Font
- class GObject o => IsFont o
- toFont :: IsFont o => o -> IO Font
- data FontGetScaledFontMethodInfo
- fontGetScaledFont :: (HasCallStack, MonadIO m, IsFont a) => a -> m (Maybe ScaledFont)
Exported types
Constructors
| Font (ManagedPtr Font) |
Instances
| GObject Font Source # | |
| IsObject Font Source # | |
| IsFont Font Source # | |
| IsFont Font Source # | |
| ((~) * info (ResolveFontMethod t Font), MethodInfo * info Font p) => IsLabel t (Font -> p) Source # | |
| ((~) * info (ResolveFontMethod t Font), MethodInfo * info Font p) => IsLabelProxy t (Font -> p) Source # | |
| HasAttributeList * Font Source # | |
| type AttributeList Font Source # | |
| type SignalList Font Source # | |
Methods
getScaledFont
data FontGetScaledFontMethodInfo Source #
Instances
| ((~) * signature (m (Maybe ScaledFont)), MonadIO m, IsFont a) => MethodInfo * FontGetScaledFontMethodInfo a signature Source # | |
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