contour icon indicating copy to clipboard operation
contour copied to clipboard

Incorrect letter spacing when using SF Mono

Open cqexbesd opened this issue 2 years ago • 2 comments
trafficstars

Contour Terminal version

0.4.0-master-616315cc

Installer source

Github: source code cloned

Operating System

Arch Linux as of approx a week ago

Architecture

x86-64

Other Software

SF Mono font, installed from aur as otf-san-francisco-mono bsdtar, installed from libarchive

Steps to reproduce

man bsdtar

Expected Behavior

No response

Actual Behavior

Spacing of letters is not correct. See screen shot. Looks OK using the same font in RoxTerm, but also using Contour with the LiberationMono font.

Contour: image_480

RoxTerm: image_480

Additional notes

@christianparpart already knows the cause and the fix...I can't explain it though!

cqexbesd avatar Oct 09 '23 11:10 cqexbesd

As discussed locally. This shows two problems.

  1. SF Mono font probably does not expose the correct metrics to shift the pen to the right. It looks like it's always 0. This goes in line with the other Apple's font for emoji, where we already auto-center in case of zero-metrics.
  2. the underline is too bold for small grid cell heights (IIRC, @cqexbesd is using 12pt size on a standard 96dpi screen)

christianparpart avatar Oct 09 '23 12:10 christianparpart

The underline issue i told you about last year as well when i was on my imac

uspasojevic96 avatar Oct 09 '23 12:10 uspasojevic96