Black code and no syntax highlighting with Source Code Pro - visual-studio-code

I'm using the Source Code Pro font, and as of Big Sur, all my text is black, even with the Dark+ theme, and there's no syntax highlighting.
I tried disabling all extensions and starting Code with code --disable-gpu, but neither of these helped.

The solution is to update your Source Code Pro font to the latest release:
Open Font Book, and in the "User" tab, delete Source Code Pro.
Download the latest Source Code Pro release. You probably want the OTF version.
Unpack it, select all .otf file, and open them. Then in Font Book, press "Install".
The reason why it broke seems to be related to how Big Sur handles fonts with SVG tables. This is fixed as of the November 2020 release, whose release notes state:
Removes SVG table to allow for color-coded text in text editing apps. (issue #250)

Related

Not able to change VS Code Font Family

I am fairly new to VScode, I wanted to add Ubuntu Mono Font in VScode. I downloaded the file from Google Fonts page. I extracted and Installed all the different Styles that were available. Here is a photo of the downloaded fonts that I had installed.
Then to verify whether the font was installed or not I opened a word file where I could select Ubuntu Mono. On Stackoverflow I came across 2 methods of Changing the Font family, either editing the settings.json file or using the GUI in VScode by writing the Font family name. I am attaching my modified settings.json file here
I tried other options as well like:
"editor.fontfamily":" 'UbuntuMono-Regular', monospace"
"editor.fontfamily":" 'UbuntuMono-Bold', monospace"
"editor.fontfamily":" 'Ubuntu Mono' , monospace"
//here I tried to play around with spaces:
"editor.fontfamily":" ' UbuntuMono ', monospace"
but whatever I do it is showing the same default monospace font. Any Guidance Regarding this will be helpful. My VScode is updated(It shows March 2021 (Version 1.55)) If any more information or Screenshots are required please let me know.
I tried it with the OTF version: UbuntuMono-Regular.otf
Install the font.
The following settings worked.
"editor.fontFamily": "'Ubuntu Mono', monospace"
You have to RESTART VSC
In my case, I am inputing the font name incorrectly,
e.g. I input
'Delugia Mono Regular'
but in fact vscode does not need Regular cause it accepts font family as input, changing it to:
'Delugia Mono'
and it worked.
No need to restart or even save the settings file, the change would appear in 1 second after you've entered a legal fontfamily as input.
Try to disable all installed extensions from vscode and edit the .json file again, choose your font and make sure that it has been installed then save all changes

Visual Studio Code Not Displaying Invisible Characters/Spaces

I am currently working on writing code for a Source Game Engine map file. I have issues with Visual Studio Code not displaying certain invisible characters.
When using notepad++, I can see there are invisible characters in between the lines:
But when I open it up in visual studio code, it's as if the invisible character doesn't exist.
This is what I see when using visual studio code:
I have asked my friends who also do the same thing (making Source Engine Maps) and they all don't have this issue. One of my friends sent me this image:
This is what he sees in his own editor, with squares representing the invisible character/space:
I've done a few things to try to fix this issue:
Changing fonts (I used a custom font but reset to default to see if it had any impact)
Changing encoding setting (UTF-8 was what my friends used but I tried tinkering around)
Changing editors (Tried Atom/Sublime but only Notepad++ even shows there being an invisible character)
Updated / reinstalled language packs
Enabling whitespaces
After everything, I still have the same issue. Are there other possible fixes/causes for this issue?
Fixed
I just had to enable Render Control Characters in visual studio code.

Eclipse Project Explorer Highlighting

I installed the Eclipse Moonrise UI and the results are great, except a couple things become unreadable for me. Here is an image of what my project explorer window looks like. I have 2 git repositories which have black text, making it very difficult to read on the dark background. The normal files and folders have light text, but when selected, it becomes completely unreadable because the selected item's background is very light. Also my scroll bars are light (unlike what is seen on the front page of the above link).
I am unable to locate where I can adjust these settings.
On the other hand, the Outliner window has light text on the dark background and when selected becomes dark text on a light background. Not the way it is supposed to look with this plugin, but it's fine, I can read it.
I am running Kepler Service Release 2 on windows 7 x64.
Except for scrollbars that are forced by OS theme, try to import the epf file as suggested on project page. The settings contained in that epf will influence the syntax highlighting (foreground/background colors) for code editors but also custom colors for other views (eg. console, git filenames, etc.).
If instead you're using CDT, unfortunately the issues with package explorer and outline file names cannot be solved now, because those colors are hard-coded in that package and requires a fix in CDT bundle for them before.

iOS 6 Custom Font Issues with Core Text

Background:
I have a word processing app that utilizes a set of Custom fonts; there are four fonts in my set: Regular, Italic, Bold, & Bold Italic. They are True Type: Open Type formatted. This has been working great in the store for several months with iOS 5.0 & 5.1.
Note: I'm utilizing CoreText and doing all of my own text processing and rendering.
Issue:
After upgrading to iOS 6, I noticed that all Italic text is now Bold Italic, and any Bold Italic text is now "undefined" (for me that defaults to another font).
I had hoped that it was just an Xcode issue/change, but it's showing up on my shipped build as well.
What I've Tried:
I've double checked that all the parameters being passed into CTFontCreateWithFontDescriptor are the same between versions.
Looked through iOS 6.0 & Xcode 4.5 release notes & checked dev forums.
Removed and re-added Fonts to project
Any assistance or possible places to investigate would be greatly appreciated!

Eclipse specific colour change with new Ubuntu themes

All but one colour is a problem in Eclipse with the new Ubuntu (10.10) dark themes.
I want to change only this one, not the theme.
This is the background/colour used by Eclipse in lists (Explorer, Open Resource) when an item is pre selected (a selected item displays ok).
The current display is white on light-grey, not easily readable.
Where can I change that?
Update July 2012 (18 months later):
With the latest Eclipse4.2 (June 2012, "Juno") release, you won't depend on the OS colors anymore.
See the article by Lars Vogel in "Eclipse 4 is beautiful – Create your own Eclipse 4 theme":
If you want to play with it, you only need to write a plug-in, create a CSS file and use the org.eclipse.e4.ui.css.swt.theme extension point to point to your file.
If you export your plug-in, place it in the “dropins” folder of your Eclipse installation and your styling is available.
Original answer: December 2010
It is a system color (a background color based on the underlying OS system color properties), so you will have to change a property in the theme, not a setting in Eclipse.
For instance, see "How to change the color of menu text?" (but this may not be exactly how your dark theme works and you will need to tweak the ~/.gnome* files)
just want to say that I had the same problem and that changing the "selected entry" text colour of the theme to #8C8C8C fixed it for me without hurting the themes "look and feel"