]> git.lyx.org Git - features.git/commitdiff
Revert "Fix Ticket #9741 misleading name for font-encoding setting "default"."
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 23 Oct 2016 15:20:58 +0000 (17:20 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 23 Oct 2016 15:20:58 +0000 (17:20 +0200)
This reverts commit e37e4f537c70d75835441d84bc327c56805ecc3e.

The issue still needs discussion.

src/BufferParams.cpp
src/frontends/qt4/GuiDocument.cpp

index 906061aa63e8fe4edcf560ac3239e3171989a06d..50870c57b2e826065de252e82530658e374b7e26 100644 (file)
@@ -1647,7 +1647,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
                   << from_ascii(fonts_default_family) << "}\n";
 
        // set font encoding
-       // XeTeX and LuaTeX with Unicode fonts do not need fontenc
+       // XeTeX and LuaTeX (with OS fonts) do not need fontenc
        if (!useNonTeXFonts && !features.isProvided("fontenc")
            && font_encoding() != "default") {
                // get main font encodings
@@ -2942,7 +2942,7 @@ vector<string> const BufferParams::font_encodings() const
 
        vector<string> fontencs;
 
-       // "default" means "no explicit font encoding, don't load fontenc.sty"
+       // "default" means "no explicit font encoding"
        if (doc_fontenc != "default") {
                fontencs = getVectorFromString(doc_fontenc);
                if (!language->fontenc().empty()
index 19fce601564ce81835c9c233fb5724f101900385..2a4087362e807d3362d03937bf58a5e518536f19 100644 (file)
@@ -859,18 +859,9 @@ GuiDocument::GuiDocument(GuiView & lv)
        fontModule->fontsizeCO->addItem(qt_("11"));
        fontModule->fontsizeCO->addItem(qt_("12"));
 
-       fontModule->fontencCO->addItem(qt_("Global Default"), QString("global"));
+       fontModule->fontencCO->addItem(qt_("Default"), QString("global"));
        fontModule->fontencCO->addItem(qt_("Custom"), QString("custom"));
-       fontModule->fontencCO->addItem(qt_("TeX default (OT1, no fontenc)"), QString("default"));
-       fontModule->fontencCO->setToolTip(
-                       qt_("Select LaTeX font encoding(s).\n"
-                           "The standard [Global Default] is "
-                               "\"T1 via 'fontenc' package\" (see Tools>Preferences>Output>LaTeX).\n"
-                               "Notes:\n"
-                               "TeX's default fonts (Computer Modern) are not available "
-                               "in T1 encoding, Latin Modern is the recommended lookalike.\n"
-                               "Font encodings for Greek and Cyrillic are automatically added if required."
-                          ));
+       fontModule->fontencCO->addItem(qt_("None (no fontenc)"), QString("default"));
 
        for (int n = 0; GuiDocument::fontfamilies_gui[n][0]; ++n)
                fontModule->fontsDefaultCO->addItem(
@@ -3069,7 +3060,7 @@ void GuiDocument::paramsToDialog()
        biblioChanged_ = false;
 
        // indices
-       // We may be called when there is no Buffer, e.g., when
+       // We may be called when there is no Buffer, e.g., when 
        // the last view has just been closed.
        bool const isReadOnly = isBufferAvailable() ? buffer().isReadonly() : false;
        indicesModule->update(bp_, isReadOnly);
@@ -3401,7 +3392,7 @@ void GuiDocument::paramsToDialog()
                        toqstr(bp_.fonts_cjk));
        else
                fontModule->cjkFontLE->setText(QString());
-
+       
        fontModule->microtypeCB->setChecked(bp_.use_microtype);
 
        fontModule->fontScCB->setChecked(bp_.fonts_expert_sc);