gi-poppler-0.18.29: Poppler bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Poppler.Objects.FontInfo

Description

No description available in the introspection data.

Synopsis

Exported types

newtype FontInfo Source #

Memory-managed wrapper type.

Constructors

FontInfo (ManagedPtr FontInfo) 

Instances

Instances details
Eq FontInfo Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

GObject FontInfo Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

ManagedPtrNewtype FontInfo Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

Methods

toManagedPtr :: FontInfo -> ManagedPtr FontInfo

TypedObject FontInfo Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

Methods

glibType :: IO GType

HasParentTypes FontInfo Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

IsGValue (Maybe FontInfo) Source #

Convert FontInfo to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Poppler.Objects.FontInfo

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe FontInfo -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe FontInfo)

type ParentTypes FontInfo Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

type ParentTypes FontInfo = '[Object]

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

Instances details
(GObject o, IsDescendantOf FontInfo o) => IsFontInfo o Source # 
Instance details

Defined in GI.Poppler.Objects.FontInfo

toFontInfo :: (MonadIO m, IsFontInfo o) => o -> m FontInfo Source #

Cast to FontInfo, for types for which this is known to be safe. For general casts, use castTo.

Methods

free

fontInfoFree :: (HasCallStack, MonadIO m, IsFontInfo a) => a -> m () Source #

No description available in the introspection data.

new

fontInfoNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsDocument a) 
=> a

document: a Document

-> m FontInfo

Returns: a new FontInfo instance

Creates a new FontInfo object

scan

fontInfoScan Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontInfo a) 
=> a

fontInfo: a FontInfo

-> Int32

nPages: number of pages to scan

-> m (Bool, FontsIter)

Returns: True, if there are more fonts left to scan

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>