AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[fonts](unix)

Martin Hope
Kyle
Asked: 2024-10-22 11:54:12 +0800 CST

默认字体位于哪里

  • 5

我正在运行 Xterm,需要找到默认位图字体(misc-fixed)的目录。我找遍了所有地方,但还是找不到。有什么想法吗?

这是我运行时的输出xterm -report-fonts:

Loaded VTFonts(default)
        fNorm: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
        fBold: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
        fWide: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                               max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
        fWBold: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
Loaded VTFonts(default)
        fNorm: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
        fBold: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0         
                descent:  -10
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
        fWide: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255
        fWBold: fixed
                all chars:     no
                default char:  0
                direction:     0
                ascent:        11
                descent:       2
                first char:    0
                last char:     255
                maximum-chars: 256
                missing-chars: 33
                present-chars: 223
                min_byte1:     0
                max_byte1:     0
                properties:    22
                min_bounds:
                        lbearing: 0
                        rbearing: 0
                        width:    6
                        ascent:   -1
                        descent:  -10
                max_bounds:
                        lbearing: 2
                        rbearing: 6
                        width:    6
                        ascent:   11
                        descent:  2
                Per-character: 222/255

...

我最近安装了带有 i3-wm 组包的 Arch 以供参考。由于我没有明确安装任何字体,字体是否也可能只是嵌入在二进制文件中?

希望得到任何见解!!

fonts
  • 1 个回答
  • 14 Views
Martin Hope
Max
Asked: 2024-07-13 08:31:38 +0800 CST

Linux 如何找到给定字体的粗体变体?

  • 12

我喜欢一种等宽字体系列,称为 IBM Plex Mono。除了普通字体和粗体之外,它还提供多种字体粗细,即:

Thin
ExtraLight
Light
Regular
Medium
SemiBold
Bold

现在,我有两个经常使用的工作站。其中一个运行 Kubuntu 22.04,我已使用该字体系列(它在存储库中)安装了该字体。另一个运行 Fedora Kinoite,我已通过下载文件并将其复制到我的目录中来apt安装该字体。.woff2~/.local/share/fonts

在两台机器上,我都将默认等宽字体(使用 KDE 设置中的字体设置)设置为IBM Plex Medium,这是我在终端 (Konsole) 中喜欢使用的粗细。执行此操作后,Konsole 在终端中使用正确的中等粗细。

但是,两台机器在终端中呈现粗体echo -e "\033[1mBold\033[0m normal"文本的方式不同,您可以通过运行使用 ANSI 转义码打印一些粗体文本来测试。

  • Bold在 Kubuntu 机器上,使用更粗的字体粗细(我认为是粗细)。
  • 在 Fedora 机器上,字体粗细完全相同,就好像字体分辨率已经决定它Medium“已经”足够粗体了。

当然,我面临的问题是,我想弄清楚如何让 Fedora(或者至少是 Konsole)使用实际上更重的字体变体,以便我可以区分粗体和普通文本。

但我的问题比这更广泛——给定一堆.woff2(或.ttf或其他)文件~/.local/share/fonts,并且我已将其中一个指定为我的默认等宽字体,当 Konsole 要求“默认等宽字体加粗”时,Linux 如何决定使用哪种变体?有没有办法可以自己控制它,例如在/etc/fonts/conf.d/?


这个问题和我的类似,但是它相当老了,并没有真正涵盖如何设置这些类型的映射的“最佳实践”(例如,我应该将 XML 粘贴在哪里):如何将一个字体系列的粗体粗细别名为另一个字体系列的粗体粗细?

fonts
  • 1 个回答
  • 290 Views
Martin Hope
userrandrand
Asked: 2024-03-13 21:44:40 +0800 CST

~/.cache/fontconfig 中的无效缓存文件

  • 5

~/.local/share/fonts我为字体创建了一个文件夹。该文件夹有许多 .ttf 文件。我使用过fc-cache -v,但在 ~/.cache/fontconfig 中遇到了关于无效缓存文件的错误。

该字体似乎已安装,但我不知道是否应该对错误采取任何措施。

fonts
  • 1 个回答
  • 11 Views
Martin Hope
Erdel von Mises
Asked: 2023-08-09 20:19:28 +0800 CST

如何在 Inkscape Linux 中使用 PostScript Type 1 字体?

  • 5

我正在尝试在 Linux 中的 (flatpak) Inkscape 中使用https://ctan.org/tex-archive/fonts/amsfonts/pfb给出的字体 msbm10.pfb (这是文件命令的 PostScript Type 1 字体)。尝试使用 KDE 字体管理器安装字体显然与安装任何其他字体的效果相同(考虑到我的安装中显然反馈已损坏)。但是,当打开 Inskscape 时,该字体既不会出现在 Euler 中,也不会出现在名称 msbm10 中,这与安装 True Type 字体或 Open Type 时通常在 KDE 字体管理器中出现的名称不同。

fonts
  • 1 个回答
  • 28 Views
Martin Hope
afernandezody
Asked: 2022-06-21 06:18:25 +0800 CST

安装字体包

  • 0

我正在尝试在 Ubuntu 20.04 系统中安装几个字体包(frontproto、inputproto、kbproto、renderproto、xproto、xetproto),使用其中一个apt或从源代码编译它们。但是,我不知道任何来源,并且apt-cache search空无一人。

ubuntu fonts
  • 1 个回答
  • 31 Views
Martin Hope
Vorac
Asked: 2022-02-15 03:00:48 +0800 CST

`ratpoison` 不接受西里尔文键盘命令

  • 0

在我将键盘布局切换为西里尔文之后

setxkbmap -layout "us,bg(phonetic)" -option "grp:alt_shift_toggle"

ratpoison停止识别键并且只识别状态

readkey: Unbound key: Cyrillic_tse

但是,当我切换到终端并按相同的键时,ц输入的是已绑定的~/.ratpoisonrc:

# ~/.ratpoisonrc
# Minimal config file for ratpoison.

# Meta key - Windows key.
# Press before command, not simultaneously.

# Basic commands:
# s, S - split screen into "frames"
# <space> - within a frame, cycle the "windows" open inside it
# <tab> - next frame
# c - create a terminal window in the current frame 
# r - resize this frame
# o - only frame - destroy all other frames
# R - remove current frame
# Q - quit ratpoison

escape Super_L

unbind Q
bind Q quit
bind o only

set startupmessage 0

bind Я quit
bing о only
bind к kill
bind ц exec xterm
bind с split
bind С hsplit
arch-linux fonts
  • 1 个回答
  • 40 Views
Martin Hope
0__
Asked: 2022-01-25 02:52:17 +0800 CST

Debian 上的 Venturis ADF - 是否应该由 texlive-fonts-extra 提供系统字体?

  • 0

我有一些以前的 SVG 文件,我正在尝试使用使用 Venturis ADF 的 Inkscape 进行编辑。此字体未作为“系统字体”安装在我当前的计算机上,但我知道它应该作为texlive-fonts-extra软件包的一部分在那里找到。CTAN 提到“OTF 或 TTF 可用”;我知道 LaTeX 想要不同格式的字体 - 但可以肯定的是,我是否应该能够注册 TeXLive 附带的 Venturis ADF,以便可以在常规 Gnome 应用程序(如 Inkscape)中使用它?如果是,如何;如果没有,我在哪里可以找到 Venturis ADF 的官方 TTF 资源(而不是从随机阴暗的“免费字体”网站下载)?

debian fonts
  • 1 个回答
  • 17 Views
Martin Hope
GPWR
Asked: 2021-12-21 08:27:32 +0800 CST

直接在自己的 Linux 操作系统上安装 Windows 依赖项(例如字体和框架)是否可以让 Wine 使用它们?

  • 0

某些应用程序需要安装特定的字体。我需要通过 Wine 安装它们,还是直接在我的 Linux 操作系统(我使用 Debian 稳定版)上安装它们才能使它们可用?

框架的同样问题。我有一个需要最新版本的 .NET 的应用程序。直接在 Debian 上安装框架是否可以让 Wine 使用它?

如果不是,那是什么原因?

提前谢谢你,上帝保佑。

debian fonts
  • 1 个回答
  • 20 Views
Martin Hope
Benj
Asked: 2021-11-12 17:42:00 +0800 CST

为什么系统更新后有些字体会放大?

  • 0

自上次系统更新以来,对于各种应用程序的字体大小有所增加。即使是我可以确定的一个应用程序,它也没有被替换,因为我有一个自定义版本并从源代码安装它(参见dmenu)。

增加 DMenu 字体

正如你在图片中看到的,dmenu 的字体看起来大得离谱。屏幕截图还显示了源代码中指定了哪种字体以及 fc-list 的输出,这表明该字体已安装。

其他一些应用程序(例如 gimp)也显示出类似的现象。

Gimp 可笑的字体大小

整体分辨率为全高清 1920x1080。

发生了什么,我该如何扭转它?令我惊讶的是,某些应用程序(例如终端(alacritty)或 VS Code)仍然可以正常渲染。我已经在这里检查并确保没有安装 nvidia 驱动程序(即sudo pacman -Q | grep nvidia显示没有输出)

x11 fonts
  • 1 个回答
  • 54 Views
Martin Hope
TeXomat
Asked: 2021-10-28 05:45:29 +0800 CST

将默认 xterm 字体缩放为“大”

  • 3

在xterm,我想将默认字体大小增加到font5/Font5/"Large"默认VTFont的选项。到目前为止,我已经设法通过控制菜单用鼠标手动执行此操作,这非常棒,但每当我打开一个新的 xterm 窗口时,它就会成为一个相当大的负担。因此,我想通过在我的.Xresources文件中将其设置为我的默认值来实现相同的目的,以便每个新的 xterm 窗口默认以“大”字体大小打开,而不是使用控制菜单。

阅读手册页并在网上做一些进一步的研究,我尝试了,在不同的尝试中:xterm*font: font5,xterm*font: *-fixed-*-*-*-18-*并xterm*faceSize: 12.0获得类似的结果。虽然第一次尝试根本不起作用,但在后两次中,与我通过控制菜单选项可以实现的相比,字体确实增加了,但相当模糊。果然,一定有办法!

  • 如何找到 XTerm 使用的默认(字体)资源?
  • https://www.linuxquestions.org/questions/debian-26/how-to-increase-font-size-of-xterm-776352/
  • https://askubuntu.com/questions/161652/how-to-change-the-default-font-size-of-xterm
  • https://invisible-island.net/xterm/xterm.faq.html#how2_fsize
  • 配置不可读的、微小的、小的、...、巨大的 Xterm 字体

编辑:我找到了第二种增加、减少和重置默认 VTFont 大小的方法Ctrl+plus// Ctrl+minus:Ctrl+0

xterm*VT100.Translations: #override \
    Ctrl <Key> minus: smaller-vt-font() \n\
    Ctrl <Key> plus: larger-vt-font() \n\
    Ctrl <Key> 0: set-vt-font(d)
  • http://futurile.net/2016/06/14/xterm-setup-and-truetype-font-configuration/

但是,每次打开新的 xterm 窗口时,这种方法仍然需要手动处理。搜索继续。. .

fonts xterm
  • 1 个回答
  • 487 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve