mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-15 04:54:14 +02:00
...
This commit is contained in:
@@ -197,6 +197,12 @@ class FontSpec(NamedTuple):
|
||||
a(key, f'{val:g}')
|
||||
return ' '.join(ans)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.as_setting
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return repr(str(self))
|
||||
|
||||
|
||||
|
||||
Descriptor = Union[FontConfigPattern, CoreTextFont]
|
||||
|
||||
@@ -323,6 +323,7 @@ def get_font_from_spec(
|
||||
ans = get_fine_grained_font(spec, bold, italic, resolved_medium_font=resolved_medium_font, family_axis_values=family_axis_values,
|
||||
match_is_more_specific_than_family=match_is_more_specific_than_family)
|
||||
if spec.features:
|
||||
ans = ans.copy()
|
||||
ans['features'] = spec.features
|
||||
return ans
|
||||
family = spec.system or ''
|
||||
|
||||
Reference in New Issue
Block a user