Pango Font Configure

本文介绍了当遇到Pango-CRITICAL错误时的解决方案。主要步骤包括:将宿主机的字体目录复制到目标机,检查模块路径并进行必要的链接设置。通过这些操作,可以有效解决目标系统找不到字体的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Problem:
Pango-CRITICAL **: No fonts found:
This probably means that the fontconfig library is not correctly configured. You may need to edit the fonts.conf configuration file. More information about fontconfig can be found in the fontconfig (3) manual

Solution:

1. You should copy the directory
/usr/share/fonts of your host machine to /usr/share of your target machine. Otherwise your target can't find fonts or your fonts are not installed in your  target.
2. Your target can't find the module. So you should check the path. In my case, the path was mounted to the target and
I made a logial path so that it looks the same as that of the host. As follows:

ln /usr/etc/pango  ..
ln /usr/lib/pango/1.6.0  ..
ln /use/share/fonts  ..
export FONTCONFIG_PATH=/etc/fonts

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值