SkPDF: fix bitmap type3 glyphs.

Before, I added the resource dictionary to each glyphs's content stream.
In fact, the resource dictionary should be added to the entire font.
This change keeps track of the new resources and adds them all to the
font after looping through the glyphs.

The following gms produce differenet PDFs:
    coloremoji
    coloremoji_blendmodes
    dftext
    mixedtextblobs
    scaledemoji
    scaledemoji_rendering
    scaledemojipos
The resulting PDFs are a few bytes shorter per typeface.

The new PDFs render the same in pdfium.  The old PDFs rendered
incorrectly (missing glyphs) in Apple Preview.  The new PDFs render
correctly in Apple Preview.

Bug: skia:8629

Change-Id: Ibbd1d22f54cb26e5423e22ce3f6e8fce5479baae
Reviewed-on: https://skia-review.googlesource.com/c/177890
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
1 file changed