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.

Thank you for your help.

Regards, Martin

Reply via email to