Using idTech 5 fonts for gui and console.

This commit is contained in:
Justin Marshall
2026-05-28 19:17:27 -07:00
parent e4c87fd5a4
commit 0591e0b5c1
28 changed files with 459 additions and 1019 deletions
+7 -1
View File
@@ -1494,6 +1494,12 @@ idImage *idImageManager::ImageFromFile( const char *_name, textureFilter_t filte
name.Replace( ".tga", "" );
name.BackSlashesToSlashes();
if ( idStr::Icmpn( name.c_str(), "fonts", 5 ) == 0 || idStr::Icmpn( name.c_str(), "newfonts", 8 ) == 0 ) {
filter = ( filter == TF_DEFAULT ) ? TF_LINEAR : filter;
allowDownSize = false;
depth = TD_HIGH_QUALITY;
}
//
// see if the image is already loaded, unless we
// are in a reloadImages call
@@ -1561,7 +1567,7 @@ idImage *idImageManager::ImageFromFile( const char *_name, textureFilter_t filte
//
image = AllocImage( name );
// HACK: to allow keep fonts from being mip'd, as new ones will be introduced with localization
// HACK: to allow keep old fonts from being mip'd, as new ones will be introduced with localization
// this keeps us from having to make a material for each font tga
if ( name.Find( "fontImage_") >= 0 ) {
allowDownSize = false;