Skip to content

Latest commit

 

History

History
125 lines (86 loc) · 6.16 KB

README.md

File metadata and controls

125 lines (86 loc) · 6.16 KB
icon

GitHub release (latest by date including pre-releases) GitHub Release Date GitHub License GitHub last commit GitHub repo size hits GitHub all releases


简体中文 | English


SiYuan Custom Fonts

A plugin for SiYuan Note that allows you to customize the list of fonts used by various elements in the interface.

PREVIEW

preview image

INTRODUCTION

Function Introduction

  • Built-in Twitter emoji (Twemoji) font

    • This font can be referenced by the font family name Twemoji Mozilla
  • Check the font list in the system where the kernel is located

    • Some fonts in this list cannot be loaded when using a server.
  • Check the font list supported by the current application (desktop/browser)

    • The font list that can be used in the current application.
  • Custom CSS code snippets

    • Can dynamically load local/network font files through @font-face.
  • Customize the font list of various elements in the interface:

    • Basic font: the fonts used in the interface
    • Editor font: the fonts used in editor
    • Code font: the fonts used in inline code, code blocks and text input boxes
    • Chart font: the fonts used in relationship diagrams
    • Math font: the fonts used in inline formulas and formula blocks
    • Emoji font: the fonts used in emojis (used for document icons)

Setting Introduction

  • General Settings

    • Reset Settings Options

      • This is a button

      • Reset all settings options to their default options

      • Clicking this button will prompt a confirmation dialogue

        • Clicking the dialogue confirmation button will reset all options in this plugin to their default options and then automatically refresh the current interface
    • System Font List

      • This is a button
      • View the font list of the system in which the kernel is located
      • Clicking this button will prompt a dialogue displaying the system font list
    • Available Font List

      • This is a button

      • View the list of fonts currently supported by the application

      • Clicking this button will prompt a dialogue displaying the available font list

        • The font family reference name is displayed on the right-hand side of the top-level list item, which is needed when customizing fonts
        • When the top-level list item is expanded, all font styles in that family can be viewed
  • CSS Snippet

    • Enabled

      • This is a toggle
      • Default state: On
      • When the toggle is turned on, the CSS code snippet below this setting will be applied to the current interface
    • CSS Snippet

  • Font Settings

    • Font lists need to specify the font family name to determine the font being used

      • For example, the font family name for 微软雅黑 is Microsoft YaHei
      • The font families currently supported by the application can be viewed by going to General Settings > Available Font List
      • One font family name is set per line in the font list, with higher priority fonts listed first
    • Base Font: Font used for the user interface

      • Customizable font list for text outside of the editor
    • Editor font: The font used for text in the editor.

      • This tab allows customization of the font list used for text in the editor.

      • On the desktop, this font list has lower priority than the SiYuan SettingsEditorFont setting.

        • To apply this font list on the desktop, set the SiYuan SettingsEditorFont setting to Default.
    • Code font: The font used for inline code, code blocks, and text input boxes.

      • This tab allows customization of the font used for text in inline code, code blocks, and text input boxes in the editor.
    • Chart Font: Font used for relationship diagrams

      • Customizable font list for text in relationship diagrams
    • Math Font: Font used for inline formulas and formula blocks

      • Customizable font list for text in inline formulas and math formula blocks within the editor
    • Emoji Font: Font used for emoji symbols (used in document icons)

      • Customizable font list for emoji symbols used in document icons
  • Menu Settings

    • Block font list

      • This is a text input box
      • Each line of the text box specifies a font name, and you can use the block menu to set the font of the block to this font

CHANGELOG

CHANGELOG.md