gi-poppler-0.18.11: Poppler bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Objects.FontInfo

Contents

Description

 

Synopsis

Exported types

newtype FontInfo Source #

Constructors

FontInfo (ManagedPtr FontInfo) 

Instances

GObject FontInfo Source # 
IsObject FontInfo Source # 
IsFontInfo FontInfo Source # 
((~) * info (ResolveFontInfoMethod t FontInfo), MethodInfo * info FontInfo p) => IsLabel t (FontInfo -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> FontInfo -> p #

((~) * info (ResolveFontInfoMethod t FontInfo), MethodInfo * info FontInfo p) => IsLabelProxy t (FontInfo -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> FontInfo -> p #

HasAttributeList * FontInfo Source # 
type AttributeList FontInfo Source # 
type SignalList FontInfo Source # 

Methods

free

data FontInfoFreeMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsFontInfo a) => MethodInfo * FontInfoFreeMethodInfo a signature Source # 

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

data FontInfoScanMethodInfo Source #

Instances

((~) * signature (Int32 -> m (Bool, FontsIter)), MonadIO m, IsFontInfo a) => MethodInfo * FontInfoScanMethodInfo a signature Source # 

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>