Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PangoCairoFont
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)
- 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
Eq Font Source # | |
GObject Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
ManagedPtrNewtype Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font toManagedPtr :: Font -> ManagedPtr Font # | |
TypedObject Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
HasParentTypes Font Source # | |
Defined in GI.PangoCairo.Interfaces.Font | |
IsGValue (Maybe Font) Source # | Convert |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, describe, describeWithAbsoluteSize, forceFloating, freezeNotify, getv, hasChar, isFloating, notify, notifyByPspec, ref, refSink, runDispose, serialize, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCoverage, getData, getFace, getFeatures, getFontMap, getGlyphExtents, getLanguages, getMetrics, getProperty, getQdata, getScaledFont.
Setters
getScaledFont
:: (HasCallStack, MonadIO m, IsFont a) | |
=> a |
|
-> m (Maybe ScaledFont) | Returns: the |
Gets the cairo_scaled_font_t
used by font
.
The scaled font can be referenced and kept using
cairo_scaled_font_reference()
.
Since: 1.18