Regalis11 / scpcb

SCP - Containment Breach
375 stars 107 forks source link

Fixed The Game Not using courbd #257

Closed theOneTrueFunniBoi closed 2 months ago

theOneTrueFunniBoi commented 1 year ago

Fixes the game using Courier New Regular in situations that are meant to use Courier New Bold.

theOneTrueFunniBoi commented 1 year ago

Pictures: image image image

theOneTrueFunniBoi commented 10 months ago

The motivation behind these changes isn't clear to me. Why's the game "meant to use" Courier New Bold instead of Courier New Regular in these cases?

The main issue here is that due to a bug (referenced in a code comment), the b3d engine only properly loads fonts if the font file's name is the same as the fonts name (ex: cour/Courier New.ttf would work, but cour/cour.ttf would not). The problem is that the "Courier New Bold.ttf" font is named "Courier New.ttf" by mistake, so the engine just uses regular Courier New. This pull request simply fixes the issue by adjusting the font file name and the code to reflect the adjustment. I hope this gives you the info you need.