[poppler] Re: [Patch] Info about document fonts

Marco Pesenti Gritti mpgritti at gmail.com
Tue Jun 7 16:28:17 PDT 2005


we are probably going to need more than the name string later. For
example the embedded boolean... See FontInfo.h for other info that is
already exposed. Also we may need more later, kde for example use the
font path.
You could pass back a list of structures... something like:

typedef struct {
  char *name;
  char *path;
  gboolean embedded;


Though, at that point, I probably prefer the iterator api. Still if
you like that better I can fixup the patch... let me know.


On 6/7/05, Kristian Høgsberg <krh at bitplanet.net> wrote:
> Marco Pesenti Gritti wrote:
> > Slightly updated patch, I implemented evince font properties page with this.
> >
> > Marco
> >
> > On 6/4/05, Marco Pesenti Gritti <mpgritti at gmail.com> wrote:
> >
> >>Hi,
> >>
> >>here is a patch that allows to retrieve fonts information from the
> >>document. It's based on xpdf pdffonts code. It's not complete yet but
> >>if it make sense I'd like to check it in so that we start playing with
> >>the user interface in evince and see what we need more...
> >>Suggestions welcome, my c++/xpdf knowledge is not that great.
> Do we actually need a iterator for this?  What about just returning a
> GList of g_strdup()'ed strings?
> cheers,
> Kristian

More information about the poppler mailing list