DrawVLine results different in TCMD tab and detached TCC

Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  25.00.24 x64   Windows 10 [Version 10.0.18362.476]

I have the following code;
Code:
  wsl cal -3
  drawvline 3 20 7 2 bright blue on black
  drawvline 3 42 7 2 bright blue on black

This works fine in a detached TCC;
1576931756837.png


The same code, different result in TCMD tab;
1576931808583.png


The difference is the font.

In TCMD, I am using the Cascadia Code font.
1576932183128.png


...whereas in a detached TCC, I am using the Consolas font.
1576932426546.png


According to Microsoft, the Cascadia Code font does include the characters for line drawing;

1576932493659.png

How do I get TCMD/TCC to use line drawing with the Cascadia Code font? I realize that changing the TCMD font to Consolas corrects the problem, but I would prefer to use the Cascadia Code font.

Joe
 
Last edited:
May 20, 2008
10,670
83
Syracuse, NY, USA
Did you check with CHARMAP? Cascadia Code looks pretty skimpy here (Windows 10 1909). Maybe you must manually install the updated font.

1576943467952.png
 
May 20, 2008
10,670
83
Syracuse, NY, USA
I found CASCADIA.TTF (71K, from September) in a desktop "Archives" (of downloaded things) folder. I must have installed it on this computer. Moments ago I got another one (208K) and installed it ... no change ... CHARMAP still showed a very skimpy character set. Then I went back to

microsoft/cascadia-code

and downloaded/installed CASCADIA MONO PL (PL = power line). Now I have the line drawing symbols (and much more).

1576945076954.png
 
Hey @vefatica
Thanks for that. I have downloaded and installed the Cascadia Mono PL font, however, still not perfect;
1576951783562.png

...but it is better than the little square boxes of the original Cascadia Code font that I was using.

You are also correct in that I must download the current font manually. Thanks again!

Joe
 
Looks like one can use Chocolately to automatically upgrade the Cascadia font.


Posting this mainly for my future reference.

Joe
 

rconn

Administrator
Staff member
May 14, 2008
11,947
133
TCC uses the Unicode 0x2500 - 0x256C characters for line drawing. If your font doesn't include those characters (or if they're mapped somewhere else) then DRAWHLINE / DRAWVLINE won't work.

Take Command simply reads the characters in the TCC screen buffer and displays them (in the current font) in the Take Command tab window. It does not do any conversions or remapping.