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

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

问题描述

有没有办法测试安装了哪些字体,或者我可以读出所有字体?我想在我们的产品中做一个调查,看看我可以在我们的项目中使用哪些字体.

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-字体检测

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

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