如何获得可用的字体重量? [英] How to get available font weights?

查看:181
本文介绍了如何获得可用的字体重量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在Photoshop中构建选择器。



我不清楚你的最终目标,但是....



如果你正在使用谷歌字体应该已经知道所有可能的权重。换句话说,如果你提供自己的字体,那么你是所有可用的主人。


Is there any way to get list of weights for particular font in JavaScript?

I want to build selector like in Photoshop.

解决方案

I'm unclear about your end goal, however....

If you are using something like google fonts you should already know all the possible weights available. In other words if you supply your own font then you are the master of all that is available.

这篇关于如何获得可用的字体重量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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