RhenaudTheLukark / CreateYourFrisk

Rhenaud The Lukark's Unitale fork
GNU General Public License v3.0
132 stars 56 forks source link

Can you support .ttf/.otf font? #105

Open SheepYhangCN opened 2 years ago

SheepYhangCN commented 2 years ago

We are working on Chinese translate of CYF games but Chinese characters are too much, the font image is too big it will spend too long to load i know unity can support .ttf/.otf font so i hope you can add .ttf/.otf support

RhenaudTheLukark commented 2 years ago

I've discussed this issue with another member of the team you belong to in DMs, so I'll report what I said there here.

CYF's text objects are more akin to a collection of images rather than an actual text object, to allow any possible manipulation the user may want on each individual letter.

Because of that, each letter is treated as a separate image, and not like a character from a given font, like those you can get using .ttf/.otf font files, so I'm unsure using such files is possible at all.

I'm not sure it's possible to extract an image from said font files, however I am willing to look into it or at least look into an alternative way to handle the problem, given the performance problem the current system can occur on large fonts.