El dimarts, 21 d’octubre del 2025, a les 9:25:43 (Hora estàndard d’Europa 
central), Martin Owens va escriure:
> On Tue, 2025-10-21 at 00:20 +0200, Albert Astals Cid wrote:
> > What is "state" in that pseudocode? a GfxState? It can not conjure
> > cairo fonts
> > from thin air, poppler does not use cairo (unless you're using a
> > CairoOutputDev).
> 
> This might be a ancient problem.
> 
> Back in 2007 a developer copied much of Gfx.cc into Inkscape's
> codebase. And what looks like a decent chunk of a very customised
> version of CairoOutputDev but with non of the ability to move to the
> actual upstream version of it.
> 
> I believe the API that isn't accessible is CairoFontEngine.cc and
> probably a result of this mess requires that code to also be copied in
> order to access CairoFont objects.
> 
> Perhaps the right course is to rewrite our PDF importer. not ow of
> course, there's a million and one other things to do. But it sounds
> like this isn't really solvable by either of our projects.

I do not understand why you say it is not solvable. I gave you an example on 
what to do on poppler if you wanted to add that feature. Was I not clear 
enough? Maybe you can drop by the Matrix channel and talk there, makes things 
a bit easier sometimes.

Cheers,
  Albert

> 
> Thank you for your help.
> 
> Regards, Martin




Reply via email to