(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.
(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.
(with-graphics {:keys [pdf-writer page-width page-height font-mapper under
translate rotate scale]}
f)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close