mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-11 18:49:40 +00:00
fontconfig: Prefer semi-bold as bold weight even for system selection
This commit is contained in:
parent
ea65ede572
commit
1780028420
3 changed files with 7 additions and 4 deletions
|
|
@ -288,6 +288,8 @@ FC_MONO: int = 100
|
|||
FC_DUAL: int
|
||||
FC_WEIGHT_REGULAR: int
|
||||
FC_WEIGHT_BOLD: int
|
||||
FC_WEIGHT_SEMIBOLD: int
|
||||
FC_WEIGHT_MEDIUM: int
|
||||
FC_WIDTH_NORMAL: int
|
||||
FC_SLANT_ROMAN: int
|
||||
FC_SLANT_ITALIC: int
|
||||
|
|
|
|||
|
|
@ -9,11 +9,13 @@ from kitty.fast_data_types import (
|
|||
FC_MONO,
|
||||
FC_SLANT_ITALIC,
|
||||
FC_SLANT_ROMAN,
|
||||
FC_WEIGHT_BOLD,
|
||||
FC_WEIGHT_REGULAR,
|
||||
FC_WIDTH_NORMAL,
|
||||
fc_list,
|
||||
)
|
||||
from kitty.fast_data_types import (
|
||||
FC_WEIGHT_SEMIBOLD as FC_WEIGHT_BOLD,
|
||||
)
|
||||
from kitty.fast_data_types import fc_match as fc_match_impl
|
||||
from kitty.typing import FontConfigPattern
|
||||
|
||||
|
|
|
|||
|
|
@ -42,10 +42,9 @@ class Selection(BaseTest):
|
|||
s(family, *expected)
|
||||
|
||||
if has_source_code_pro:
|
||||
both('Source Code Pro', 'SourceCodePro-Regular', 'SourceCodePro-Bold', 'SourceCodePro-It', 'SourceCodePro-BoldIt')
|
||||
both('Source Code Pro', 'SourceCodePro-Regular', 'SourceCodePro-Semibold', 'SourceCodePro-It', 'SourceCodePro-SemiboldIt')
|
||||
if has_source_code_vf:
|
||||
s('sourcecodeVf', 'SourceCodeVF-Regular', 'SourceCodeVF-Bold', 'SourceCodeVF-Italic', 'SourceCodeVF-BoldItalic')
|
||||
s('family=sourcecodeVf', 'SourceCodeVF-Regular', 'SourceCodeVF-Semibold', 'SourceCodeVF-Italic', 'SourceCodeVF-SemiboldItalic')
|
||||
both('sourcecodeVf', 'SourceCodeVF-Regular', 'SourceCodeVF-Semibold', 'SourceCodeVF-Italic', 'SourceCodeVF-SemiboldItalic')
|
||||
|
||||
|
||||
class Rendering(BaseTest):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue