Commit graph

68 commits

Author SHA1 Message Date
Christoph Oelckers
79e6d068a9 - got rid of the last two TArrays in the filesystem class. 2023-08-22 22:54:53 +02:00
Christoph Oelckers
535eb9a853 - use std::vector in GetFilesInFolder 2023-08-22 22:54:52 +02:00
Christoph Oelckers
a0d679b84b - FileData cleanup and uncoupling from FString.
Work is still needed to allow this to use the lump cache directly because some decisions in the past made this data padded by a zero byte.
2023-08-22 22:54:52 +02:00
Christoph Oelckers
f0bbc32bae - add m_swap.h to several files. 2023-08-22 21:49:55 +02:00
Christoph Oelckers
acfe82b9a8 - Backend update from Raze. 2023-05-27 09:31:17 +02:00
Christoph Oelckers
e3f8230035 - fixed handling for Turkish i's.
* islowermap and isuppermap were not set for the new characters.
* special handling for the lowercase dotted i in allcaps fonts returned the wrong character.
2023-04-05 19:01:19 +02:00
Christoph Oelckers
25c984ff6e - fixed crash when checking the extended character list for the current language.
For English this will be null because it got no extended characters.
2023-04-03 17:03:44 +02:00
Christoph Oelckers
7e1982fa65 - adapted font system to properly handle Turkish.
Those i's are really messy, especially when dealing with allcaps or pure lowercase fonts.
2023-03-31 17:40:19 +02:00
Christoph Oelckers
f6bfc48d9f - Backend update from Raze. 2023-02-11 12:05:45 +01:00
Kevin Caccamo
26518f8660 Fix Y position of characters in monospace fonts
The issue was either a typo, or a false assumption that all monospace font characters would be in squares on the sheet. Fixes #1937
2023-01-15 07:41:54 +01:00
Christoph Oelckers
aceafecce6 - optimized sheet font texture generation.
Instead of reloading the base image over and over again, let's cache it so that less time is needed for each single character.
2023-01-07 19:12:19 +01:00
Christoph Oelckers
1a0aa95ff4 - changed return value of CreatePalettedPixels.
The new struct will allpw return of static pixel data without reallocation and copying.
2023-01-07 17:55:55 +01:00
Christoph Oelckers
e8d7e0227b - fixed two memory leaks. 2022-12-03 20:39:54 +01:00
Christoph Oelckers
ca8897028f - stupid typo... 2022-10-20 19:06:07 +02:00
Christoph Oelckers
1855edba37 - don't crash on null pointers in V_GetFont. 2022-10-20 18:18:22 +02:00
Christoph Oelckers
b19b0db150 - moved language CVAR to backend. 2022-10-02 17:59:39 +02:00
Christoph Oelckers
010f41a3aa - load the hex font as early as possible. 2022-05-01 14:12:21 +02:00
Christoph Oelckers
7832ada2fc - use the hex font for the Heretic/Endoom text screens. 2022-05-01 13:41:03 +02:00
Christoph Oelckers
e60e6967c0 - whitespace cleanup, updated from Raze. 2022-01-02 12:23:42 +01:00
Christoph Oelckers
1c517d19fa - Backend update from Raze.
This is mainly code cleanup from setting the compiler to a stricter warning level.
2022-01-02 11:39:17 +01:00
Christoph Oelckers
77d74a11d1 - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
Christoph Oelckers
eb69bbcae0 - replaced MIN/MAX in common code. 2021-10-30 10:46:17 +02:00
Christoph Oelckers
cc617d9085 - Backend update from Raze.
Mostly warning fixes reported by Clang, plus GLES update.
2021-10-30 09:29:21 +02:00
Christoph Oelckers
19aac25f19 - fixed some imprecisions in font luminosity calculation.
This was still going through the palette which could result in off-by-one errors.
2021-10-07 00:13:34 +02:00
Christoph Oelckers
60bf096912 - fixed palette initialization for single lump fonts (FON2 and BMF)
The bad increment was due to the palette being a byte array in older versions.
2021-10-06 20:30:29 +02:00
Christoph Oelckers
6da9f00e6e - allow "INDEXFON" as an alias for "INDEXFONT". 2021-10-03 09:00:24 +02:00
drfrag
c13cd74766 - Fixed broken V_BreakLines. 2021-09-23 15:36:24 +02:00
Christoph Oelckers
109069f718 - removed the unused palette parameter from the V_GetColor family of functions. 2021-08-14 09:57:23 +02:00
Christoph Oelckers
ccf46281df - fixed line color handling in V_BreakLines.
This cannot use the last color found while reading ahead - it must pick the last color of the string part that just got broken out into its own line when starting the next one.
2021-08-11 16:01:40 +02:00
Christoph Oelckers
b6156ac490 - re-fixed the font spacing. 2021-08-10 22:04:32 +02:00
Christoph Oelckers
9cd1e8cf7a - use proper XMove for sheet fonts. 2021-08-10 21:18:27 +02:00
Christoph Oelckers
61efe76ffd - fixed: palette index 0 (transparent) was left uninitialized for BMF fonts. 2021-08-10 18:18:44 +02:00
Rachael Alexanderson
eb2646b613 - change previous /0 fix: as suggested here: cb8ae0b560 (commitcomment-53414064) 2021-07-13 06:32:54 -04:00
Rachael Alexanderson
cb8ae0b560 - fix /0 error caused by having a completely black font character. this error was triggered by Return of the Triad. 2021-07-13 00:15:39 -04:00
Christoph Oelckers
e453f97872 - Backend update from Raze. 2021-07-11 09:53:01 +02:00
Christoph Oelckers
b0ccd3a7df - moved Doom specific font init code out of the backend. 2021-05-31 22:13:40 +02:00
Christoph Oelckers
38520e36c8 - fixed generation of default color range for the option menu font. 2021-05-28 12:11:34 +02:00
Christoph Oelckers
d36fd4f42b - fixed: GetColorTranslation did not handle translation-less single pic 'fonts' properly. 2021-05-28 10:47:11 +02:00
Christoph Oelckers
36e84a3669 - do not calculate translations for empty fonts.
FONTDEFS will create some due to lack of game filtering.
2021-05-27 13:50:02 +02:00
Christoph Oelckers
5f02b92cd0 - font system overhaul.
This eliminates nearly all palette dependencies, most importantly font translation will now be done on True Color data, making translations on True Color font less destructive.
2021-05-24 21:28:21 +02:00
Christoph Oelckers
9925cc380e - backend update from Raze. 2020-11-23 15:45:33 +01:00
Christoph Oelckers
194824f810 - some fixes for the console.
* it is now possible to switch back to the main intro loop from the fullscreen console.
* do not distort the background of the fullscreen console. Always draw the console on top of what the main loop currently displays with a translucent black overlay.
* do not use the CONPIC for the fullscreen console as it tends to be more of a distraction than an asset when filling the entire screen.
* cleaned up c_console.cpp and moved several pieces of code unrelated to actual console management out of it.
2020-10-25 09:17:31 +01:00
Christoph Oelckers
bc2b0a0252 - added flag option menu item by Accensus. 2020-10-24 17:49:56 +02:00
Christoph Oelckers
14e94aa6c1 - added localization fallback handling for the BigFont in menu items and captions. 2020-10-17 14:00:29 +02:00
Christoph Oelckers
3a81c07ecf - moved language switching code to 'common'. 2020-10-16 22:57:27 +02:00
Christoph Oelckers
f9ee465741 - backport of some enhancements for Cyrillic font support for Raze.
Now the identical looking characters can be mapped to their Latin counterpart if they do not have their own glyphs.
2020-10-04 08:11:56 +02:00
Christoph Oelckers
6dd6df96e1 - font side support for 'OffsetsNotForFont' flag. 2020-09-27 11:40:03 +02:00
Christoph Oelckers
48b3a60e6d - fixed: The font init code must check textures, not the file system for existence of required data. 2020-09-26 19:57:53 +02:00
Christoph Oelckers
084c2cc7f5 - fixed broken 'y' detection in Doom-style small fonts. 2020-09-26 18:53:42 +02:00
Christoph Oelckers
b2b1ecc11f - Single image fonts do not use translations. 2020-05-25 21:16:36 +02:00