Description of problem:
- in RHEL 7.4, using motif, application text boxes are rendered double width of what they should be when using certain fonts. See attached screenshot of behavior using attached reproducer application
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run test application
- text box rendered double width in demonstrations 2 and 3
Created attachment 1430257 [details]
screenshot demonstrating behavior
Created attachment 1430258 [details]
I'll investigate this one further for 7.6.
It's expected behaviour and a limitation of XOrg widgets. Reading the documentation of XmNcolumns:
"Specifies the initial width of the text window as an integer number of characters. The width equals the number of characters specified by this resource multiplied by the maximum character width of the associated font. For proportionate fonts, the actual number of characters that fit on a given line may be greater than the value specified. The value must be greater than 0. The default value depends on the value of the XmNwidth resource. If no width is specified the default is 20."
So for variable fonts it will mostly always request more size than really needed. A solution would be to use monospaced fonts.
Based on this I'm gonna nack it.