Skip to content

Improve pps_document_fonts_scan API

Pablo Correa Gomez requested to merge fix-fonts into main

The "return" value means only whether fonts were found. This is a bug from previously in Evince and Poppler[1]. So don't return anything, and instead always scan the whole document, as that's how it makes most sense to use it. This allows to keep all the logic more contained in pdf_document_fonts_scan, and to require less boilerplate around.

[1] https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1487

And fix a bit the shell part

This fixes the crashes when opening the dialog multiple times.

Helps #26

image

Fixes: #29 (closed)

Edited by Qiu Wenbo

Merge request reports