I use zsh with OSX and have custom glyphs added to my fonts. WebStorm's integrated terminal is the only application that seems to squish the glyphs too close, as shown in the attached screenshot. iTerm, Terminal and VS Code all display the glyphs correctly.
Does anyone have a solution for this problem?
Try to set same font for Webstorm's console as you use for iTerm and Terminal. Go to "Settings > Editor > Colors & Fonts > Console Font", set Primary font (I use Meslo LG M DZ for Powerline with size 14) and a fallback Secondary font (Menlo in my case). Enable ligatures as well.
Here is the screenshot of my settings
Result is not perfect, but better as on your screenshot.
Related
I have a couple of issues with my terminal colors in WebStorm that I have been unable to resolve by using Settings > Editor > Color Scheme > Console Colors
I am running:
Kubunutu 20.04,
WebStorm 2021.2 64 bit for linux. Build #WS-212.1746.80
My issues are:
In the interactive console color interface, the 'console' background does not match my actual console background. Mine is dark, the interactive settings one is white. The result of this is that I am unable to see how my color selections will actually appear.
Hyperlinks in my console are displayed in the default blue (000FF), which works fine against a white background but is unreadable against a dark background. I have been unable to locate the setting for this. They do not appear to be in the console colors section. And if I go to Settings > Editor > Color Scheme > General > Hyperlinks there are plenty of options, but none of them seem to affect what goes on in the terminal.
Questions:
How do I get the console color selector background to match my actual background selection?
Where do I access the setting that determines the hyperlink color in the WebStorm terminal in Linux?
Screenshots follow:
Here you can see that my background is set to dark, but the color selector interface background is white.
And here you can see the unreadable hyperlinks that I can't read. The command to get this screen was npm fund
Here are my actual console colors:
Here you can see the hyperlink settings, with background set to yellow, and the actual hyperlinks displayed behind, demonstrating that these two things are not linked. (I refreshed the terminal display after changing the settings)
I know it is possible to change the console font size under settings, however, that is very tedious. Example
How do I change the console/terminal font size using shortcuts?
Not currently possible, please vote for IDEA-116253 to be notified on any progress with this feature
After an update to version 15.7.2, code lens displays partly unreadable text but only on light theme.
Any idea on how to fix this?
Option 1 :
Under Tools->Options-> Environment-> Fonts and Colors with Codelens selected under show settings for, change from any of the Code39Azalea fonts.
Option 2 :
Under Tools->Options-> Environment-> Fonts and Colors with Codelens selected under show settings for, Click use defaults, it should reset to calibri font.
I use SetConsoleDisplayMode() to switch the console into fullscreen mode. It is 80x25, centered in the middle with quite a small font, which I'd like to enlarge.
I still work on WinXP, so SetCurrentConsoleFontEx() is not an option for me. I found this link which describes some undocumented functions including SetConsoleFont(). They work great: the GetNumberOfConsoleFonts() returns 9 usable fonts on my system and I can pick some, however under fullscreen 0 font were found, which means it is not supported.
I also tried to create shortcut to the program and set the console there, but there's no fullscreen option and after switching to fullscreen all font settings are discarded.
I'd like to convince the screen to show nice big text font, just like in sci-fi movies or in good old BIOS assembly coding. Is it possible under XP?
The full-screen console mode switches the display adapter into 80x25 VGA text mode.
Thus font-rendering is completely different. In a normal console window the font is rendered using GDI; in full-screen mode Windows writes a character code to the display buffer and the hardware renders the font.
VGA supports loadable fonts and Windows uses this feature to support its different language versions. I don't remember if the font is fixed by the language version of Windows or if its chosen to match the current code page. (Full-screen mode doesn't work on x64 and I don't have a 32-bit system handy to try it.)
I'm not aware of you getting any kind of choice in the VGA font used, though there's probably some mileage in overwriting the VGA fonts in the Fonts directory. Though obviously this isn't something you'd want to be doing in production.
Finally, it might be possible to change the font using an actual DOS app! I know Windows NT traps some video-related IOs and passes them through to the hardware. This isn't much use though.
Did you try to write out GetLastError()? My opinion is that this will not be working on windows 7 or later.
Maybe you could try this: #define _WIN32_WINNT 0x0601
Cheers!
I'm making a random number generator, the program will create several random numbers and then choose from those random numbers and then displays that number in the window.
I was wondering if there was a way to make that specific piece of text bigger?
I don't want to change the size of all of the text in the window as I have writing in the window that i don't want to change the size of
Thanks for any help you can give
No, but you can make it bold, change the font color, or the background color for the specific text. If all you want is to make that specific piece of text stand out, I'd go with colorizing it.
As for how to do that... It's platform dependent. What platform are you on? Windows? Linux? What shell?
Take a look at the Windows Console API. That should have what you need.
Console text doesn't allow for the rich formatting you are referring to. You would have to move to a graphical output to render the size differences.
Generally, programs can't control the size of the text in the terminal. You may be able to change the color of a specific part of the text, though. Search for terminal escape sequences for information on how to do that on various terminals. Some terminals also handle bold, italics, and underlining.
No, but instead you can change colors of text and text's background. Will this be a good solution for your problem? There are a lot of specific examples available in the internet.
A possible console mode solution could involve FIGlet. You can tweak the output to write in many different fonts.
The output is larger, but no guarantee that it's suitable for your application.
open your console app, go to system menu of console window (left top corner, right click), font tab, choose what you wish. next time you open this (!) console app the font will be as you selected, other console windows are not affected
Right Click the top bar of the window
Click Properties
Click Font and select your font size
This isn't through the code but it will help for your pc.