Make fonts collector regard @-fonts identical to their non-@ variation.

Originally committed to SVN as r1523.
This commit is contained in:
Niels Martin Hansen 2007-08-20 18:10:27 +00:00
parent ed9dc1c28e
commit cdb9d2088b
1 changed files with 4 additions and 0 deletions

View File

@ -556,6 +556,10 @@ void FontsCollectorThread::GetFonts (wxString tagName,int par_n,AssOverrideParam
///////////////
// Adds a font
void FontsCollectorThread::AddFont(wxString fontname,bool isStyle) {
// @-fonts (CJK vertical layout variations) should be listed as the non-@ name
if (fontname.StartsWith(_T("@"), 0))
fontname.Remove(0, 1);
if (fonts.Index(fontname) == wxNOT_FOUND) {
fonts.Add(fontname);