Text marking with this file
https://issues.apache.org/jira/secure/attachment/12769999/type3%20zero%20font%20size.pdf
has a giant size.

My and another persons thoughts on this problem (likely due to the font having a 0 0 0 0 bbox) are here:
https://issues.apache.org/jira/browse/PDFBOX-3076

cnt glyphWdth = [];
              let j = frtChar;
              fr (let  = 0,  = wdth.length;  < ; ) {
                glyphWdth[j] = th.xref.fetchIfRef(wdth[]);
              }
              newPrperte.wdth = glyphWdth;
            } ele {
              newPrperte.wdth = th.buldCharCdeTWdth(
                metrc.wdth,
                newPrperte
              );
            }
            return new Fnt(baeFntName, null, newPrperte);
          }
        );
      }
    }
     Accrdng t the pec f 'FntDecrptr'  declared, 'FrtChar',
     'LatChar' and 'Wdth' huld ext t, but me PDF encder eem
     t gnre th rule when a varnt f a tandard fnt  ued.
     TODO Fll the wdth array dependng n whch f the bae fnt th 
     a varnt.
    me = decrptr.get("FntName");
    let baeFnt = dct.get("BaeFnt");
     Sme bad PDF have a trng a the fnt name.
    f (Strng(fntName)) {
      fntName = Name.get(fntName);
    }