Liking cljdoc? Tell your friends :D

infinitelives.pixi.font


batch-addcljs

(batch-add batch [x y] text)

starting at position 'pos', add all the letters so that the string text appears. Return the next render position for the next character.

starting at position 'pos', add all the letters so that the
string text appears. Return the next render position for the next character.
sourceraw docstring

calculate-font-layout-sizecljs

(calculate-font-layout-size rows)
source

font-char-sub-texturecljs

(font-char-sub-texture font ch)
source

font-make-batchcljs

(font-make-batch font text & {:keys [x y] :or {x 0 y 0} :as options})
source

font-metricscljs

(font-metrics font-str)
source

font-text-widthcljs

(font-text-width font text)
source

googlecljs

(google [font & rest])

Load in one or more specified google font by name

Load in one or more specified google font by name
sourceraw docstring

install-force-loading-font-div!cljs

(install-force-loading-font-div! fontname)
source

install-google-font-dom-anchor!cljs

(install-google-font-dom-anchor! font-family)
source

install-google-font-stylesheet!cljs

(install-google-font-stylesheet! url)
source

install-google-webfont-script!cljs

(install-google-webfont-script!)
source

load-font-js-metricscljs

(load-font-js-metrics url size)

returns a channel that receives the metrics hashmap once the font is loaded and processed by Font.js. url is either a url to a ttf or otf. Or a system font definition size is in pixels

returns a channel that receives the metrics hashmap
once the font is loaded and processed by Font.js.
url is either a url to a ttf or otf. Or a system font definition
size is in pixels
sourceraw docstring

make-rowset-sizescljs

(make-rowset-sizes metrics chars)
source

make-textcljs

(make-text font
           str
           &
           {:keys [fill align style weight stroke strokeThickness dropShadow
                   dropShadowColor dropShadowDistance x y]
            :or {dropShadowDistance 5
                 align "left"
                 stroke "#ffffff"
                 dropShadowColor "#444444"
                 fill "#ffffff"
                 dropShadow false
                 style "normal"
                 weight 400
                 strokeThickness 0}})

Make a PIXI.Text object using font and string and default settings

Make a PIXI.Text object using font and string and default settings
sourceraw docstring

make-tiled-fontcljs

(make-tiled-font family weight size)
source

printable-characterscljs

source

render-rowcljs

(render-row metrics texture row y)
source

render-texture-char!cljs

(render-texture-char! rtex metrics char x y)

render a char at position [x y] onto a RenderTexture. returns that RenderTexture. Mutates RenderTexture

render a char at position [x y] onto a RenderTexture.
returns that RenderTexture. Mutates RenderTexture
sourceraw docstring

render-tiled-font-texturecljs

(render-tiled-font-texture metrics texture line-height)
source

text-heightcljs

(text-height metrics text)
source

text-widthcljs

(text-width metrics text)
source

x-positioncljs

(x-position metrics row i)

given a string, and the index of the charater to render in the string, return its x position of rendering (by adding up previous characters sizes

given a string, and the index of the charater to render in
the string, return its x position of rendering (by adding up
previous characters sizes
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close