[android]FT_Open_Face is very slow

Using version: SDL2-2.0.4, SDL2_ttf-2.0.14

On android, if font file is at Asset, FT_Open_Face is very slow, for example
to 350 milliseconds. But same device and same code, if font file at sdcard,
spend time reduced to 1 milliseconds!

Used Font files like Andagii.ttf, DejaVuSans.ttf, wqy-zenhei.ttc.

What is result in it?

ancientli wrote:

On android, if font file is at Asset, FT_Open_Face is very slow, for example to 350 milliseconds.

My guess is that this is the time taken to decompress the file (most files in assets are stored in a compressed format). You could choose to disable compression for ttf files, but it would make your app package larger.

Richard.