Windows 10 add custom fonts to command line - cmd

I'm trying to add fonts to the windows command line so the Ubuntu terminal can use the pre-patched Meslo LG installed from the powerline fonts github page (see below) (so vim-airline won't have any missing special characters).
https://github.com/powerline/fonts
I've followed the tutorial here:
https://www.techrepublic.com/blog/windows-and-office/quick-tip-add-fonts-to-the-command-prompt/
I've installed the fonts successfully, so I can use the font in word.
I've tried different names for the string value and restarted several times but nothing seems to work.
I've look around online, every source offers the same advice for going through the registry editor.
I'm not sure what to do from here and I'd really appreciate some advice.
I'd also really appreciate some insight into how the registry uses the string value to match with the ttf.
EDIT 1:
Windows has a linux subsystem which you can run bash or any other terminal emulator on. In Linux you could add whatever type of font you wanted either through the CLI or GUI install.
I wanted to install Meslo LG S for powerline (the vim plugin that gives you a status bar) since patched fonts are needed that support the special characters.
As it turns out, when it comes to fonts, Windows doesn't care what you've specified. Since the terminal emulator is built on top of the cmd executable, it has the same limitations for fonts.
Rather than just moving to some other terminal emulator, I wanted to solve the problem so other people who're having the same issue with ubuntu terminal for windows 10 could get some help.
As it turns out, Meslo is not a monospace font, so it can't be used in cmd.
Knowing this, I simply chose another patched monospace font and everything works fine.
I haven't answered my question yet because I thought maybe someone with a bit more experience with MS-DOS could show an alternative.

Related

How do I use third party TTF fonts on Cygwinx? How about Windows fonts?

This is 2 questions in one. Should I split them in two separate questions? I think in the end is the same thing.
I want to use some third party ttf fonts on my Cygwinx programs and I've being searching the web and Cygwin's docs and FAQs to see how to install this fonts on it. If it is possible to use third party fonts. How do I use all the fonts that windows already has installed?
It is as simple as that, I have a lot of fonts on windows and installed Cygwin on top of windows. I thought that Cygwin would automatically use all those nice fonts, but no! there is only a subset of them, and I'm starting to think that this subset of fonts are just open fonts that come with Cygwin with some aliases.
What have I tried?
Searching on Google, a lot!
Reading and searching CygwinX docs.
Searching Cygwin files for ttf fonts or related fonts configs.
Tried to understand /etc/fonts/* by myself.
Searching for some "font-update" program that is mentioned on some old (2005) emails of the Cygwin mailing list.
All that without any real achievement.
I'm using Windows 10 (64 bits) and Cygwin64 (installed through the Cygwin-Setup version 2.891).
The subset of windows fonts used by cygwin is defined by postinstall script
/etc/postinstall/zp_fontconfig_cache_1.sh
the Windows fonts are linked in /usr/share/fonts/microsoft
On my system around 229 of the 350 present under C:\windows\Fonts are selected.
You can copy your extra fonts in the same directory and run the same script.

Not able to use the extensions on visual studio code

I want to use Visual Studio Code in Windows 10.
As a user of vim editor, I have been used to coding in way of vim.
So i want to install the amVim extension on Visual Studio Code.
Issue 1 :
it keep saying "installing" after i clicked "install".
Issue 2 :
Then i went to the github page of amVim and download the file and put it into .vscode/extensions/. However, when i started to use it to code, it showed many warning:
when i try to delete something:
command 'amVim.backspace' not found
when i try to escape the insert mode:
command 'amVim.escape' not found
it didn't work at all!
then i change to ubuntu and download the version for linux. it works well. i can download the extension.
how can i fix this problem with Windows ?
I have also been trying to use vscode but really like to input and edit using vim commands. I have tried at least three different vim emulators on vscode and have encountered the problem you describe as well as some more serious freezing problems. If I install either amVim or vimStyle, my entire system will block if it ever enters the suspend state. I did some anecdotal experimentation and if I disabled the the plugins my system would no longer freeze. I have been using the Vim plugin by vscodevim and so far things are stable. I did encounter the same error messages about backspace and other commands but only when I was on Ubuntu. It would seem to be early times for associating vscode with vim style input.

Windows emacs configuration

I use emacs on a Windows computer (I can't chose another OS as it's my work computer).
I want a smooth scrolling but I can't find where to put the configuration file. I've read things like https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but that doesn't work. Does anyone know how to do it?
Thanks.
You said you followed the instructions # https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but it didn't work. Did you try updating the system registry as suggested by https://www.gnu.org/software/emacs/manual/html_node/emacs/MS_002dWindows-Registry.html#MS_002dWindows-Registry? That is what worked for me.
I added GNU/Emacs to HKEY_LOCAL_MACHINE/SOFTWARE and added a string HOME with the directory I wanted emacs to refer to as home (C:\Users\my_user_name).
That same link will also describe the search order emacs uses and the values of Environment Variables you can set.

Custom themes in emacs 24.2.1 on Windows causing error

So I have been able to install custom themes on my mac and linux machines, but am unable to get custom themes to work on my emacs windows installation.
I am able to add the below to my ~/.emacs file without problems:
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
When I put the command below into the ~/.emacs file:
(load-theme 'tomorrow-night t)
it is able to find the file just fine, but it stops with the following error:
Symbol's value as variable is void: <!--
I have tested this with multiple different themes (not just tomorrow-theme) and the same problem occurs, but all other plugins and additions to emacs work just fine.
Any help would be appreciated since I would enjoy to have all of my different machines have the same theming style in emacs.
Just to note, I am using Windows 8.
Solved, turns out saving .el files in windows 8 has some interesting and strange side effects. Look at comment 3 for solution.

Vista Console App?

I'm doing a fair bit of work in Ruby recently, and using
ruby script/console
Is absolutely critical. However, I'm really disappointed with the default Windows console in Vista, especially in that there's a really annoying bug where moving the cursor back when at the bottom of the screen irregularly causes it to jump back. Anyone have a decent console app they use in Windows?
I use Console2.
I like the tabbed interface and that copy works properly if text breaks at the end of a line.
Are you resizing the console window? I've found that the ruby scripts (irb, etc) that use the readline library don't work correctly with resized console windows (in XP or Vista).
Effectively I believe that the readline library expects the console window to be 80 characters wide, anything else and it goes bezerk. So far I haven't found a way to fix it on windows without giving up other nice features.
I have had some pleasant experiences with rxvt (comes with cygwin, does not need an x server running). Putty is also often mentioned as a good alternative.
You could also try to get xterm working :)
Powershell
Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems.

Resources