1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-06 21:49:40 +02:00

Merge pull request #1222 from negset/master [skip ci]

Fix the REGULAR bit of the fsSelection being set incorrectly
This commit is contained in:
Fini 2023-05-10 13:00:53 +02:00 committed by GitHub
commit 7e2326b86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ class FontnameParser:
elif 'Italic' in self.style_token:
b |= ITALIC
# Regular is just the basic weight
if len(self.weight_token) == 0:
if len(self.weight_token) == 0 and not b & (ITALIC | BOLD | OBLIQUE):
b |= REGULAR
b |= WWS # We assert this by our naming process
return b