font-atlas

WebJar for font-atlas

Лицензия

Лицензия

MIT
Группа

Группа

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

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

font-atlas
Последняя версия

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

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

font-atlas
WebJar for font-atlas
Ссылка на сайт

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

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

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

https://github.com/hughsk/font-atlas

Скачать font-atlas

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : css-font jar [1.0.0,2)

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

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

font-atlas experimental

Populate a <canvas> element with a font texture atlas – can be used to quickly generate bitmap fonts.

Usage

NPM

canvas = fontAtlas([options])

Populates and returns a <canvas> element with a font texture atlas. Takes the following options:

  • canvas: use an existing <canvas> element. By default, a new one will be created for you.
  • font: the font family to use when drawing the text. Can be a css font string or an object with font properties: size, family, style, weight, variant, stretch.
  • shape: an array containing the [width, height] for the canvas in pixels. Default: [512, 512].
  • step: an array containing the [width, height] for each cell in pixels. Default: [32, 32].
  • chars: may be one of either:
    • a string containing all of the characters to use.
    • an array of all the characters to use.
    • an array specifying the [start, end] character codes to use. By default, this is [32, 126].

See also

License

MIT. See LICENSE.md for details.

font-atlas

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

Версия
2.1.0