Internally, the fonts are ref-counted, so there really isn't an owner.
The document does hold references to fonts it uses, so I believe it
can outlive the page. Patches to improve PDFium are welcome. In this
case, preferably with a test that shows closing a page does not affect
the font handle's validity.
On Wed, Jul 19, 2023 at 1:05 PM Lei Zhang <
the...@google.com> wrote:
>
> Internally, the fonts are ref-counted, so there really isn't an owner.
> The document does hold references to fonts it uses, so I believe it
> can outlive the page. Patches to improve PDFium are welcome. In this
> case, preferably with a test that shows closing a page does not affect
> the font handle's validity.
> > --
> > You received this message because you are subscribed to the Google Groups "pdfium" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to
pdfium+un...@googlegroups.com.
> > To view this discussion on the web visit
https://groups.google.com/d/msgid/pdfium/17c527a0-6c7f-4a28-af1f-5482ce67748cn%40googlegroups.com.