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

使用 JS 方案 fontmin 替换 Perl 方案 Font Optimizer #18

Closed
junmer opened this issue Mar 13, 2015 · 7 comments
Closed

使用 JS 方案 fontmin 替换 Perl 方案 Font Optimizer #18

junmer opened this issue Mar 13, 2015 · 7 comments

Comments

@junmer
Copy link

junmer commented Mar 13, 2015

使用 JS 方案 fontmin 解决压缩,转码问题
替换现有 Perl 方案,统一技术栈
方便开发者 安装、使用

@aui aui mentioned this issue Mar 13, 2015
16 tasks
@aui
Copy link
Owner

aui commented Mar 13, 2015

已经加入开发队列,预计下个版本可以

@aui
Copy link
Owner

aui commented Mar 21, 2015

基于 fontmin 的 v0.2.0-bate1 已经发布!合作愉快~

@aui aui closed this as completed Mar 21, 2015
@Yankai17148
Copy link

v0.2.0-bate1已经发布到npm上了吗,没有update到啊

@aui
Copy link
Owner

aui commented Mar 21, 2015

已经发布到 npm,你可以检查:

npm info font-spider

{ name: 'font-spider',
  description: 'Webfont optimizer',
  'dist-tags': { latest: '0.2.0-beta1' },
...

@Yankai17148
Copy link

已更新,非常感谢

@aui
Copy link
Owner

aui commented Jul 23, 2015

最近在写 v0.3,主要是为了后续 CDN 动态压缩进行重构,性能优化被提上日程。
@junmer fontmin 比 Perl 的 Font Optimize 慢很多,瓶颈是 javascript 吗?fontmin 在性能上是否还有优化空间?

@junmer
Copy link
Author

junmer commented Jul 24, 2015

@aui js 性能是一方面,程序上有两个可优化的空间

  • 缓存 ttf 解析结果
  • 不解析字型信息,按 cmap 读取二进制信息

做动态压缩的话,可以考虑 把字型信息 预处理 打散成 svg,按需拼合起来

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

3 participants