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 |
The FontFace
structure is used to represent a group of fonts with
the same family, slant, weight, width, but varying sizes.
- newtype FontFace = FontFace (ManagedPtr FontFace)
- class GObject o => IsFontFace o
- toFontFace :: IsFontFace o => o -> IO FontFace
- noFontFace :: Maybe FontFace
- data FontFaceDescribeMethodInfo
- fontFaceDescribe :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m FontDescription
- data FontFaceGetFaceNameMethodInfo
- fontFaceGetFaceName :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m Text
- data FontFaceIsSynthesizedMethodInfo
- fontFaceIsSynthesized :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m Bool
- data FontFaceListSizesMethodInfo
- fontFaceListSizes :: (HasCallStack, MonadIO m, IsFontFace a) => a -> m (Maybe [Int32])
Exported types
GObject FontFace Source # | |
IsObject FontFace Source # | |
IsFontFace FontFace Source # | |
((~) * info (ResolveFontFaceMethod t FontFace), MethodInfo * info FontFace p) => IsLabel t (FontFace -> p) Source # | |
((~) * info (ResolveFontFaceMethod t FontFace), MethodInfo * info FontFace p) => IsLabelProxy t (FontFace -> p) Source # | |
HasAttributeList * FontFace Source # | |
type AttributeList FontFace Source # | |
type SignalList FontFace Source # | |
class GObject o => IsFontFace o Source #
(GObject a, UnknownAncestorError Constraint FontFace a) => IsFontFace a Source # | |
IsFontFace FontFace Source # | |
toFontFace :: IsFontFace o => o -> IO FontFace Source #
Methods
describe
data FontFaceDescribeMethodInfo Source #
((~) * signature (m FontDescription), MonadIO m, IsFontFace a) => MethodInfo * FontFaceDescribeMethodInfo a signature Source # | |
:: (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
data FontFaceGetFaceNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsFontFace a) => MethodInfo * FontFaceGetFaceNameMethodInfo a signature Source # | |
:: (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. This
name is unique among all faces in the family and is suitable
for displaying to users.
isSynthesized
data FontFaceIsSynthesizedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsFontFace a) => MethodInfo * FontFaceIsSynthesizedMethodInfo a signature Source # | |
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
data FontFaceListSizesMethodInfo Source #
((~) * signature (m (Maybe [Int32])), MonadIO m, IsFontFace a) => MethodInfo * FontFaceListSizesMethodInfo a signature Source # | |
:: (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