<p style="font-size:16px;white-space:normal;box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:16px;padding:0px;color:#4D4D4D;overflow:auto hidden;overflow-wrap:break-word;font-family:-apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, SimHei, SimSun;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;line-height:26px !important;">系统环境UBUNTU20.04, ODOO14装好后, 打印PDF文件时发现中文乱码, 经检查后发现是UBUNTU没有安装中文字体所致, 解决办法如下:</p><p style="font-size:16px;white-space:normal;box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:16px;padding:0px;color:#4D4D4D;overflow:auto hidden;overflow-wrap:break-word;font-family:-apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, SimHei, SimSun;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;line-height:26px !important;">1, 终端进入ROOT</p>
<pre style="box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:24px;padding:8px;position:relative;white-space:pre-wrap;overflow-wrap:break-word;overflow-x:auto;font-family:Consolas, Inconsolata, Courier, monospace;font-size:14px;line-height:22px;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;"><code class="hljs properties" style="box-sizing: border-box; outline: 0px; display: block; overflow-x: auto; padding: 8px; color: rgb(56, 58, 66); background-color: rgb(250, 250, 250); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 22px; white-space: pre; overflow-wrap: break-word; tab-size: 4;"><span class="hljs-attr" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;color:#986801;overflow-wrap:break-word;">su</span> <span class="hljs-string" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;color:#50A14F;overflow-wrap:break-word;">root</span></code></pre>
<p style="font-size:16px;white-space:normal;box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:16px;padding:0px;color:#4D4D4D;overflow:auto hidden;overflow-wrap:break-word;font-family:-apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, SimHei, SimSun;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;line-height:26px !important;">2, 依次输入如下命令安装正黑 - 微黑两种中文字体:</p>
<pre style="box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:24px;padding:8px;position:relative;white-space:pre-wrap;overflow-wrap:break-word;overflow-x:auto;font-family:Consolas, Inconsolata, Courier, monospace;font-size:14px;line-height:22px;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;"><code class="hljs sql" style="box-sizing: border-box; outline: 0px; display: block; overflow-x: auto; padding: 8px; color: rgb(56, 58, 66); background-color: rgb(250, 250, 250); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 22px; white-space: pre; overflow-wrap: break-word; tab-size: 4;"><ol class="hljs-ln" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;list-style:none;border-collapse:collapse;font-size:16px;overflow:hidden;overflow-wrap:break-word;"><li style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;list-style:none;overflow-wrap:break-word;height:22px;"><div class="hljs-ln-numbers" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;overflow-wrap:break-word;font-size:14px;float:left;height:22px;width:24px;border-right-width:1px;border-right-style:solid;border-right-color:#C5C5C5;"><div class="hljs-ln-line hljs-ln-n" data-line-number="1" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px 8px 0px 0px;text-align:right;overflow-wrap:normal;"></div></div><div class="hljs-ln-code" style="box-sizing:border-box;outline:0px;margin:0px 0px 0px 8px;padding:0px;overflow-wrap:break-word;font-size:14px;float:left;height:22px;"><div class="hljs-ln-line" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;overflow-wrap:break-word;">sudo apt-get <span class="hljs-keyword" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;color:#A626A4;overflow-wrap:break-word;">install</span> ttf-wqy-zenhei -y</div></div></li><li style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;list-style:none;overflow-wrap:break-word;height:22px;"><div class="hljs-ln-numbers" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;overflow-wrap:break-word;font-size:14px;float:left;height:22px;width:24px;border-right-width:1px;border-right-style:solid;border-right-color:#C5C5C5;"><div class="hljs-ln-line hljs-ln-n" data-line-number="2" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px 8px 0px 0px;text-align:right;overflow-wrap:normal;"></div></div><div class="hljs-ln-code" style="box-sizing:border-box;outline:0px;margin:0px 0px 0px 8px;padding:0px;overflow-wrap:break-word;font-size:14px;float:left;height:22px;"><div class="hljs-ln-line" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;overflow-wrap:break-word;">sudo apt-<span class="hljs-keyword" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;color:#A626A4;overflow-wrap:break-word;">get</span> <span class="hljs-keyword" style="box-sizing:border-box;outline:0px;margin:0px;padding:0px;color:#A626A4;overflow-wrap:break-word;">install</span> ttf-wqy-microhei -y</div></div></li></ol></code></pre>
<p style="font-size:16px;white-space:normal;box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:16px;padding:0px;color:#4D4D4D;overflow:auto hidden;overflow-wrap:break-word;font-family:-apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, SimHei, SimSun;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;line-height:26px !important;">3,重启系统</p>
<pre style="box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:24px;padding:8px;position:relative;white-space:pre-wrap;overflow-wrap:break-word;overflow-x:auto;font-family:Consolas, Inconsolata, Courier, monospace;font-size:14px;line-height:22px;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;"><code class="hljs" style="box-sizing: border-box; outline: 0px; display: block; overflow-x: auto; padding: 8px; color: rgb(56, 58, 66); background-color: rgb(250, 250, 250); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 22px; white-space: pre; overflow-wrap: break-word; tab-size: 4;">reboot</code></pre>
<p style="font-size:16px;white-space:normal;box-sizing:border-box;outline:0px;margin-top:0px;margin-bottom:16px;padding:0px;color:#4D4D4D;overflow:auto hidden;overflow-wrap:break-word;font-family:-apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, SimHei, SimSun;font-variant-ligatures:normal;orphans:2;widows:2;background-color:#FFFFFF;line-height:26px !important;">4,重新进入ODOO, 中文可以打印了。 </p>
发表评论 取消回复