subsetty
1.0.0
การตั้งค่าแบบอักษรย่อยสำหรับโหนดโดยใช้เครื่องมือฟอนต์
npm install subsetty
เซตย่อยรับสองอาร์กิวเมนต์ แบบอักษรและข้อความเซตย่อย ข้อความเซ็ตย่อยได้รับการกรองด้วย Ramda join('', uniq(subset))
จะกำจัดอักขระที่ซ้ำกันทั้งหมด
ต้องใช้ Python 2.7, 3.4 หรือใหม่กว่า!
import { subset , toWoff } from './index'
subset ( buffer , 'hello world' )
. then ( font => /* do something with the font buffer */ )
toWoff ( buffer )
. then ( font => /* do something with the font buffer */ )