GlobalKerning support for FONTDEFS
Moderator: GZDoom Developers
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GlobalKerning support for FONTDEFS
The flat and wall sprite feature would have been ok if there hadn't been some pressure to make it work with full 3-axis rotations. A true flat sprite (i.e. perfectly horizontal) could just induce a split of render content like a 3D floor, as could a perfectly vertical wall sprite be treated like a translucent wall. But with pitching and rolling in the picture - forget about it! It gets far, far too complex for that.
The same applied to billboarding. Initially the entire sprite code was simple and easy to handle, but over time several people with an insufficient grasp on the implications added feature upon feature upon feature, resulting in the monstrosity the sprite code has become. And now it is to late to revert because several mods would just break.
The same applied to billboarding. Initially the entire sprite code was simple and easy to handle, but over time several people with an insufficient grasp on the implications added feature upon feature upon feature, resulting in the monstrosity the sprite code has become. And now it is to late to revert because several mods would just break.
- Kinsie
- Posts: 7401
- Joined: Fri Oct 22, 2004 9:22 am
- Graphics Processor: nVidia with Vulkan support
- Location: MAP33
- Contact:
Re: GlobalKerning support for FONTDEFS
When people express concern that a feature may be removed, and the engine developers ask when the last time a feature was removed was, and multiple instances in recent memory can be pointed out of commonly-used features getting removed and hastily replaced with buggy gap-fillers, it's reasonable for the initial concerns to not be quashed and in fact to be greatly increased. (Or in short: Yeah, FON2's gettin' dumped. Hard.)Nash wrote:Holy crap Kinsie, still not letting it go?
Re: GlobalKerning support for FONTDEFS
So? FON2 is annoying to work with anyway, relying on extremely old tools whose creators aren't even around to maintain anymore.
Besides, they're not being removed. They're just being deprecated. Feel free to use FON2 if you want, but what's being developed and expanded upon currently is a much, MUCH better font system.
Besides, they're not being removed. They're just being deprecated. Feel free to use FON2 if you want, but what's being developed and expanded upon currently is a much, MUCH better font system.
Re: GlobalKerning support for FONTDEFS
I think the first part of that is just opinion. Personally, I find working with FON2 source images and then plugging them into a compiling tool far more convenient than either working with a whole bunch of separate images or a single image that I have to then chop up myself.Nash wrote:So? FON2 is annoying to work with anyway, relying on extremely old tools whose creators aren't even around to maintain anymore.
But the compiling tool is indeed well out of date.
I'm not arguing to stop deprecation or anything, and the new system does sound far more flexible generally, I just find the idea of a single consolidated lump or source image far more convenient (and much tidier) than a whole bunch of separate ones.
Re: GlobalKerning support for FONTDEFS
I can understand the appeal of having the entire font in one image, sure. One can write a script for, say, Photoshop, or maybe ImageMagick (IIRC it has scripting capabilities) to cut out all of the individual glyphs into singular PNGs, and even name the resulting files to be Unicode-compliant. :)
I have written some automation using a Javascript-like language in Photoshop, it's honestly a not-bad language to get tedious tasks done. It's not far off from ACS or ZScript. And even if one weren't scripting-inclined, Photoshop has Actions you can record; Actions require no scripting.
Automation is everything!
I have written some automation using a Javascript-like language in Photoshop, it's honestly a not-bad language to get tedious tasks done. It's not far off from ACS or ZScript. And even if one weren't scripting-inclined, Photoshop has Actions you can record; Actions require no scripting.
Automation is everything!
Re: GlobalKerning support for FONTDEFS
My biggest concern with the "image file per glyph" solution is the massive amount of files required (possibly thousands of system file open kernel calls per font, unless its packed in a zip or smt).
Ideally I'd say it should use an OpenType font with CBDT tables (rgba bitmap glyphs), although I have no idea if there's good authoring tools for that. At least it would be a standardized font solution rather than homebrew. I can understand if Graf doesn't exactly feel like implementing such a solution, though.
Ideally I'd say it should use an OpenType font with CBDT tables (rgba bitmap glyphs), although I have no idea if there's good authoring tools for that. At least it would be a standardized font solution rather than homebrew. I can understand if Graf doesn't exactly feel like implementing such a solution, though.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GlobalKerning support for FONTDEFS
Have you ever seen a Doom mod that doesn't pack its assets into a resource file?
Re: GlobalKerning support for FONTDEFS
All those currently under development, I'd assume. At least I personally did not pack things into a resource when I was testing things myself.
Re: GlobalKerning support for FONTDEFS
As a feature suggestion, this topic has long since run its course—can we move the discussion here?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GlobalKerning support for FONTDEFS
dpJudas wrote:All those currently under development, I'd assume. At least I personally did not pack things into a resource when I was testing things myself.
Nobody releases them that way, though.
- Kinsie
- Posts: 7401
- Joined: Fri Oct 22, 2004 9:22 am
- Graphics Processor: nVidia with Vulkan support
- Location: MAP33
- Contact:
Re: GlobalKerning support for FONTDEFS
Including a WAD in a PK3 has been repeatedly argued against and considered bad practice for well-documented reasons (memory etc.) and I'm not even sure you can have a ZIP/PK3 inside of a PK3.dpJudas wrote:My biggest concern with the "image file per glyph" solution is the massive amount of files required (possibly thousands of system file open kernel calls per font, unless its packed in a zip or smt).
- phantombeta
- Posts: 2089
- Joined: Thu May 02, 2013 1:27 am
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: Brazil
Re: GlobalKerning support for FONTDEFS
AFAIK you can if you give it the WAD extension.Kinsie wrote:and I'm not even sure you can have a ZIP/PK3 inside of a PK3.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GlobalKerning support for FONTDEFS
I wonder why you would want such a thing. It normally won't do what you intend.
Re: GlobalKerning support for FONTDEFS
Technically, isn't it possible to have a single texture atlas image, and then split it into separate characters through a TEXTURES lump? Or does the font manager only works with separate graphics?Enjay wrote:I'm not arguing to stop deprecation or anything, and the new system does sound far more flexible generally, I just find the idea of a single consolidated lump or source image far more convenient (and much tidier) than a whole bunch of separate ones.
- Major Cooke
- Posts: 8176
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: GlobalKerning support for FONTDEFS
I tried doing that once with a set of sprite flames once. Learned the hard way that was a bad idea. Upon trying to show those sprites inside the game caused tremendous drops in performance when starting to cache them.