Allow texture hints in font pages.

This commit is contained in:
Glenn Maynard
2003-09-03 09:03:58 +00:00
parent 0b80036bd8
commit 34b8ae04b9
+5
View File
@@ -364,6 +364,11 @@ CString Font::GetFontName(CString FileName)
if(DimSpec.Compare(FileName, mat))
FileName.erase(FileName.size()-mat[0].size());
/* If it ends in texture hints, remove them. */
static Regex Hints("( \\([^\\)]+\\))$");
if(Hints.Compare(FileName, mat))
FileName.erase(FileName.size()-mat[0].size());
/* If it ends in a page name, remove it. */
static Regex PageName("( \\[.+\\])$");
if(PageName.Compare(FileName, mat))