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

在命令行模式下,为什么指定<output>会影响结果文件的大小? #85

Open
hsingko opened this issue Feb 10, 2021 · 0 comments

Comments

@hsingko
Copy link

hsingko commented Feb 10, 2021

我使用了如下命令来缩减字体文件:

fontmin -t $(..) source.ttf > result.ttf

发现前后两个字体的大小几乎相差无几:

source.ttf result.ttf
4.3MB 4.1MB

用fontforge对比,result.ttf确实只有我指定的字符,那为什么两者的差距这么小?

接着我尝试不指定 output,直接导出到默认文件夹下:

fontmin -t $(..) source.ttf

这次的结果正常了:

source.ttf build/source.ttf
4.3MB 781.4KB

这也太奇怪了?还是说 >result.ttf 并不是我想象的那种用途?

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

No branches or pull requests

1 participant