Load typefaces via Consumer in Piet Android
TextElementAdapter still handles typeface fallbacks when the host calls consumer.accept(null).
I changed the missing fonts error to be called as a warning, since it is still be able to load a default font. I also updated it so that it's only called when no typefaces can be loaded, which is what is specified in errors.proto. That's also the behavior errors.proto specifies for image loading.
I had to update all of the font/typeface tests, since getTypeface() is a void method now that we're using a consumer.
8 files changed