https://github.com/imp5imp5/dasbox/blob/main/src/graphics.cpp
In line 484:
return int(current_font_size + 0.5f);
Current_font_size is already integer, therefore in case of negative sizes an increased value will be returned.
This can be fixed with changing the line into:
return current_font_size;