- reworked font loader to make adding multi-lump fonts easier.

A multi-lump font can be created by putting all characters into a subdirectory of fonts/ with the intended name. Each character needs to be named by its character index as hex number.
So far this is only active for the predefined small fonts
This commit is contained in:
Christoph Oelckers 2019-02-07 13:12:39 +01:00
commit 4d2bb11317
83 changed files with 123 additions and 47 deletions

View file

@ -1130,14 +1130,14 @@ digits = [0-9];
return yych == '\0';
}
long FString::ToLong (int base) const
int64_t FString::ToLong (int base) const
{
return (long)strtoll (Chars, NULL, base);
return strtoll (Chars, NULL, base);
}
unsigned long FString::ToULong (int base) const
uint64_t FString::ToULong (int base) const
{
return (unsigned long)strtoull (Chars, NULL, base);
return strtoull (Chars, NULL, base);
}
double FString::ToDouble () const