---
title: "libreoffice 中文字体,转pdf了乱码"
author: "amspring"
date: "2015-02-06T13:56:16Z"
tags: ["LibreOffice"]
categories: ["Web前端"]
slug: "libreoffice-pdf"
draft: false
lastmod: "2015-02-06T13:56:16Z"
id: 2184060
url: "https://amspring.iteye.com/blog/2184060"
---

解决办法是：复制windows下的字体到/usr/share/fonts下，对全局有效。

例如：我们把Windows下的字体C:\Windows\Fonts下的宋体，即simsun.ttc复制到当前用户的主文件下。

以打开终端：

sudo cp simsun.ttc /usr/share/fonts

cd /usr/share/fonts

修改权限

sudo chmod 644 simsun.ttc

更新字体缓存：

sudo fc-cache -fv