---
title: "netbeans中安装consolas字体"
author: "magnesium"
date: "2010-01-25T16:48:17Z"
tags: []
categories: ["编程语言"]
slug: "netbeans-consolas"
draft: false
lastmod: "2010-01-25T16:53:55Z"
id: 579422
url: "https://magnesium.iteye.com/blog/579422"
---

首先下载完consolas字体后执行：

sudo mkdir -p /usr/share/fonts/consolas

然后，改变权限：
sudo chmod 777 /usr/share/fonts/consolas

复制文件
sudo cp consolas.ttf /usr/share/fonts/consolas/


安装：
cd /usr/share/fonts/consolas/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv

安装完成，然后就可以在netbeans的option中的fonts＆colors中，language选plain text，font选consolas就可以了。