mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
* src/frontends/controllers/ControlDocument.C: remove workaround now that
LaTeXFeatures::isAvailabe has become static git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17109 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
02c1c7df6d
commit
21ce544b9c
@ -180,27 +180,25 @@ void ControlDocument::saveAsDefault() const
|
||||
|
||||
bool const ControlDocument::isFontAvailable(std::string const & font) const
|
||||
{
|
||||
OutputParams runparams;
|
||||
LaTeXFeatures features(kernel().buffer(), kernel().buffer().params(), runparams);
|
||||
if (font == "default" || font == "cmr"
|
||||
|| font == "cmss" || font == "cmtt")
|
||||
// these are standard
|
||||
return true;
|
||||
else if (font == "lmodern" || font == "lmss" || font == "lmtt")
|
||||
return features.isAvailable("lmodern");
|
||||
return LaTeXFeatures::isAvailable("lmodern");
|
||||
else if (font == "times" || font == "palatino"
|
||||
|| font == "helvet" || font == "courier")
|
||||
return (features.isAvailable("psnfss"));
|
||||
return LaTeXFeatures::isAvailable("psnfss");
|
||||
else if (font == "cmbr" || font == "cmtl")
|
||||
return features.isAvailable("cmbright");
|
||||
return LaTeXFeatures::isAvailable("cmbright");
|
||||
else if (font == "utopia")
|
||||
return (features.isAvailable("utopia")
|
||||
|| features.isAvailable("fourier"));
|
||||
return LaTeXFeatures::isAvailable("utopia")
|
||||
|| LaTeXFeatures::isAvailable("fourier");
|
||||
else if (font == "beraserif" || font == "berasans"
|
||||
|| font == "beramono")
|
||||
return features.isAvailable("bera");
|
||||
return LaTeXFeatures::isAvailable("bera");
|
||||
else
|
||||
return features.isAvailable(font);
|
||||
return LaTeXFeatures::isAvailable(font);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user