1. 首页
  2. 数据库
  3. 其它
  4. 字体::paintbrush:用于字体栅格化的简单deno模块 源码

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

上传者: 2021-02-21 17:23:02上传 ZIP文件 97.87KB 热度 15次
字形 这是一个简单的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
下载地址
用户评论