3D2D-Textscreens icon indicating copy to clipboard operation
3D2D-Textscreens copied to clipboard

Custom Fonts.

Open Wafelowski opened this issue 7 years ago • 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

Wafelowski avatar Feb 16 '19 12:02 Wafelowski

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.

Cherry avatar Feb 16 '19 13:02 Cherry

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 avatar Jun 29 '19 06:06 wciesialka

@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.

Cherry avatar Jun 30 '19 14:06 Cherry

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.

wciesialka avatar Jul 02 '19 00:07 wciesialka

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.

Cherry avatar Jul 02 '19 00:07 Cherry

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.

AliceDTRH avatar Jun 17 '21 20:06 AliceDTRH