google / google/fonts

Roboto Mono has wrong metrics for box drawing character U+2500

Open
#2,456 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

The following table

```
┌─────────────────┐
E[0] <- arith:(E[0] op:('+' / '-') E[1]) / E[1] │b * b - 4 * a * c│
├─────────────────┤
E[0] op:('+' / '-') E[1] │b * b - 4 * a * c│
│ ┌─────────┤
E[1] <- arith:(E[1] op:('*' / '/') E[2]) / E[2] │ │4 * a * c│
│ ├─────────┤
E[1] op:('*' / '/') E[2] │ │4 * a * c│
├─────┐ │ │
E[0] <- arith:(E[0] op:('+' / '-') E[1]) / E[1] │b * b│ │ │
├─────┤ ├─────┐ │
E[1] <- arith:(E[1] op:('*' / '/') E[2]) / E[2] │b * b│ │4 * a│ │
├─────┤ ├─────┤ │
E[1] op:('*' / '/') E[2] │b * b│ │4 * a│ │
├─┐ │ ├─┐ │ │
E[1] <- arith:(E[1] op:('*' / '/') E[2]) / E[2] │b│ │ │4│ │ │
├─┤ ┌─┤ ├─┤ ┌─┤ ┌─┤
E[2] <- arith:(op:'-' (E[2] / E[3])) / E[3] │b│ │b│ │4│ │a│ │c│
├─┤ ├─┤ ├─┤ ├─┤ ├─┤
E[3] <- (num:[0-9]+ / sym:[a-z]+) / E[4] │b│ │b│ │4│ │a│ │c│
├─┤ ├─┤ ├─┤ ├─┤ ├─┤
num:[0-9]+ / sym:[a-z]+ │b│ │b│ │4│ │a│ │c│
├─┤ ├─┤ │ │ ├─┤ ├─┤
[a-z]+ │b│ │b│ │ │ │a│ │c│
│ │ │ │ ├─┤ │ │ │ │
[0-9]+ │ │ │ │ │4│ │ │ │ │
│ ├─┤ │ │ ├─┤ ├─┤ │
'*' / '/' │ │*│ │ │ │*│ │*│ │
│ │ │ ├─┤ │ │ │ │ │
'+' / '-' │ │ │ │-│ │ │ │ │ │
├─┤ ├─┤ │ │ ├─┤ ├─┤
[terminal] [a-z] │b│ │b│ │ │ │a│ │c│
│ │ │ │ ├─┤ │ │ │ │
[terminal] [0-9] │ │ │ │ │4│ │ │ │ │
│ ├─┤ │ │ ├─┤ ├─┤ │
[terminal] '*' │ │*│ │ │ │*│ │*│ │
│ │ │ ├─┤ │ │ │ │ │
[terminal] '-' │ │ │ │-│ │ │ │ │ │
0 1 2 3 4 5 6 7 8
b * b - 4 * a * c
```

Renders as follows in Chrome:

![image](https://user-images.githubusercontent.com/811305/81998955-00305780-9611-11ea-8bde-c3976c8d7d84.png)

The horizontal box-drawing character U+2500 seems to have wider metrics than it should have.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.