glyph-pbf
v2.2.7
Published
Compress glyph data into a protobuf and back again.
Downloads
58
Readme
glyph-pbf
About
Create new modules with this skeleton
# grab the package
git clone https://github.com/Regia/glyph-pbf.git
# remove the origin
git remote rm origin
# download the dependencies
yarn
Example use
// ES6
import buildFonts from 'glyph-pbf/buildFonts'
// ES5
const buildFonts = require('glyph-pbf/buildFonts').default
// buildFonts([inputFile, inputFile], outputFileName)
buildFonts([{ path: './testFonts/NotoSans-Regular.ttf' }, { path: './testFonts/arial-unicode-ms.ttf' }], './default.pbf')
MSDF Experiments
- The total cost for all glyph data would be very high, but could be sent in pieces
- Both cases should be in pieces
msdf-bmfont -o ./robotoMedium.png -f json -s 24 --smart-size ./testFonts/Roboto-Medium.ttf
ISC License (ISC)
Copyright 2019 Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC") Copyright (c) 1995-2003 by Internet Software Consortium
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.