1) It may be necessary to have a minimum width, so small texts will not show less an a letter. Modus in German in size -tiny is close to show less than an M. It could be worse in other languages.

This suggest tome you would be using too-large a font.

2) When you have enough space the menu buttons will be enlarged to fill the whole width of the window. That breaks the -titleInWindow option.

A possible solution might be to create the buttons first without width speficication, then messaure if they are too wide and make the widest buttons narrower.

OK, this is feasible (and better). I pushed the patch again to hgm.nubati.net.

Future improvement would be to put this scaling in a separate routine, and also call that on board-width changes (currently only due to variant changes). I already store the menuButton widgets and their nominal size in the menuBar struct during reation to facilitate this.

_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-xboard

Reply via email to