标签: font

自定义 powershell 字体和大小

我们有许多 Windows 2012 服务器核心系统,使用以下命令将 powershell 设置为默认 shell:

$RegPath = "Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon"
Set-ItemProperty -Confirm  -Path $RegPath -Name Shell -Value 'cmd.exe /C start /max PowerShell.exe -noExit'
Run Code Online (Sandbox Code Playgroud)

我发现我们可以使用位于 c:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 的特殊 powershell 脚本自定义 powershell 字体颜色。该脚本被所有用户使用。

但是现在我想自定义持久的字体和字体大小(同样适用于所有用户)。IE 如果我退出服务器并重新登录,我希望保留设置。同样,如果我以管理员身份登录,或者我自己的帐户 powershell 应该看起来相同 - 使用相同的字体颜色、字体和字体大小。

使用 Powershell ISE 似乎可以使用以下方法设置字体和字体大小:

$psISE.Options.FontName = 'Lucida Sans Console' 
$psISE.Options.FontSize = 14
Run Code Online (Sandbox Code Playgroud)

但是,powershell 本身的等价物是什么?

powershell font color

10
推荐指数
1
解决办法
3万
查看次数

如何在 Linux 中安装字体以便 xterm 可以使用它?

我今天遇到了一个问题,要求使用好的 Linux xterm 字体,一个答案建议使用一个叫做 Terminus 的字体。我一直在寻找新的终端字体一段时间了,所以我下载了它(顺便说一句,我正在运行 Ubuntu Intrepid)并阅读自述文件:

1.1. Quick installation.
The commands:
  $ ./configure [--prefix=PREFIX]
  $ make
  # make install
compile and install the Linux console and X11 Window System fonts, and
  # make fontdir
updates fonts.dir for X11 (if you don't know what fonts.dir is, execute the
command).

1.2. Legend.    
The file names are structured as follows: ter-u<SIZE><STYLE>.bdf    
where <SIZE> is 12, 14, 16, 20, 24, 28 or 32, and <STYLE> is n for …
Run Code Online (Sandbox Code Playgroud)

linux font x11

5
推荐指数
1
解决办法
1万
查看次数

如何在 Debian Wheezy 中安装 Arial 字体或任何 true type 字体?

我在Linux服务器(Wheezy服务器版本)中部署了一个网页,该网页使用Arial字体生成一个PDF文件。我看过:

/usr/share/fonts/truetype/ 
Run Code Online (Sandbox Code Playgroud)

那里没有找到 Arial 字体,只有:

DejaVuSans-Bold.ttf
DejaVuSansMono-Bold.ttf
DejaVuSansMono.ttf
DejaVuSans.ttf
DejaVuSerif-Bold.ttf
DejaVuSerif.ttf
Run Code Online (Sandbox Code Playgroud)

如何安装Arial字体?

linux font debian-wheezy

5
推荐指数
1
解决办法
2万
查看次数

如何在 XP 上设置命令提示符字体?

我需要在几台机器上的 XP 命令提示符上设置字体,以便正确显示希伯来文文件名。默认字体显示很多乱码,所以我很确定改变它会成功。任何人都可以指出我正确的方向吗?

windows-xp command-line-interface font

2
推荐指数
1
解决办法
4713
查看次数