zoukankan      html  css  js  c++  java
  • 中文乱码与字体库windows

    设置中文后,查看图形有乱码,文字变成了方块


    Win+R打开运行,输入fonts,回车进入Windows字体目录,找到微软雅黑-常规字体,复制出来将文件名修改为msyh.ttf,注意后缀ttf。

    将msyh.ttf上传到服务器zabbix字体目录中:

    /usr/share/zabbix/fonts/

    修改配置文件

    复制代码
    查看字体配置# grep FONT_NAME /usr/share/zabbix/include/defines.inc.php  -n
    45:define('ZBX_GRAPH_FONT_NAME',        'graphfont'); // font file name
    93:define('ZBX_FONT_NAME', 'graphfont');
    确认字体名称是否可以替换
    # grep graphfont /usr/share/zabbix/include/defines.inc.php  -n
    45:define('ZBX_GRAPH_FONT_NAME',        'graphfont'); // font file name
    93:define('ZBX_FONT_NAME', 'graphfont');
    执行快捷替换
    # sed -i "s/graphfont/msyh/g" /usr/share/zabbix/include/defines.inc.php
    确认是否替换成功
    # grep FONT_NAME /usr/share/zabbix/include/defines.inc.php  -n
    45:define('ZBX_GRAPH_FONT_NAME',        'msyh'); // font file name
    93:define('ZBX_FONT_NAME', 'msyh');
  • 相关阅读:
    四则运算2
    进度条博客
    随机生成30道100以内的四则运算题
    构建之法阅读笔记01
    自我介绍
    c# dataGridView cell添加下拉框
    Winform Combobox.Items tooltip
    中医和红外(北京第一个工作)
    pdf修复
    c# 导出数据到excel
  • 原文地址:https://www.cnblogs.com/SZLLQ2000/p/9453151.html
Copyright © 2011-2022 走看看