有没有办法检查通过网络安装在机器上的字体? [英] Is there a way to check what fonts are installed on machines via the web?

查看:173
本文介绍了有没有办法检查通过网络安装在机器上的字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法来测试什么字体安装,或者我可以读出所有的方式?我想在我们的产品中做一个调查,看看我可以在我们的项目中使用什么字体。

Is there a way to test what fonts are installed or maybe a way I can read out all of them? I want to do a survey in our product to see what fonts I can use on our projects.

推荐答案

以不同的字体呈现一堆DIV,然后检查所得到的DIV是否具有给定字体的正确尺寸。

There is a script that renders a bunch of DIVs in different fonts, then checks to see if the resulting DIV has the right dimensions for the given font.

http://www.lalit.org/lab/javascript-css-font-detect

这篇关于有没有办法检查通过网络安装在机器上的字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆