System fonts not being looked at on annotations
I have an annotation with da = /Arial 10
When Poppler tries to write the file, it realizes that font Arial is not embedded. I'd expect Poppler to look at system fonts and find it though.
Technically, it seems that when Poppler is generating a appearance stream for a field text It goes through this path:
-
AnnotWidget::generateFieldAppearance
initiates aGfxResources
- Passes it to
AnnotAppearanceBuilder::drawText
-
AnnotAppearanceBuilder::drawText
callsGfxResources::lookupFont
- Which tries to lookup the font using
GfxFontDict
built from the provided pdf dict - Nobody ever makes any attempt to read system fonts
Please note that:
- Trying to read system fonts happens on
GfxFont::locateFont
but noone ever tries to do anything with it.