Convert font texture to new MSDF format

Post Reply
User avatar
piva
Posts: 2377
Joined: 29 Oct 2014 16:41

Convert font texture to new MSDF format

#1 Post by piva » 24 Jan 2022 05:57

I have my self painted font (for example Volvo font) and I don't know how to convert this texture to new font format.
This site https://modding.scssoft.com/wiki/Docume ... gine/Fonts
show how I can work with existing ttf file, but I need to convert DDS TEXTURE.
All what I can found in internet - work with TTF fonts.
How can I convert my texture?
User avatar
Etrusan
Posts: 648
Joined: 04 Sep 2014 15:29
Location: Brno, Czech Republic
Contact:

Re: Convert font texture to new MSDF format

#2 Post by Etrusan » 24 Jan 2022 06:08

You can't. You need to generate your font from .ttf/.otf.
Seasonic SSR-650TD; Intel Core i5-6700K; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Crucial MX500 2TB; 3x Seagate IronWolf Pro; Corsair Force MP510 960GB; 2x 24" AOC I2481FXH; Windows 10

www.etrusan.net
User avatar
Madkine
Global moderator
Posts: 12352
Joined: 08 Oct 2018 16:35
Location: Australia
Contact:

Re: Convert font texture to new MSDF format

#3 Post by Madkine » 24 Jan 2022 08:12

That's what he's asking. How does he generate the new type of font file from the ttf file.
WoT Profile
ATS Workshop

"never attribute to malice that which is adequately explained by stupidity"
User avatar
Max
SCS Software
Posts: 6479
Joined: 26 Nov 2012 10:00
Location: SCS, Prague

Re: Convert font texture to new MSDF format

#4 Post by Max » 24 Jan 2022 09:04

piva wants to get new texture from old one (manually created).
but that is impossible as old texture does not have enough data to compute all fields. actualy this is reason we changed the format - that we can draw letters better thanks to it.
new texture can be only created from TTF as it has all vectorised info from which new data can be obtained.

what we do is either get given TTF or create one if it does not exist (like re-paint all lleters in vector format). and then run our generator to precompute font data into texture.
Nobody can tell you anything about it. Those who know about it aren't allowed to talk. And those who talk know nothing.
User avatar
piva
Posts: 2377
Joined: 29 Oct 2014 16:41

Re: Convert font texture to new MSDF format

#5 Post by piva » 24 Jan 2022 09:39

Thanks Max for answer. This is good idea to draw font in TTF editor and than convert it to msdf format. But in this case I must learn another new one tool like a TTF Edior :lol: Or, maybe, SCS already created this font for new Volvo truck if SCS added licensed Volvo vehicles as cargo? ;)
Post Reply

Return to “Help center - player to player”

Who is online

Users browsing this forum: No registered users and 2 guests