summaryrefslogtreecommitdiffstats
path: root/alacritty.yml
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-01-02 18:52:41 -0800
committerJoe Wilm <joe@jwilm.com>2017-01-02 19:49:38 -0800
commit86301856391b05047f1fd9f2e8999d61b26d982e (patch)
tree2163b2fead9d1c45bb72670b32558cb781f2d4a5 /alacritty.yml
parent04d69e3c2902bca56605ad59e60b2ae1e5ce91a3 (diff)
Rework font loading
This work started because we wanted to be able to simply say "monospace" on Linux and have it give us some sort of font. The config format for fonts changed to accomodate this new paradigm. As a result, italic and bold can have different families from the normal (roman) face. The fontconfig based font resolution probably works a lot better than the CoreText version at this point. With CoreText, we simply iterate over fonts and check it they match the requested properties. What's worse is that the CoreText version requires a valid family. With fontconfig, it will just provide the closest matching thing and use it (unless a specific style is requested).
Diffstat (limited to 'alacritty.yml')
-rw-r--r--alacritty.yml23
1 files changed, 19 insertions, 4 deletions
diff --git a/alacritty.yml b/alacritty.yml
index 1fbcb63f..0d907ea0 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -9,14 +9,29 @@ dpi:
# Display tabs using this many cells (changes require restart)
tabspaces: 8
+# When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors: true
# Font configuration (changes require restart)
font:
- family: DejaVu Sans Mono
- style: Book
- bold_style: Bold
- italic_style: Oblique
+ # The normal (roman) font face to use.
+ normal:
+ family: monospace # should be "Menlo" or something on macOS.
+ # Style can be specified to pick a specific face.
+ # style: Regular
+
+ # The bold font face
+ bold:
+ family: monospace # should be "Menlo" or something on macOS.
+ # Style can be specified to pick a specific face.
+ # style: Bold
+
+ # The italic font face
+ italic:
+ family: monospace # should be "Menlo" or something on macOS.
+ # Style can be specified to pick a specific face.
+ # style: Italic
+
# Point size of the font
size: 11.0
# Offset is the extra space around each character. offset.y can be thought of