• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mxrsoon/fluentui-system-icons-font: A script for building icon fonts based on as ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

mxrsoon/fluentui-system-icons-font

开源软件地址:

https://github.com/mxrsoon/fluentui-system-icons-font

开源编程语言:

CSS 73.5%

开源软件介绍:

FluentUI System Icons Font

This repository contains icon fonts based on assets from the microsoft/fluentui-system-icons repository and a script to generate them.

Embedding

You can embed the icons using jsDelivr. For example, to embed the Regular 20 variant, just include a link tag like this:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/wazybr/fluentui-system-icons-font/webfonts/css/fluent-icons-regular-20.css">

Afterwards, you can use the icons like this:

<i class="fluent-icons-regular-20">add_circle</i>

To see a list of available icons, you can take a look at this page on Microsoft's repository.

The naming scheme differs a little bit. For instance, the ic_fluent_add_circle_20_regular icon for Android, is called just add_circle here, if you are using the Regular 20 web-font variant and class.

Downloading the fonts

Alternatively, you can download the CSS and/or font files from the releases page of this repository and embed them in your project using the best approach for the target platform.

Building from source

If you want to generate the font files by yourself, clone this repository, go to it's directory, and initialize it's submodules with the following git command:

git submodule update --init

Also, you need to download the script's dependencies by executing:

npm install

Before running the script, you may want to update the assets:

cd fluentui-system-icons
git pull origin master

Then go back to the script directory:

cd ..

From now on, you can run the script using Node.js by typing:

node .

It may take a while to generate all font files, but when it's done, they will be located at the webfonts folder.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap