Skip to content
Snippets Groups Projects
Commit 26c313bf authored by Fons Rademakers's avatar Fons Rademakers
Browse files

only load the libX11TTF plugin when X11 is the current graphics driver.

This avoids loading X11TTF driver in case of Qt driver.


git-svn-id: http://root.cern.ch/svn/root/trunk@6841 27541ba8-7e3a-0410-8455-c3a389f83636
parent 79869d8c
No related branches found
No related tags found
No related merge requests found
// @(#)root/base:$Name: $:$Id: TApplication.cxx,v 1.44 2003/01/22 11:23:02 rdm Exp $ // @(#)root/base:$Name: $:$Id: TApplication.cxx,v 1.45 2003/03/10 14:57:11 rdm Exp $
// Author: Fons Rademakers 22/12/95 // Author: Fons Rademakers 22/12/95
/************************************************************************* /*************************************************************************
...@@ -166,7 +166,8 @@ TApplication::TApplication(const char *appClassName, ...@@ -166,7 +166,8 @@ TApplication::TApplication(const char *appClassName,
char *ttfont = gSystem->Which(ttpath, "arialbd.ttf", kReadPermission); char *ttfont = gSystem->Which(ttpath, "arialbd.ttf", kReadPermission);
#if !defined(R__WIN32) #if !defined(R__WIN32)
if (!gROOT->IsBatch() && ttfont && gEnv->GetValue("Root.UseTTFonts", 1)) { if (!gROOT->IsBatch() && !strcmp(gVirtualX->GetName(), "X11") &&
ttfont && gEnv->GetValue("Root.UseTTFonts", 1)) {
TString plugin = "x11ttf"; TString plugin = "x11ttf";
TPluginHandler *h; TPluginHandler *h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment