I’m trying to load a ttf file from the SD card by using this flow:
ReferenceCountedObjectPtr<CustomTypeface> m_typeface = =new CustomTypeface(input);
When debuging I see that input.getTotalLength() is showing the right size of the TTF file - so no problem here I guess,
but the CustomTypeface constructor reading the input stream is getting nothing on
the name field and the numChars = 0.
Looking deeper into the CustomTypeface constructor I see that it uses GZIPDecompressorInputStream to decompress
Why would it assume that the FileInputStream always needs to be decompressed?
My original file is not zipped in any way.
What am I missing here ?