mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-06 21:49:40 +02:00
name-parser: Fix REGULAR bit of fsSelection
Set bit 6 (REGULAR) of fsSelection only when bit 0 (ITALIC), bit 5 (BOLD), and bit 9 (OBLIQUE) are clear.
This commit is contained in:
parent
3445d2d8fe
commit
9f6f89ae41
@ -255,7 +255,7 @@ class FontnameParser:
|
|||||||
elif 'Italic' in self.style_token:
|
elif 'Italic' in self.style_token:
|
||||||
b |= ITALIC
|
b |= ITALIC
|
||||||
# Regular is just the basic weight
|
# 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 |= REGULAR
|
||||||
b |= WWS # We assert this by our naming process
|
b |= WWS # We assert this by our naming process
|
||||||
return b
|
return b
|
||||||
|
Loading…
Reference in New Issue
Block a user