Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
nuke-iconfont
Advanced tools
Iconfont 是与 web iconfont 类似的能力,用于设置 iconfont。
Iconfont 资源可以从 iconfont.cn 等多个平台导出。
本组件目前只支持单色的 ttf 文件,暂不支持 svg 格式。
注意 Weex 容器内,如果 iconfont 资源如果从远程拉取,可能会存在首次渲染无法成功的情况,如果对 icon 展现要求较高,请使用图片,或实现客户端对字体资源预加载 (或客户端预置),以避免出现此问题。
Iconfont({
name: 'your-unique-font-name',
url: 'https://at.alicdn.com/t/font_1474198576_7440977.ttf'
});
// \u 写法,code 需为变量
const code = '\ue60f';
<Text style={{ fontSize: 40, fontFamily: 'your-unique-font-name' }}>{code}</Text>;
// 或者不用任何变量
<Text style={{ fontSize: 40, fontFamily: 'your-unique-font-name' }}></Text>;
ttf
与 woff
格式const { formatUnicode } = Iconfont;
formatUnicode(''); //\ue600
用于将 unicode 转换为 weex 和 H5 同时能够使用的实体字符格式;
FAQs
iconfont
The npm package nuke-iconfont receives a total of 23 weekly downloads. As such, nuke-iconfont popularity was classified as not popular.
We found that nuke-iconfont demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.