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 diff
1.1 --- a/src/net/kryshen/indyvon/core.clj Thu Apr 12 23:15:50 2012 +0400 1.2 +++ b/src/net/kryshen/indyvon/core.clj Fri Apr 13 04:25:18 2012 +0400 1.3 @@ -34,8 +34,12 @@ 1.4 1.5 (def ^:dynamic ^Graphics2D *graphics*) 1.6 1.7 -(def ^:dynamic ^:private ^FontRenderContext *font-context* 1.8 - "FontRenderContext to use when Graphics2D is not available.") 1.9 +(def ^:dynamic ^FontRenderContext *font-context* 1.10 + "FontRenderContext to use when Graphics2D is not available." 1.11 + (FontRenderContext. 1.12 + nil 1.13 + RenderingHints/VALUE_TEXT_ANTIALIAS_DEFAULT 1.14 + RenderingHints/VALUE_FRACTIONALMETRICS_DEFAULT)) 1.15 1.16 (def ^:dynamic *width* 1.17 "Width of the rendering area.")