Shortcut Underline in menu under wrong letter or unclear #76152

Closed
opened 2020-04-27 15:27:31 +02:00 by Johannes Kollmer · 5 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.97

Blender Version
Broken: version: 2.83 (sub 15), branch: master, commit date: 2020-04-26 22:51, hash: d0d16eb7d3
Worked: ?

Short description of error
In menus the letter which can be pressed to call a menu item is usually underlined. Sometimes the wrong letter is underlined or at least it is not clear which letter is underlined.
I think it is when the letter "i" is underlined. The underline starts exactly under the pixel of the "i" but continues into the next letter. I guess it is because the "i" is such a narrow letter.

Exact steps for others to reproduce the error

  1. Select Object
  2. Enter Edit mode
  3. Hit "x" for delete menu
  4. Look at the menu entry for "dissolve Edges and "dissolve Faces".
  5. The shortcut for "dissolve Edges" is "i" and the shortcut for "dissolve Faces" is "s" but they both look allomost identical.

underlinedLetterInMenu.png

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.97 **Blender Version** Broken: version: 2.83 (sub 15), branch: master, commit date: 2020-04-26 22:51, hash: `d0d16eb7d3` Worked: ? **Short description of error** In menus the letter which can be pressed to call a menu item is usually underlined. Sometimes the wrong letter is underlined or at least it is not clear which letter is underlined. I think it is when the letter "i" is underlined. The underline starts exactly under the pixel of the "i" but continues into the next letter. I guess it is because the "i" is such a narrow letter. **Exact steps for others to reproduce the error** 1. Select Object 2. Enter Edit mode 3. Hit "x" for delete menu 4. Look at the menu entry for "dissolve Edges and "dissolve Faces". 5. The shortcut for "dissolve Edges" is "i" and the shortcut for "dissolve Faces" is "s" but they both look allomost identical. ![underlinedLetterInMenu.png](https://archive.blender.org/developer/F8497541/underlinedLetterInMenu.png)

Added subscriber: @Lumpengnom-3

Added subscriber: @Lumpengnom-3
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

Yes, it can look a bit wonky at times and might be worth improving. We literally draw an underscore ("_") character at that character position (widget_draw_text() in interface_widgets.c). This means it is always the same width, so a constant weight, but doesn't always look as good as it could.

A nicer width would be the character width but with a minimum so an underlined 'I' isn't too narrow. Then centered of course.

The vertical position of underlines is not always trivial to guess though because of how different fonts can be. Our font renderer FreeType does provide this information (both underline position and underline thickness) somewhere in a font metrics structure in typography-specific units.

Yes, it can look a bit wonky at times and might be worth improving. We literally draw an underscore ("_") character at that character position (widget_draw_text() in interface_widgets.c). This means it is always the same width, so a constant weight, but doesn't always look as good as it could. A nicer width would be the character width but with a *minimum* so an underlined 'I' isn't too narrow. Then centered of course. The vertical position of underlines is not always trivial to guess though because of how different fonts can be. Our font renderer FreeType does provide this information (both underline position and underline thickness) somewhere in a font metrics structure in typography-specific units.

This issue was referenced by ef1187387b

This issue was referenced by ef1187387bda6ede146a366042e82890bc157127

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Campbell Barton self-assigned this 2020-04-28 05:50:12 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#76152
No description provided.