google/bindiff

UI: Font-Family Should be configable

Opened this issue · 3 comments

Describe the bug
Some characters are not displayed properly. Because bindiff trying to use Roboto Mono as the only font, However this font family doesn't support non-ASCII characters. Maybe font-family config can be add into config>main settings>general card.

To Reproduce
Just Open it and open any config window.

Screenshots
image

Environment (please complete the following information):

  • OS and version: Windows 10
  • Locale: zh-CN (Simplified Chinese)
  • Disassembler and version: IDA Pro 7.1

Additional context
Add any other context about the problem here.

Oh wow. Sorry for that. We really only support (and test) US English as the locale.

As a workaround, try setting the font in the config file (in %AppData%\Roaming\BinDiff\bindiff.json):
Screenshot 2023-09-27 at 08 56 21

Setting this to "Segoe UI" for example, works for setting the UI font, but the core problem is that the Java runtime does not have a concept of fallback fonts if characters needed for a locale are not available.

Setting the font to "SimSun" looks ugly for western text, but seems to work (I don't know any Chinese...):
Screenshot 2023-09-27 at 09 17 58

Thanks very much! It works for me. And may I ask are there any plans to include font configuration in the configuration menu in a future release?

I don't see why not. It'd be good to revamp the settings dialog anyways.