Add thin timer font

This commit is contained in:
James R 2024-01-22 16:37:35 -08:00
parent 892d2c73a8
commit 3a8a7f3cf5
5 changed files with 11 additions and 0 deletions

View file

@ -327,6 +327,9 @@ void HU_Init(void)
PR ("TMFNT");
REG;
PR ("TMFNS");
REG;
ADIM (LT);
PR ("GAMEM");
REG;

View file

@ -87,6 +87,7 @@ enum
X (KART),
X (TIMER),
X (TINYTIMER),
X (GM),
X (LSHI),
X (LSLOW),

View file

@ -295,6 +295,9 @@ int Draw::font_to_fontno(Font font)
case Font::kTimer:
return TIMER_FONT;
case Font::kThinTimer:
return TINYTIMER_FONT;
case Font::kMenu:
return MENU_FONT;
}

View file

@ -38,6 +38,7 @@ public:
kZVote,
kPing,
kTimer,
kThinTimer,
kMenu,
};

View file

@ -2273,6 +2273,7 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
}
break;
case TINY_FONT:
case TINYTIMER_FONT:
result->spacew = 2;
switch (spacing)
{
@ -2331,6 +2332,7 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
case HU_FONT:
case MENU_FONT:
case TINY_FONT:
case TINYTIMER_FONT:
case KART_FONT:
result->lfh = 12;
break;
@ -2381,6 +2383,7 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
result->dim_fn = BunchedCharacterDim;
break;
case TINY_FONT:
case TINYTIMER_FONT:
if (result->chw)
result->dim_fn = FixedCharacterDim;
else