t3 icon indicating copy to clipboard operation
t3 copied to clipboard

Font support

Open sIRwa2 opened this issue 3 years ago • 7 comments
trafficstars

Support for .ttc .ttf .otf font formats.

maybe also support for Variable fonts, its the new hype / craze/ the kids go nuts for them!

sIRwa2 avatar Jun 30 '22 13:06 sIRwa2

Yes. It would be great to add the MDSF font-create to the project. As far as I can tell, it has no external dependencies, so it should in theory be possible to import TTF.

For other effects it would awesome to generate outlines and meshes directly from TTF.

pixtur avatar Jul 01 '22 15:07 pixtur

extremely important as a standard feature of any graphics program that deals with using fonts.. the process of having to use multiple node programs in order to convert fonts is basically something very few people are going to do and could easily be a thing that turns people off using T3

sense-amr avatar Oct 07 '22 02:10 sense-amr

i wonder if this could be of assistance .. in getting standard font support into T3 https://gitlab.freedesktop.org/freetype/freetype

sense-amr avatar Oct 08 '22 05:10 sense-amr

Yes, I already looked at freetype: This nuget-package looks promising: https://www.nuget.org/packages/SpaceWizards.SharpFont

But as I mentioned above, for 95% of all use cases in Tooll3 we want MSDF generate for ttf files.

This nuget-package looks promising.

pixtur avatar Oct 08 '22 22:10 pixtur

was looking into this and ran into these: msdf-atlas-gen msdfgen

We could just drop the executables into the project and throw very simple cmd commands at it, then import the generated files

theoretically of course, i know very little about this but it seems like it would be easiest with these tools

domportera avatar Nov 06 '22 10:11 domportera

Actually this sounds like a good plan. I would be very happy if you could give it a try.

pixtur avatar Dec 04 '22 18:12 pixtur

update: I tried this a while back and the JSON it outputs is missing a lot of details that our MSDF fonts have for some reason /:

domportera avatar Mar 30 '23 04:03 domportera