- Home /
Access to Custom Font Asset in Editor Scripts, no Custom Font Class?
Hi,
we are creating a game with several bitmap fonts that will be created via a custom editor (supports several different styles, outlines, etc.). To import these fonts into Unity we'd like to create a short editor script, parsing kerning information from a descriptor file.
So far I wasn't able to either create a new 'custom font' asset from script nor accessing one. There seems to be no Class for Custom Fonts from what I see in the documentation.
Is there really no Class for custom fonts or is it just undocumented?
Thx, Morothar
@loginmorothar, if you think an answer is good, you should also upvote it (in addition to checkmark), plus any other good answers you see - this helps everyone, by highlighting good answers and raising people's reputation.
How's your font are doing, I'm having problem to use optimized fonts because of those fixed-width grid.
Answer by jonas-echterhoff · Jan 12, 2010 at 01:41 PM
While there is no exposed API to edit these values, you should be able to use the SerializedObject and SerializedProperty classes to do so - see the docs for those classes for an example of usage.
Not really what I hoped for, but a feasible solution. Thx :)
Your answer
Follow this Question
Related Questions
How to find a font via script? 2 Answers
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Change Font using an Editor Script 2 Answers
How do I make copies of my Font with an editor script? 2 Answers
Building custom Font with script, can not change CharacterInfo 1 Answer