acaudwell / Gource

software version control visualization
https://gource.io
GNU General Public License v3.0
11.55k stars 723 forks source link

Added --user-font-size, --filename-font-size, and --dirname-font-size arguments #218

Closed Cartoonman closed 5 years ago

Cartoonman commented 5 years ago

Added 3 new arguments to independently adjust the font size of the filenames, user names, and directory names. This was needed when it was observed under very high resolutions (4k) that the font sizes did not scale, and that there was no way to modify them without recompilation.

The directory name argument was a bit tricky to handle, but I think I was able to cover it with an additional instance var in Gource.cpp so the other font sizes wouldn't be affected.

Tested and working with the same defaults as was previously written.

acaudwell commented 5 years ago

Nice. I think we should also add a --font-scale option which is applied to all the font-size variables. Could also set a sensible default based on the current display with and height if it is not provided.