From 4b685778009ac59fa8faf8abd2353b1ca63be2a9 Mon Sep 17 00:00:00 2001 From: Horhik Date: Sun, 11 Apr 2021 02:39:08 +0300 Subject: [PATCH] =?UTF-8?q?add=20fonts=20fallback=20support=20for=20alacri?= =?UTF-8?q?tty.=20=F0=9F=98=80=F0=9F=98=80=F0=9F=98=80=20Now=20emojiw=20wo?= =?UTF-8?q?rks=20in=20alacrittygit=20add=20home/alacritty/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alacritty/.config/alacritty/alacritty.yml | 88 ++++--------------- home/fontconfig/conf.d/78-Reject.conf | 14 +++ home/fontconfig/fonts.conf | 26 ++++++ home/fontconfig/fonts.conf.back | 27 ++++++ 4 files changed, 84 insertions(+), 71 deletions(-) create mode 100644 home/fontconfig/conf.d/78-Reject.conf create mode 100644 home/fontconfig/fonts.conf create mode 100644 home/fontconfig/fonts.conf.back diff --git a/home/alacritty/.config/alacritty/alacritty.yml b/home/alacritty/.config/alacritty/alacritty.yml index a93e6df..2a637c1 100644 --- a/home/alacritty/.config/alacritty/alacritty.yml +++ b/home/alacritty/.config/alacritty/alacritty.yml @@ -98,82 +98,28 @@ padding: #multiplier: 3 # Font configuration + font: - # Normal (roman) font face - normal: - # Font family - # - # Default: - # - (macOS) Menlo - # - (Linux/BSD) monospace - # - (Windows) Consolas - - family: Mononoki Nerd Font - options: - style: Regular - range: - start: 0 - end: 'Z' - - # The `style` can be specified to pick a specific face. - - # Bold font face - #bold: - # Font family - # - # If the bold family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Bold - - # Italic font face - #italic: - # Font family - # - # If the italic family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Italic - - # Bold italic font face - #bold_italic: - # Font family - # - # If the bold italic family is not specified, it will fall back to the - # value specified for the normal font. - #family: monospace - - # The `style` can be specified to pick a specific face. - #style: Bold Italic - - # Point size - #size: 11.0 - + size: 10 + normal: + family: Mononoki Nerd Font + style: Medium + bold: + family: Mononoki Nerd Font + style: Bold + italic: + family: Mononoki Nerd Font + style: Italic # Offset is the extra space around each character. `offset.y` can be thought of # as modifying the line spacing, and `offset.x` as modifying the letter spacing. - #offset: - # x: 0 - # y: 0 + offset: + # x: -1 + y: -1 - # Glyph offset determines the locations of the glyphs within their cells with - # the default being at the bottom. Increasing `x` moves the glyph to the right, - # increasing `y` moves the glyph upward. - #glyph_offset: - # x: 0 - # y: 0 + glyph_offset: + x: 0 + y: 0 - # Thin stroke font rendering (macOS only) - # - # Thin strokes are suitable for retina displays, but for non-retina screens - # it is recommended to set `use_thin_strokes` to `false`. - #use_thin_strokes: true - -# If `true`, bold text is drawn using the bright color variants. -#draw_bold_text_with_bright_colors: false # Colors (Tomorrow Night) colors: diff --git a/home/fontconfig/conf.d/78-Reject.conf b/home/fontconfig/conf.d/78-Reject.conf new file mode 100644 index 0000000..50f9f3c --- /dev/null +++ b/home/fontconfig/conf.d/78-Reject.conf @@ -0,0 +1,14 @@ + + + + + + + + + Noto Kufi Arabic + + + + + diff --git a/home/fontconfig/fonts.conf b/home/fontconfig/fonts.conf new file mode 100644 index 0000000..b0fddcb --- /dev/null +++ b/home/fontconfig/fonts.conf @@ -0,0 +1,26 @@ + + + + + + sans-serif + + Twemoji + + + + + serif + + Twemoji + + + + + monospace + + Twemoji + + + + diff --git a/home/fontconfig/fonts.conf.back b/home/fontconfig/fonts.conf.back new file mode 100644 index 0000000..7b9a122 --- /dev/null +++ b/home/fontconfig/fonts.conf.back @@ -0,0 +1,27 @@ + + + + + + true + + + false + + + hintslight + + + none + + + false + + + lcdnone + + + 102 + + +