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 |
No description available in the introspection data.
Synopsis
- newtype FontInfo = FontInfo (ManagedPtr FontInfo)
- class (GObject o, IsDescendantOf FontInfo o) => IsFontInfo o
- toFontInfo :: (MonadIO m, IsFontInfo o) => o -> m FontInfo
- fontInfoFree :: (HasCallStack, MonadIO m, IsFontInfo a) => a -> m ()
- fontInfoNew :: (HasCallStack, MonadIO m, IsDocument a) => a -> m FontInfo
- fontInfoScan :: (HasCallStack, MonadIO m, IsFontInfo a) => a -> Int32 -> m (Bool, FontsIter)
Exported types
Memory-managed wrapper type.
Instances
Eq FontInfo Source # | |
GObject FontInfo Source # | |
Defined in GI.Poppler.Objects.FontInfo | |
ManagedPtrNewtype FontInfo Source # | |
Defined in GI.Poppler.Objects.FontInfo toManagedPtr :: FontInfo -> ManagedPtr FontInfo | |
TypedObject FontInfo Source # | |
Defined in GI.Poppler.Objects.FontInfo | |
HasParentTypes FontInfo Source # | |
Defined in GI.Poppler.Objects.FontInfo | |
IsGValue (Maybe FontInfo) Source # | Convert |
Defined in GI.Poppler.Objects.FontInfo gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe FontInfo -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe FontInfo) | |
type ParentTypes FontInfo Source # | |
Defined in GI.Poppler.Objects.FontInfo |
class (GObject o, IsDescendantOf FontInfo o) => IsFontInfo o Source #
Type class for types which can be safely cast to FontInfo
, for instance with toFontInfo
.
Instances
(GObject o, IsDescendantOf FontInfo o) => IsFontInfo o Source # | |
Defined in GI.Poppler.Objects.FontInfo |
toFontInfo :: (MonadIO m, IsFontInfo o) => o -> m FontInfo Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, free, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, scan, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
free
fontInfoFree :: (HasCallStack, MonadIO m, IsFontInfo a) => a -> m () Source #
No description available in the introspection data.
new
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m FontInfo | Returns: a new |
Creates a new FontInfo
object
scan
:: (HasCallStack, MonadIO m, IsFontInfo a) | |
=> a |
|
-> Int32 |
|
-> m (Bool, FontsIter) | Returns: |
Scans the document associated with fontInfo
for fonts. At most
nPages
will be scanned starting from the current iterator. iter
will
point to the first font scanned.
Here is a simple example of code to scan fonts in a document
<informalexample><programlisting>
font_info = poppler_font_info_new (document);
while (poppler_font_info_scan (font_info, 20, &fonts_iter)) {
if (!fonts_iter)
continue; /<!-- -->* No fonts found in these 20 pages *<!-- -->/
do {
/<!-- -->* Do something with font iter *<!-- -->/
g_print ("Font Name: s
\n", poppler_fonts_iter_get_name (fonts_iter));
} while (poppler_fonts_iter_next (fonts_iter));
poppler_fonts_iter_free (fonts_iter);
}
</programlisting></informalexample>