Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 Fandol 开源字体选择 #179

Closed
wants to merge 2 commits into from

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented Jan 4, 2017

Fandol 是 LaTeX 可用的著名开源中文字体解决方案,可用来替换 Adobe 中文字体,解决版权问题。

What have I done

更新了文档(readme 和 thesis 本身)

Related Issues

Signed-off-by: Ce Gao ce.gao@outlook.com

@gaocegege
Copy link
Member Author

= =终于对了

@gaocegege
Copy link
Member Author

PTAL @weijianwen

@at15
Copy link
Member

at15 commented Jan 6, 2017

补充一下,Linux (我是 Fedora 25) 的用户最好不要手贱去直接装字体。
i.e. 下载 otf 文件后双击然后在字体查看器里 install。
后果如下图(浏览器和编辑器都会崩) 出现了混合字体的情况。

image
image

解决方法是

  1. 切换成中文语言,就不会有字体混合显示的问题了。但是为了命令行里方便,一般安装都选英文 cd 我的文档 vs cd Documents@gaocegege 打脸了,看下面评论(想装个B好难....)
  2. 删掉安装的字体,fc-list 会列出所有安装的字体, fc-cache 可以刷新字体的缓存。Fedora 下是 ~/.local/share/fonts

参考

我记得 Latex 里的字体不需要在系统安装,只要能找到字体文件的位置就可以了?我 Fandol 的字体 otf 文件就是从 CTAN 上直接找到的 ..... @gaocegege

@gaocegege
Copy link
Member Author

gaocegege commented Jan 6, 2017

re @at15 系统安装最小白啊

cd 我的文档还是 cd Documents,是语言独立的吧,起码 Ubuntu 是的

另外,这部分你写到 wiki 里?

@at15
Copy link
Member

at15 commented Jan 6, 2017

@gaocegege 但是并不会有自动补全吧... 你试试 cd D 然后按 tab 。我还没试过这个 branch ... 我试下系统不安 Fandol 字体能不能跑,我 Fedora Texlive 还没安 .....

@gaocegege
Copy link
Member Author

会补全,不过这不是关键 =。=

不安应该是没办法跑的

@at15
Copy link
Member

at15 commented Jan 6, 2017

@gaocegege 跑不了

! Package biblatex Error: Style 'gb7714-2015' not found.

....

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "TeX Gyre Termes" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

....

*************************************************
* fontspec warning: "script-not-exist"
* 
* Font 'FandolKai-Regular' does not contain script 'CJK'.
*************************************************

@weijianwen
Copy link
Collaborator

@at15 你用的是TeXLive 2015吧?建议升级到2016,这样就有gb7714了。

@at15
Copy link
Member

at15 commented Jan 6, 2017

@weijianwen 是用的 2016,我 win 和 linux 用的一个 ISO,安装的时候选了完整安装,tlgmr 升级了一下 gb7714 的报错才消失。

sudo env "PATH=$PATH" tlmgr update --self
sudo env env "PATH=$PATH" tlmgr update --all

不过 TeX Gyre TermesFandol* 貌似是必须系统安装字体才能解决

@weijianwen
Copy link
Collaborator

非常感谢!有两个地方需要改进:

  1. thesis.tex 中实际上只有头部几行做了修改,后面标注的一些修改都是因为编辑器删除空白字符引入的无意义修改,需要去掉。
  2. 需要在顺手在Wiki页 https://github.com/weijianwen/SJTUThesis/wiki/本地安装使用说明 增加Fandol字体文件的下载页面,顺手把[0.9.5]的链接也指向 https://github.com/weijianwen/SJTUThesis/releases/tag/0.9.5

@gaocegege
Copy link
Member Author

OK,今晚改完

@gaocegege
Copy link
Member Author

gaocegege commented Jan 27, 2017

thesis.tex 中实际上只有头部几行做了修改,后面标注的一些修改都是因为编辑器删除空白字符引入的无意义修改,需要去掉。

那个是手动修改的,用空格取代了 tab 并且做了对齐,看上去可读性会好一些,确定要去掉么 0.0

@weijianwen
Copy link
Collaborator

建议还是去掉,空白字符的处理和对齐,不同编辑器有不同处理方式,我这边看着就很正常。空白字符风格建议留给用户决定,不需要再处理Fadol的commit中处理这个问题。

@gaocegege
Copy link
Member Author

Signed-off-by: Ce Gao <ce.gao@outlook.com>
@gaocegege
Copy link
Member Author

PTAL

@weijianwen
Copy link
Collaborator

非常感谢,已经合并到 dev 分支的 5f59859

@weijianwen weijianwen closed this Jan 28, 2017
@gaocegege gaocegege deleted the feature/replace-font branch February 8, 2018 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants