From 52b6013cc01e17f4b500ea79fb786ccc14b1f7ec Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 8 Oct 2021 15:27:14 +0300 Subject: Font configuration; Prefs has a string value array Added a second version of Iosevka with more line spacing, to be used as the default monospace document font. --- res/default.fontpack/fontpack.ini | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'res/default.fontpack') diff --git a/res/default.fontpack/fontpack.ini b/res/default.fontpack/fontpack.ini index c86dfd59..68316ef6 100644 --- a/res/default.fontpack/fontpack.ini +++ b/res/default.fontpack/fontpack.ini @@ -11,11 +11,14 @@ # monospace (bool) Monospace font; suitable for performatted text. # override (bool) Check this first regardless of active font. # priority (int) Lookup priority (largest checked first). -# scaling (float) Additional glyph scaling (1.0 = not scaled). +# glyphscale (float) Additional glyph scaling (<= 1.0). # voffset (float) Vertical offset (normalized). +# +# `glyphscale` and `voffset` can also be specified separately for the UI and +# document domains by prefixing `ui.` or `doc.` to the key. [default] -name = "Source Sans 3" +name = "Source Sans" regular = "SourceSans3-Regular.ttf" italic = "SourceSans3-It.ttf" light = "SourceSans3-ExtraLight.ttf" @@ -23,13 +26,23 @@ semibold = "SourceSans3-Semibold.ttf" bold = "SourceSans3-Bold.ttf" [iosevka] -name = "Iosevka Term Extended" +name = "Iosevka (compact)" +monospace = true +doc.height = 0.800 +regular = "IosevkaTerm-Extended.ttf" + +[iosevka-body] +# Variant of Iosevka with expanded line spacing for better readability. +# Matches the baseline and ascent of the default font. +name = "Iosevka" monospace = true +priority = -10 +glyphscale = 0.800 regular = "IosevkaTerm-Extended.ttf" [smolemoji] name = "Smol Emoji" -override = true # These Emoji are always preferred. +override = true # These Emoji/symbols are always preferred. auxiliary = true priority = 100 regular = "SmolEmoji-Regular.ttf" @@ -38,14 +51,14 @@ regular = "SmolEmoji-Regular.ttf" name = "Noto Emoji" auxiliary = true priority = 30 -scaling = 1.1 +glyphscale = 1.1 regular = "NotoEmoji-Regular.ttf" [notosymbols2] name = "Noto Sans Symbols 2" auxiliary = true priority = 20 -scaling = 1.45 +glyphscale = 1.45 voffset = 0.5 regular = "NotoSansSymbols2-Regular.ttf" @@ -53,6 +66,6 @@ regular = "NotoSansSymbols2-Regular.ttf" name = "Noto Sans Symbols" auxiliary = true priority = 10 -scaling = 2.0 +glyphscale = 2.0 voffset = 1.2 regular = "NotoSansSymbols-Regular.ttf" -- cgit v1.2.3