implement a txt preview fallback for the case that ttf is not support