Some tweaks

git-svn-id: svn://10.0.0.236/trunk@111934 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2002-01-11 05:08:11 +00:00
parent 0a3b34410d
commit c264cfec89
3 changed files with 6 additions and 5 deletions

View File

@@ -132,12 +132,12 @@ CheckFontExistence(nsIPresContext* aPresContext, const nsString& aFontName)
}
// alert the user if some of the needed MathML fonts are not installed.
void
static void
AlertMissingFonts(nsString& aMissingFonts)
{
nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));
nsCOMPtr<nsIPrompt> prompter;
if (wwatch) {
nsCOMPtr<nsIPrompt> prompter;
wwatch->GetNewPrompter(0, getter_AddRefs(prompter));
if (prompter) {
nsAutoString message;
@@ -1038,7 +1038,7 @@ MathFontEnumCallback(const nsString& aFamily, PRBool aGeneric, void *aData)
//#ifndef _WIN32
// XXX In principle, the mathfont-family list in the mathfont.properties file
// is customizable depending on the platform. For now, this is here since there
// is no need to alter Linux users about TrueType fonts specific to Windows.
// is no need to alert Linux users about TrueType fonts specific to Windows.
if (aFamily.EqualsIgnoreCase("MT Extra"))
return PR_TRUE; // continue to try other fonts
//#endif