如何将粗体的Hack字体应用于Jumpyterlab?

时间:2019-06-21 02:31:31

标签: python jupyter-lab

这是我的高级设置编辑器->笔记本

{
    // Notebook
    // @jupyterlab/notebook-extension:tracker
    // Notebook settings.
    // **************************************

    // Code Cell Configuration
    // The configuration for all code cells.
    "codeCellConfig": {
      "autoClosingBrackets": true,
      "fontFamily": "Hack Bold",
      "fontSize": 20,
      "lineHeight": null,
      "lineNumbers": true,
      "lineWrap": "off",
      "matchBrackets": true,
      "readOnly": false,
      "insertSpaces": true,
      "tabSize": 4,
      "wordWrapColumn": 80
    },

    // Markdown Cell Configuration
    // The configuration for all markdown cells.
    "markdownCellConfig": {
      "autoClosingBrackets": false,
      "fontFamily": "Hack Bold",
      "fontSize": 20,
      "lineHeight": null,
      "lineNumbers": true,
      "lineWrap": "on",
      "matchBrackets": false,
      "readOnly": false,
      "insertSpaces": true,
      "tabSize": 4,
      "wordWrapColumn": 80
    },

    // Raw Cell Configuration
    // The configuration for all raw cells.
    "rawCellConfig": {
      "autoClosingBrackets": false,
      "fontFamily": "Hack Bold",
      "fontSize": 20,
      "lineHeight": null,
      "lineNumbers": true,
      "lineWrap": "on",
      "matchBrackets": false,
      "readOnly": false,
      "insertSpaces": true,
      "tabSize": 4,
      "wordWrapColumn": 80
    }
}

如果我使用fontFamily"Hack"就可以了

但是Hack BoldHack-BoldHack_Bold不起作用

CSS中的bond设置称为fontWeight,但是Jupiter Lab中没有fontWeight项。我认为我们应该将其设置为fontFamily,但是我不知道该怎么办。

如何使用粗体?

0 个答案:

没有答案