Cascadia-code: Add box-drawing and block element glyphs

Created on 18 Aug 2019  ·  8Comments  ·  Source: microsoft/cascadia-code

The entire range of box drawing (U+2500 - U+257F) and block element (U+2580 - U+259F) characters is not covered by the font.

Area-Glyphs Issue-Feature

All 8 comments

I just used my Node.js package console-probe and the tree structure is a mess. This is required to support many console tools.

Prior to Cascadia Code:

console-probe

With Cascadia Code:

Capture

I am starting to like this font though. Great work.

Same thing occurs with pnpm list ‑‑depth <number> and pnpm why <pkg>.

Here are Box Drawing glyphs which can be added to the font - I have exported just those glyphs as a PS OpenType, so it should be trivial to add them in @aaronbell @cinnamon-msft @bitcrazed

  • Vertical Strokes are 180 units wide
  • Horizontal Strokes are 176 units wide.
  • There are -20 / +20 offshoots to avoid gaps between those glyphs which are designed to connect

image

CascadiaCode - Box Drawing.zip _link removed, corrected below_

@mdtauk U+2526 looks a little upset:

image

@DHowett-MSFT @aaronbell Thanks for the catch - it happened during export to OTF. I corrected the curves so the overlap of the glyph shapes exports correctly.
image

CascadiaCode - Box Drawing.zip

@mdtauk Thanks for your help! These look pretty easy to integrate :).

A couple of things:
1) It looks like the vertical overlaps aren't quite working. I think part of the challenge is that interpretation of vertical metrics can vary from app to app, so it is better to base the height off of the winAscender and winDescender values.

2) I'm noting that there's a number of other box drawing characters that appear to be missing from the set (mostly the block set).

In all this, though, I happened to remember that Adobe kindly released a script to generate all of these box drawing characters (including blocks) based on user-defined settings. Handy!

@aaronbell I used the DejaVuSansMono font as a guide for the overshoots. It seems to be considered a de-facto standard, and I was testing in the preview pane within FontLab. Any adjustments that you need to make is fine.

I was following the Unicode specs.

Box Drawing - https://www.unicode.org/charts/PDF/U2500.pdf
Block Elements - https://www.unicode.org/charts/PDF/U2580.pdf

There may also be scope to include additional glyphs according to a reference site here


I just got done doing the Block Elements glyphs

image

CascadiaCode - Block Elements.zip

Thanks @mdtauk!

Yeah, I tested it in Sublime Text and a couple other places. No problem, I can sort it out!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Quppa picture Quppa  ·  4Comments

DoubleDeez picture DoubleDeez  ·  5Comments

schorrm picture schorrm  ·  7Comments

GustavBrock picture GustavBrock  ·  6Comments

rivy picture rivy  ·  5Comments