字体::paintbrush:用于字体栅格化的简单deno模块 源码

quality3392 14 0 ZIP 2021-02-21 17:02:02

字形 这是一个简单的deno模块,提供wasm绑定到以进行字体光栅化和布局,并支持TrueType( .ttf/.ttc )和OpenType( .otf )。 例 栅格化 import { Font } from "https://deno.land/x/font/mod.ts" ; // Read the font data. const data = await Deno . readFile ( "../Roboto-Regular.ttf" ) ; // Parse it into the font type. const font = new Font ( fon

用户评论
请输入评论内容
评分:
暂无评论