WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

[Bug]: Extra keys glyph rendering inconsistent #4882

@effleurager

Description

@effleurager

Problem description

The size and vertical positioning of non-ASCII glyphs in the extra keys labels does not match that of their ASCII counterparts, e.g.:

  • the arrow keys don't occupy the same height as ALT
  • the centre of the hyphen is above the centre of the left & right arrows
Image

Steps to reproduce the behavior.

~/.termux/termux.properties

extra-keys-style = arrows-all

extra-keys = [[ \
  {key: ESC}, \
  {key: CTRL}, \
  {key: ALT}, \
  {key: DEL}, \
  {key: UP, popup: PGUP}, \
  {key: SCROLL} \
], \
[ \
  {key: TAB}, \
  {key: '/', popup: BACKSLASH}, \
  {key: '-', popup: '~'}, \
  {key: LEFT, popup: HOME}, \
  {key: DOWN, popup: PGDN}, \
  {key: RIGHT, popup: END} \
]]

What is the expected behavior?

All glyphs should be displayed with the same vertical size and alignment around a common mean

  • in the case of all caps, glyphs should cover the distance from the ascender height to the bottom of the x-height
  • otherwise from the ascender height to the descender height

System information

  • Termux application version: 0.119.0-beta.3
  • Android OS version: 16 (BP4A.251205.006)
  • Device model: Google Pixel 8 Pro

Running a density of 408 dp (instead of the default 480 dp), and a font scale of 0.85.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions