Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The FontFace
structure is used to represent a group of fonts with
the same family, slant, weight, width, but varying sizes.
Synopsis
- newtype FontFace = FontFace (ManagedPtr FontFace)
- class (GObject o, IsDescendantOf FontFace o) => IsFontFace o
- toFontFace :: (MonadIO m, IsFontFace o) => o -> m FontFace
- fontFaceDescribe :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m FontDescription
- fontFaceGetFaceName :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m Text
- fontFaceGetFamily :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m FontFamily
- fontFaceIsSynthesized :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m Bool
- fontFaceListSizes :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m (Maybe [Int32])
Exported types
Memory-managed wrapper type.
Instances
Eq FontFace Source # | |
GObject FontFace Source # | |
Defined in GI.Pango.Objects.FontFace | |
ManagedPtrNewtype FontFace Source # | |
Defined in GI.Pango.Objects.FontFace toManagedPtr :: FontFace -> ManagedPtr FontFace | |
TypedObject FontFace Source # | |
Defined in GI.Pango.Objects.FontFace | |
HasParentTypes FontFace Source # | |
Defined in GI.Pango.Objects.FontFace | |
IsGValue (Maybe FontFace) Source # | Convert |
Defined in GI.Pango.Objects.FontFace gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe FontFace -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe FontFace) | |
type ParentTypes FontFace Source # | |
Defined in GI.Pango.Objects.FontFace |
class (GObject o, IsDescendantOf FontFace o) => IsFontFace o Source #
Type class for types which can be safely cast to FontFace
, for instance with toFontFace
.
Instances
(GObject o, IsDescendantOf FontFace o) => IsFontFace o Source # | |
Defined in GI.Pango.Objects.FontFace |
toFontFace :: (MonadIO m, IsFontFace o) => o -> m FontFace Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, describe, forceFloating, freezeNotify, getv, isFloating, isSynthesized, listSizes, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getFaceName, getFamily, getProperty, getQdata.
Setters
describe
:: (HasCallStack, MonadIO m, IsFontFace a) | |
=> a |
|
-> m FontDescription | Returns: a newly-created |
Returns the family, style, variant, weight and stretch of
a FontFace
. The size field of the resulting font description
will be unset.
getFaceName
:: (HasCallStack, MonadIO m, IsFontFace a) | |
=> a |
|
-> m Text | Returns: the face name for the face. This string is owned by the face object and must not be modified or freed. |
Gets a name representing the style of this face among the
different faces in the FontFamily
for the face. The
name is suitable for displaying to users.
getFamily
:: (HasCallStack, MonadIO m, IsFontFace a) | |
=> a |
|
-> m FontFamily | Returns: the |
Gets the FontFamily
that face
belongs to.
Since: 1.46
isSynthesized
fontFaceIsSynthesized Source #
:: (HasCallStack, MonadIO m, IsFontFace a) | |
=> a |
|
-> m Bool | Returns: whether |
Returns whether a FontFace
is synthesized by the underlying
font rendering engine from another face, perhaps by shearing, emboldening,
or lightening it.
Since: 1.18
listSizes
:: (HasCallStack, MonadIO m, IsFontFace a) | |
=> a |
|
-> m (Maybe [Int32]) |
List the available sizes for a font. This is only applicable to bitmap
fonts. For scalable fonts, stores Nothing
at the location pointed to by
sizes
and 0 at the location pointed to by nSizes
. The sizes returned
are in Pango units and are sorted in ascending order.
Since: 1.4