does anybody know how to convert a editable font back into a ttf format so I can use it with my ui text?
I originally converted the ttf font into a editable format so that I could switch the bilinear filter mode to point.
however now I can’t actually use it.
ok so I have this script to bypass saving my font as a editable font
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[ExecuteInEditMode]
public class PointFont : MonoBehaviour {
void Start () {
GetComponent<Text>().font.material.mainTexture.filterMode = FilterMode.Point;
}
}
however it throws the error “NullRefrenceException: Object reference not set to instance of a object”
can someone help me out?