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
unity3d unity5


source to share


No one has answered this question yet

Check out similar questions:

4
Saving / loading data in Unity
3
Unity: saving / loading sprites as Json
1
Unity: original resources from .apk build for android
1
Unity: Location of Unity resources in .apk file compiled for Android
0
How to make Unity Play Mode NOT forced screen focus for Unity Editor?
0
Unity: loading asset from Asset Bundle without file extension
0
How to load FBX file at runtime Unity?
0
Unity: add the font property parameter to the custom component
0
Unity how to load a directory of files into a script and read them as text assets?
0
Unity load files from external resources folder



All Articles
Loading...
X
Show
Funny
Dev
Pics