Mercurial > hg > indyvon
changeset 129:137e64553123
Added root binding for *font-context*.
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Fri, 13 Apr 2012 04:25:18 +0400 |
parents | d37d6c5b3b08 |
children | 43f78efe0903 |
files | src/net/kryshen/indyvon/core.clj |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/net/kryshen/indyvon/core.clj Thu Apr 12 23:15:50 2012 +0400 +++ b/src/net/kryshen/indyvon/core.clj Fri Apr 13 04:25:18 2012 +0400 @@ -34,8 +34,12 @@ (def ^:dynamic ^Graphics2D *graphics*) -(def ^:dynamic ^:private ^FontRenderContext *font-context* - "FontRenderContext to use when Graphics2D is not available.") +(def ^:dynamic ^FontRenderContext *font-context* + "FontRenderContext to use when Graphics2D is not available." + (FontRenderContext. + nil + RenderingHints/VALUE_TEXT_ANTIALIAS_DEFAULT + RenderingHints/VALUE_FRACTIONALMETRICS_DEFAULT)) (def ^:dynamic *width* "Width of the rendering area.")