RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1574196 - text box rendering issue in motif
Summary: text box rendering issue in motif
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: motif
Version: 7.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: 7.6
Assignee: Carlos Soriano
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-02 19:23 UTC by Joe Wright
Modified: 2022-03-13 14:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-16 11:59:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot demonstrating behavior (67.96 KB, image/png)
2018-05-02 19:24 UTC, Joe Wright
no flags Details
reproducer code (2.20 KB, text/x-csrc)
2018-05-02 19:24 UTC, Joe Wright
no flags Details

Description Joe Wright 2018-05-02 19:23:16 UTC
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):
motif-2.3.4-8.1.el7_3.x86_64
motif-2.3.4-8.1.el7_3.i686

How reproducible:
- 100%

Steps to Reproduce:
1. Run test application
2.
3.

Actual results:
- text box rendered double width in demonstrations 2 and 3

Expected results:


Additional info:

Comment 2 Joe Wright 2018-05-02 19:24:17 UTC
Created attachment 1430257 [details]
screenshot demonstrating behavior

Comment 3 Joe Wright 2018-05-02 19:24:48 UTC
Created attachment 1430258 [details]
reproducer code

Comment 4 Carlos Soriano 2018-05-30 08:18:49 UTC
I'll investigate this one further for 7.6.

Comment 5 Carlos Soriano 2018-11-16 11:59:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.