mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +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
|
bool const ControlDocument::isFontAvailable(std::string const & font) const
|
||||||
{
|
{
|
||||||
OutputParams runparams;
|
|
||||||
LaTeXFeatures features(kernel().buffer(), kernel().buffer().params(), runparams);
|
|
||||||
if (font == "default" || font == "cmr"
|
if (font == "default" || font == "cmr"
|
||||||
|| font == "cmss" || font == "cmtt")
|
|| font == "cmss" || font == "cmtt")
|
||||||
// these are standard
|
// these are standard
|
||||||
return true;
|
return true;
|
||||||
else if (font == "lmodern" || font == "lmss" || font == "lmtt")
|
else if (font == "lmodern" || font == "lmss" || font == "lmtt")
|
||||||
return features.isAvailable("lmodern");
|
return LaTeXFeatures::isAvailable("lmodern");
|
||||||
else if (font == "times" || font == "palatino"
|
else if (font == "times" || font == "palatino"
|
||||||
|| font == "helvet" || font == "courier")
|
|| font == "helvet" || font == "courier")
|
||||||
return (features.isAvailable("psnfss"));
|
return LaTeXFeatures::isAvailable("psnfss");
|
||||||
else if (font == "cmbr" || font == "cmtl")
|
else if (font == "cmbr" || font == "cmtl")
|
||||||
return features.isAvailable("cmbright");
|
return LaTeXFeatures::isAvailable("cmbright");
|
||||||
else if (font == "utopia")
|
else if (font == "utopia")
|
||||||
return (features.isAvailable("utopia")
|
return LaTeXFeatures::isAvailable("utopia")
|
||||||
|| features.isAvailable("fourier"));
|
|| LaTeXFeatures::isAvailable("fourier");
|
||||||
else if (font == "beraserif" || font == "berasans"
|
else if (font == "beraserif" || font == "berasans"
|
||||||
|| font == "beramono")
|
|| font == "beramono")
|
||||||
return features.isAvailable("bera");
|
return LaTeXFeatures::isAvailable("bera");
|
||||||
else
|
else
|
||||||
return features.isAvailable(font);
|
return LaTeXFeatures::isAvailable(font);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user