Ubuntu 出现 Fontconfig warning 警告问题(解决)

在Ubuntu中的终端执行带有界面的程序时会出现 Fontconfig warning 警告,内容如下:


Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 61: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 96: Having multiple values in <test> isn't supported and may not work as expected

打开相应的文件,

    <test name="lang" compare="not_eq">
      <string>zh-cn</string>
      <string>zh-sg</string>
      <string>zh-hk</string>
      <string>zh-tw</string>
      <string>zh</string>
      <string>Droid Sans Japanese</string>
    </test>

在一个test标签内定义了多个字符串,因此出现多值的警告,只需要将多个字符串拆开即可,修改成如下所示的内容即可:

    <test name="lang" compare="not_eq">
      <string>zh-cn</string>
</test>
    <test name="lang" compare="not_eq">
      <string>zh-sg</string>
</test>
    <test name="lang" compare="not_eq">
      <string>zh-hk</string>
</test>
    <test name="lang" compare="not_eq">
      <string>zh-tw</string>
</test>
    <test name="lang" compare="not_eq">
      <string>zh</string>
    </test>
    <test name="family">
      <string>Droid Sans Japanese</string>
    </test>

再运行程序就不会出现警告了。


本文参考自:http://blog.163.com/xh_ding/blog/static/193903289201364115937389/


  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Build: ffprobe-20190623-bc3306f-win64-static Configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt Libraries: SDL 2.0.9 <https://libsdl.org> Fontconfig 2.13.0 <http://freedesktop.org/wiki/Software/fontconfig> GnuTLS 3.6.7.1 <https://gnutls.org/> libiconv 1.15 <http://gnu.org/software/libiconv> libass 0.14.0 <https://github.com/libass/libass> dav1d 20190620-4a2ea99 <https://code.videolan.org/videolan/dav1d> libbluray 20180913-2d18c70 <https://www.videolan.org/developers/libbluray.html> FreeType 2.10.0 <http://freetype.sourceforge.net> LAME 3.100 <http://lame.sourceforge.net> OpenCORE AMR 20170731-07a5be4 <https://sourceforge.net/projects/opencore-amr> OpenJPEG 20190402-d0dd894 <https://github.com/uclouvain/openjpeg> Opus 20190604-ad8fe90 <https://opus-codec.org> shine 3.1.1 <https://github.com/savonet/shine> Snappy 1.1.7 <https://github.com/google/snappy> libsoxr 20180224-945b592 <http://sourceforge.net/projects/soxr> Theora 20171023-e5d205b <http://theora.org> TwoLAME 0.3.13 <http://twolame.org> vpx 20190620-7d9288f <http://webmproject.org> WavPack 5.1.0 <http://wavpack.com> WebP 1.0.2 <https://developers.google.com/speed/webp> x264 20190314-5493be8 <https://www.videolan.org/developers/x264.html> x265 20190618-b36c03e <https://bitbucket.org/multicoreware/x265/wiki/Home> libxml2 2.9.8 <http://xmlsoft.org> z.lib 20190324-89fad4b <https://github.com/sekrit-twc/zimg> XZ Utils 5.2.4 <http://tukaani.org/xz> zlib 1.2.11 <http://zlib.net> vid.stab 20190213-aeabc8d <http://public.hronopik.de/vid.stab> Vorbis 20180705-46e70fa <http://vorbis.com> VisualOn AMR-WB 20141107-3b3fcd0 <https://sourceforge.net/projects/opencore-amr> libmysofa 20181220-50ee637 <https://github.com/hoene/libmysofa> Speex 20181021-6e04bfa <http://speex.org> Xvid 1.3.5 <https://labs.xvid.com> aom 20190621-661552d <https://aomedia.googlesource.com/aom> libmfx 1.27 <https://software.intel.com/en-us/media-sdk> AMF 1.4.7 <https://gpuopen.com/gaming-product/advanced-media-framework> nv-codec-headers 20190311-96a6db0 <https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git> OpenMPT 20190424-2863742 <https://openmpt.org> Copyright (C) 2019 Kyle Schwarz This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值