zoukankan      html  css  js  c++  java
  • 把TYPORA改为微软雅黑+CONSOLAS

    typora是一款非常方便的书写markdown文本的编辑器。

    typora字体更改步骤如下:

    1.打开Typora软件,主题选择night

    文件 >> 偏好设置 >> 打开主题文件夹

     上面的几个css文件就是对应主题的css,用哪个主题就要配置哪个文件,我喜欢用的是night.css

    2.配置.css

    在night.css文件中增加微软雅黑字体和CONSOLAS字体的配置,即在原有的基础上增加  Consolas,"Microsoft Yahei"

    textarea {
        font-family: Consolas,"Microsoft Yahei","Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    font-family代表此处控制的是字体,一种逗号代表一个字体,这里我们写了6个字体,我们这句话的意思就是遇到一个字体,如果是英文选用Consolas,因为它在前面,如果是中文就选用Microsoft Yahei(微软雅黑)字体,Consolas是不包含中文字体的

    3. 源码模式字体的修改

    文件 >> 偏好设置 >> 打开高级设置

    conf.user.json文件配置更改 上面几行字体设置好即可

    /** For advanced users. */
    {
      "defaultFontFamily": {
        "standard": "Microsoft Yahei", //String - Defaults to "Times New Roman".
        "serif": "Microsoft Yahei", // String - Defaults to "Times New Roman".
        "sansSerif": "Consolas", // String - Defaults to "Arial".
        "monospace": "Consolas" // String - Defaults to "Courier New".
      },
      "autoHideMenuBar": false, //Boolean - Auto hide the menu bar unless the `Alt` key is pressed. Default is false.
    
      // Array - Search Service user can access from context menu after a range of text is selected. Each item is formatted as [caption, url]
      "searchService": [
        ["Search with Google", "https://google.com/search?q=%s"]
      ],
    
      // Custom key binding, which will override the default ones.
      "keyBinding": {
        // for example: 
        // "Always on Top": "Ctrl+Shift+P"
      },
    
      "monocolorEmoji": false, //default false. Only work for Windows
      "autoSaveTimer" : 3, // Deprecidated, Typora will do auto save automatically. default 3 minutes
      "maxFetchCountOnFileList": 500,
      "flags": [] // default [], append Chrome launch flags, e.g: [["disable-gpu"], ["host-rules", "MAP * 127.0.0.1"]]
    }
    

      保存重启即可。无论是在源码模式,还是在预览模式,我们的Typora,中文字体始终是微软雅黑,英文字体始终是Consolas。

    参见:https://www.freesion.com/article/119965701/

  • 相关阅读:
    值传递
    抽象类
    面向对象三大特征(二)--继承
    单例设计模式
    神奇的main方法详解
    面向对象的三大特征 ---- 封装
    变量、方法以及静态和非静态
    面向对象编程-类和对象
    数组
    力扣题库刷题(随时记录)
  • 原文地址:https://www.cnblogs.com/zhaobinyouth/p/12679513.html
Copyright © 2011-2022 走看看