Skip to content
Snippets Groups Projects
Commit 1866f4c3 authored by Jonathan Kew's avatar Jonathan Kew
Browse files

Bug 1493418 - nsThebesFontEnumerator needs to convert font names from UTF-8...

Bug 1493418 - nsThebesFontEnumerator needs to convert font names from UTF-8 (not Latin-1) to UTF-16. r=lsalzman
parent 24a9c4ca
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ nsThebesFontEnumerator::GetDefaultFont(const char *aLangGroup,
GetDefaultFontName(nsDependentCString(aLangGroup),
nsDependentCString(aGeneric)));
if (!defaultFontName.IsEmpty()) {
*aResult = ToNewUnicode(defaultFontName);
*aResult = UTF8ToNewUnicode(defaultFontName);
}
return NS_OK;
}
......@@ -279,6 +279,6 @@ nsThebesFontEnumerator::GetStandardFamilyName(const char16_t *aName,
*aResult = nullptr;
return NS_OK;
}
*aResult = ToNewUnicode(family);
*aResult = UTF8ToNewUnicode(family);
return NS_OK;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment