bindiff icon indicating copy to clipboard operation
bindiff copied to clipboard

UI: Font-Family Should be configable

Open tylzh97 opened this issue 2 years ago • 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.

tylzh97 avatar Sep 27 '23 02:09 tylzh97

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

cblichmann avatar Sep 27 '23 07:09 cblichmann

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?

tylzh97 avatar Sep 27 '23 09:09 tylzh97

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

cblichmann avatar Sep 27 '23 11:09 cblichmann