Skip to content
  • Oliver Sander's avatar
    FreeText: Use font from default appearance string · f3e3dd80
    Oliver Sander authored and Albert Astals Cid's avatar Albert Astals Cid committed
    If a FreeText annotation misses an AP entry, try to create a temporary font
    as defined by its default appearance string. Tf operator names the font resource,
    and we can search for the resource inside the default resource dictionary.
    See ISO32000 sections about "Free Text Annotations" and "Variable Text".
    
    If lookup fails for some reason, use Helvetica as fallback.
    
    Patch done together with Tobias Deiminger
    f3e3dd80