Cherry/3D2D-Textscreens

Custom Fonts.

Wafelowski opened this issue · 6 comments

Maybe a option to install Custom Fonts using URL or pasting them in addons? Something like this: https://steamcommunity.com/sharedfiles/filedetails/?id=1602122798&searchtext=Font

Thanks for the feature request! This is an unlikely addition as I want to keep the addon as lightweight as possible, but I'll consider it in a future update.

Licensing with fonts can be tricky too, and some require an additional license to distribute - I'm unlikely to ever include any fonts that aren't public domain, or have very flexible licenses.

If there's no possible support for custom addons, what about adding a serif font? All the current fonts are sans serif and, while they look nice, sometimes a serif font would be nice.

@wciesialka I'd be open to it. I don't see a serif font that's shipped by default in GMod though? https://wiki.garrysmod.com/page/Default_Fonts

So I'd have to ship a font (with applicable license) with the addon, inflating its filesize. I'm open to it. Do you have a font in mind?

PS. You can technically add your own fonts to the addon via the "internal" textscreensFonts table: https://github.com/Cherry/3D2D-Textscreens/blob/master/lua/textscreens_config.lua. This is completely and intentionally undocumented though because I use indexes to determine which font to use, and manipulation of this table could cause issues between versions if I change it.

I'm not a graphical artist, so I've not really got a favorite Serif font, so ultimately I'd trust your word over anything. I've found a few fonts with licenses to embed in software or applications, which I'd assume covers Garry's Mod addons, over at Fontsquirrel. One font that stood out to me, however, was Latin Modern Roman. It seems to fit the bill of being a clean, regular Serif font. Abhaya Libre also caught my eye.

The "GUST Font License" license looks good for distribution. Thanks for taking a look.

I'll review things and update this when I can. I'm heading out of the country this weekend, so it may towards the end of the month before I can look at this again.

Before adding custom fonts, please make sure they work on MacOS and Linux as I've had issues with custom fonts on those operating systems in the past.