parse-bmfont-binary

WebJar for parse-bmfont-binary

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

parse-bmfont-binary
Последняя версия

Последняя версия

1.0.6
Дата

Дата

Тип

Тип

jar
Описание

Описание

parse-bmfont-binary
WebJar for parse-bmfont-binary
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/Jam3/parse-bmfont-binary

Скачать parse-bmfont-binary

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/parse-bmfont-binary/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>parse-bmfont-binary</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/parse-bmfont-binary/
implementation 'org.webjars.npm:parse-bmfont-binary:1.0.6'
// https://jarcasting.com/artifacts/org.webjars.npm/parse-bmfont-binary/
implementation ("org.webjars.npm:parse-bmfont-binary:1.0.6")
'org.webjars.npm:parse-bmfont-binary:jar:1.0.6'
<dependency org="org.webjars.npm" name="parse-bmfont-binary" rev="1.0.6">
  <artifact name="parse-bmfont-binary" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='parse-bmfont-binary', version='1.0.6')
)
libraryDependencies += "org.webjars.npm" % "parse-bmfont-binary" % "1.0.6"
[org.webjars.npm/parse-bmfont-binary "1.0.6"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

parse-bmfont-binary

stable

Encodes a BMFont from a binary Buffer into JSON, as per the BMFont Spec. Can be used in Node or the browser (e.g. with browserify).

var parse = require('parse-bmfont-binary')

fs.readFile('fonts/Lato.bin', function(err, data) {
  if (err) throw err
  var font = parse(data)
  
  //do something with your font
  console.log(font.info.face)
  console.log(font.info.size)
  console.log(font.common.lineHeight)
  console.log(font.chars)
  console.log(font.kernings)
})

See Also

See text-modules for related modules.

Usage

NPM

font = parse(buffer)

Reads a binary BMFont Buffer and returns a new JSON representation of that font. See here for details on the return format.

License

MIT, see LICENSE.md for details.

org.webjars.npm

Jam3

We create modern experiences for tomorrow’s brands

Версии библиотеки

Версия
1.0.6
1.0.5