play-cljc.text

(->baked-font path font-height bitmap)

(->baked-font path font-height bitmap first-char char-buffer-size)

Returns a map containing all the info needed to crop letters out of a font atlas.

(->bitmap bitmap-width bitmap-height)

Returns a map containing a java.nio.ByteBuffer that can store a bitmap of the given dimensions.

(bitmap->data-uri {:keys [data width height], :as bitmap})

Returns a string containing a data URI for the given bitmap.