mirror of https://github.com/odrling/Aegisub
Make fonts collector regard @-fonts identical to their non-@ variation.
Originally committed to SVN as r1523.
This commit is contained in:
parent
ed9dc1c28e
commit
cdb9d2088b
|
@ -556,6 +556,10 @@ void FontsCollectorThread::GetFonts (wxString tagName,int par_n,AssOverrideParam
|
||||||
///////////////
|
///////////////
|
||||||
// Adds a font
|
// Adds a font
|
||||||
void FontsCollectorThread::AddFont(wxString fontname,bool isStyle) {
|
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) {
|
if (fonts.Index(fontname) == wxNOT_FOUND) {
|
||||||
fonts.Add(fontname);
|
fonts.Add(fontname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue