Liking cljdoc? Tell your friends :D

clj-pdf.graphics-2d


common-font-dirsclj

source

default-font-mapperclj

source

g2d-fonts-registered?clj

source

g2d-register-fontsclj

(g2d-register-fonts & [font-dirs])

Walks common font directories and registers them for use. Optionally accepts a coll of absolute directories to register each with a subdirectory walk directive, in the form of 'common-font-dirs'. Eval with custom fonts solely to override system fonts. Eval empty first then again with custom fonts to augment system fonts.

Walks common font directories and registers them for use. Optionally
accepts a coll of absolute directories to register each with a
subdirectory walk directive, in the form of 'common-font-dirs'. Eval
with custom fonts solely to override system fonts.  Eval empty first
then again with custom fonts to augment system fonts.
sourceraw docstring

g2d-register-fonts-helperclj

(g2d-register-fonts-helper dir recursive)
source

get-font-mapsclj

(get-font-maps)

Returns a map with :mapper and :aliases keys, each with a Java HashMap as a val. :mapper connects available AWT font names each to a PDF font object. :aliases connects alternate names each to a AWT font name. Names (strings) in either HashMap can be used in a :graphics element's .setFont directive. Will register common system font directories if not already registered.

Returns a map with :mapper and :aliases keys, each with a Java HashMap as a val.
:mapper connects available AWT font names each to a PDF font object.
:aliases connects alternate names each to a AWT font name.
Names (strings) in either HashMap can be used in a :graphics element's .setFont directive.
Will register common system font directories if not already registered.
sourceraw docstring

with-graphicsclj

(with-graphics {:keys [pdf-writer page-width page-height font-mapper under
                       translate rotate scale]}
               f)
source

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

× close