tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.03k stars 3.07k forks source link

Bug in FiraCode-Bold.ttf name #1565

Closed MrV-777 closed 6 months ago

MrV-777 commented 6 months ago

Hi,

Found a bug in FiraCode-Bold.ttf name that looks from long time nobody fixed :). The issue with font name in container, all details in screenshot attached. If load FiraCode-Bold.ttf and after FiraCode-Regular.ttf in memory programmatically in Windows OS Regular Font appears as Bold because is not unique named, some OOP doesn't have ability to specify names, so the solution use Bold or Regular can't use both, in Web is no matter works well, not in Software.

Fira_bug

tonsky commented 6 months ago

I think that’s how most fonts work? Same name, different styles? That’s what allows programs to group them together

kenmcd commented 6 months ago

This is normal. The Windows Font Viewer shows the style group as the "Font Name". And since Regular and Bold are both in the same Fira Code style group - it shows the same thing. The full font name is in the title bar above that.

If a font has Regular, Italic, Bold, and Bold Italic - all four would show the same thing. Below is Arial as an example. Note how all four show Arial as the Font Name. But the title bar shows the full font name.

2023-12-20_10-23-41