Unable to Change Terminal Fonts in VSCode (Windows-WSL Ubuntu)

Abstract: Resolve inability to change terminal fonts in VSCode on WSL by configuring the Windows-side font family setting.

Created: 2026-09-06 by

Users cannot change terminal fonts in VSCode on WSL Ubuntu because the editor relies on Windows-side font rendering rather than Linux system fonts. The solution involves configuring the terminal.integrated.fontFamily setting to use a font installed on the Windows host, ensuring the character set supports UTF-8 and avoiding conflicts with the integrated shell environment.

Understanding the Rendering Architecture

When you run a terminal inside Visual Studio Code connected to a WSL distribution, it is crucial to understand that the visual rendering of characters happens on the Windows side, not within the Linux subsystem itself. The WSL instance provides the command-line interface and executes the commands, but the text displayed in the VSCode terminal panel is drawn by the Windows operating system using its own font libraries. This architectural distinction explains why installing a new font via apt inside Ubuntu often fails to affect the appearance of the terminal text. The Linux package manager handles fonts for GUI applications running under X11 or Wayland, but the VSCode terminal uses DirectWrite or GDI for text measurement and rendering. Consequently, any font modification must target the Windows font registry, not the Linux file system. If you are experiencing broader connectivity issues between VSCode and your WSL environment, such as the terminal failing to launch entirely, you may need to verify your default terminal configuration. You can read more about this process in our guide on Changing the Default Terminal in VSCode (Windows 10) to WSL2 Ubuntu 24.04. Ensuring the correct shell path is selected is the first step before troubleshooting visual properties like fonts.

Configuring Fonts via settings.json

The most reliable method to change the terminal font is through the user settings file. Open the Command Palette by pressing Ctrl+Shift+P and type "Preferences: Open User Settings (JSON)". This opens the settings.json file where you can add specific configurations for the integrated terminal. Look for the property named terminal.integrated.fontFamily. If this key does not exist, you should add it manually. The value should be a string containing the exact name of the font as it appears in the Windows Font Manager. For example, if you wish to use Consolas, the line would look like this:
"terminal.integrated.fontFamily": "Consolas",
You can also specify fallback fonts by separating them with commas. This is useful if your primary choice lacks certain glyphs. A typical configuration might look like this:
"terminal.integrated.fontFamily": "Fira Code, Consolas, 'Courier New'",
It is important to note that the font name must match exactly what is listed in the Windows Fonts control panel. Unlike CSS, which allows for flexible naming, VSCode requires the precise family name. If you are unsure of the exact name, open the Windows Settings, navigate to Personalization > Fonts, and search for your desired typeface. Copy the full name from there and paste it into the settings file. After saving the JSON file, restart the terminal panel by closing all existing tabs and opening a new one. The changes will take effect immediately upon creation of the new session.

Using the UI Settings Interface

For users who prefer not to edit JSON files directly, Visual Studio Code offers a graphical interface for these settings. Navigate to File > Preferences > Settings, or press Ctrl+,. In the search bar at the top, type "terminal font family". You will see an input field labeled "Terminal › Integrated: Font Family". Enter the name of the Windows font you wish to use here. This method automatically writes the correct entry to your settings.json file, reducing the risk of syntax errors. After entering the font name, close the current terminal instances. You can do this by clicking the trash icon in the terminal header or using the command "Kill Terminal" from the Command Palette. Open a new terminal tab. The new font should now be applied. If the font does not appear, ensure that the font is actually installed on your Windows machine. Installing fonts only in the Linux subsystem will not make them available to the VSCode renderer.

Adjusting Font Size and Weight

Alongside the font family, you can customize the size and weight for better readability. In the same settings search, locate "Terminal › Integrated: Font Size" and "Terminal › Integrated: Font Weight". These controls allow you to fine-tune the appearance without changing the underlying typeface. A common practice is to increase the font size to 14 or 16 pixels for long coding sessions. Similarly, setting the font weight to "normal" or "bold" can improve legibility depending on the contrast of your color theme. These adjustments are purely cosmetic and do not affect the functionality of the WSL shell.

Troubleshooting Common Issues

Sometimes, despite correct configuration, the font may not update correctly. This is often due to caching issues or incorrect font names. First, verify that the font is installed on Windows. Second, check for typos in the font name within settings.json. Third, clear the VSCode cache by restarting the application completely. If you are still facing difficulties, consider checking if your WSL installation is properly configured. Disk space issues or installation failures can sometimes lead to unexpected behavior in the integrated tools. For more information on maintaining a healthy WSL environment, refer to our article on Why is WSL taking up more disk space than it says it is?. Another potential issue is conflict with other extensions that modify terminal behavior. Disable any terminal-related extensions temporarily to see if the font change takes effect. Additionally, ensure that your VSCode version is up to date, as older versions may have bugs related to WSL integration. GPU acceleration is generally not required for text rendering in terminals, so disabling hardware acceleration is rarely a solution for font issues. Focus instead on the correctness of the font family string and the availability of the font on the host OS.

Frequently Asked Questions

Why don't fonts installed via apt show up in VSCode?

VSCode renders terminal text using Windows APIs, so it only recognizes fonts installed on the Windows host. Linux-installed fonts are isolated within the WSL filesystem and are not accessible to the Windows-side renderer. You must install fonts through the Windows Settings or Control Panel to make them visible.

How do I find the exact name of a Windows font?

Open the Windows Settings app, go to Personalization, and then select Fonts. Search for your desired font and copy the exact name displayed in the list. Use this exact string in the terminal.integrated.fontFamily setting to ensure proper recognition.

Can I use different fonts for different shells in WSL?

No, the font setting applies globally to all integrated terminal instances within VSCode. While you can run different shells like bash, zsh, or PowerShell, they all share the same rendering engine and font configuration. You cannot assign distinct fonts to individual profiles within the same VSCode window.

What should I do if the font looks blurry or distorted?

This usually indicates a mismatch in font scaling or DPI settings. Ensure that your Windows display scaling is set to 100% or that VSCode is not being scaled incorrectly. You can also try enabling "antialias" options in advanced settings or switching to a font that supports ClearType well, such as Segoe UI or Consolas.

Does changing the terminal font affect the code editor area?

No, the terminal.integrated.fontFamily setting only applies to the terminal panel. The main code editor uses the editor.fontFamily setting, which is separate. You can configure them independently to have different typography for coding and command-line interactions.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More