Unity: Download the .ttf file as binary data.

I have a .ttf font file and I want to download it as binary data. I know I can load binary data as TextAsset in Unity. But this requires the file extensions to be ".fnt" or ".bytes" (a few other extensions I know of). If I change the file extension, I can load the file as binary data into a TextAsset. But I don't want to change the file type.

  • Is there a method in Unity where I can load the .ttf file as binary data without modifying the file
  • Is there a way to load the .ttf file as Font Asset in Unity and then get the original font data from the Font Asset?
  • Or any other way to load the .ttf font as binary data?
+3


source to share





All Articles