1 |
# Configuration file for XHTMLRenderer core |
2 |
# |
3 |
# Follows formatting specified in JavaDoc for java.util.Properties |
4 |
# key = value |
5 |
# |
6 |
# If you define a key in this file, the later one will be used |
7 |
# Comments are ignored, start the line with a # sign. |
8 |
# Feel free to comment liberally |
9 |
# |
10 |
# Naming convention: prefix all keys with |
11 |
# xr. |
12 |
# e.g. xr.render-speed = SUPER_FAST |
13 |
|
14 |
# CSS / CASCADE |
15 |
# |
16 |
# Location of user-agent "default" CSS for renderer |
17 |
xr.css.user-agent-default-css = /resources/css/ |
18 |
|
19 |
# Format for logging when XRSimpleLogFormatter is used as the log output |
20 |
# formatter. The format string for this key follows |
21 |
# java.text.MessageFormat. The following replaceable parameters are |
22 |
# substituted into the output message string; you can use one, all--at a |
23 |
# minimum, you probably want the log record message. A newline is |
24 |
# automatically added at the end of each message. |
25 |
# |
26 |
# {0} String.valueOf(record.getMillis()), |
27 |
# {1} record.getLoggerName(), |
28 |
# {2} record.getLevel().toString(), |
29 |
# {3} record.getSourceClassName(), |
30 |
# {4} record.getSourceMethodName(), |
31 |
# {5} record.getMessage() |
32 |
# {6} record.getThrown().getName() |
33 |
# {7} record.getThrown().getMessage() |
34 |
# {8} record.getThrown() stack trace |
35 |
# |
36 |
# Two formats, for with and without exception |
37 |
xr.simple-log-format = {1} {2}:: {5} |
38 |
xr.simple-log-format-throwable = {1} {2}:: {5} |
39 |
|
40 |
|
41 |
# Values used for testing Configuration, do not modify |
42 |
xr.test-config-byte = 8 |
43 |
xr.test-config-short = 16 |
44 |
xr.test-config-int = 100 |
45 |
xr.test-config-long = 2000 |
46 |
xr.test-config-float = 3000.25F |
47 |
xr.test-config-double = 4000.50D |
48 |
xr.test-config-boolean = true |
49 |
|
50 |
|
51 |
# XR logging behavior. Follows conventions in |
52 |
# java.util.logging.LogManager. See there for details. |
53 |
# |
54 |
# The prefix for all entries here should be |
55 |
# xr.util-logging. |
56 |
|
57 |
# |
58 |
# ENABLE OR DISABLE ALL LOGGING |
59 |
# set to false to turn all Flying Saucer logging off, regardless of |
60 |
# other settings; corresponds to static method XRLog.setLoggingEnabled(bool); |
61 |
# |
62 |
xr.util-logging.loggingEnabled=false |
63 |
|
64 |
# Handlers |
65 |
# See JDK documentation for the Logging API; this is a space-separated list of class names that extend the |
66 |
# java.util.logging.Handler class. Each class named here will be instantiated and assigned to the each FS |
67 |
# logger (not the root logger, as the JDK log-properties load mechanism would do it). |
68 |
xr.util-logging.handlers=java.util.logging.ConsoleHandler |
69 |
|
70 |
# Whether our loggers should send their log messages to their parent's handlers as well |
71 |
# In our case, we don't want this, because our log messages will be sent to the handlers |
72 |
# of the root logger, which will log the message as well |
73 |
xr.util-logging.use-parent-handler=false |
74 |
|
75 |
# Log level--you can assign a log level to the handler which processes log messages. |
76 |
# By default, we assign a level to the console handler we attach to our loggers. |
77 |
# See the JDK Logging API documentation. |
78 |
# |
79 |
# The default logging level for new ConsoleHandler instances |
80 |
xr.util-logging.java.util.logging.ConsoleHandler.level=INFO |
81 |
|
82 |
# Log formatter--you can assign a class to format the output of log messages. |
83 |
# Each instance is assigned to a log Handler *which must be one of those listed in the handlers property |
84 |
# above. |
85 |
# |
86 |
# The default formatter for new ConsoleHandler instances. |
87 |
# Default for the JDK, uncomment to use. |
88 |
# java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter |
89 |
# XR log formatter |
90 |
xr.util-logging.java.util.logging.ConsoleHandler.formatter=org.xhtmlrenderer.util.XRSimpleLogFormatter |
91 |
|
92 |
# Log levels |
93 |
# NOTE: the name of this property is .level in the logging spec, hence the two .. |
94 |
xr.util-logging.org.xhtmlrenderer.level = ALL |
95 |
xr.util-logging.org.xhtmlrenderer.config.level = ALL |
96 |
xr.util-logging.org.xhtmlrenderer.exception.level = ALL |
97 |
xr.util-logging.org.xhtmlrenderer.general.level = ALL |
98 |
xr.util-logging.org.xhtmlrenderer.init.level = ALL |
99 |
xr.util-logging.org.xhtmlrenderer.load.level = ALL |
100 |
xr.util-logging.org.xhtmlrenderer.load.xml-entities.level = ALL |
101 |
xr.util-logging.org.xhtmlrenderer.match.level = ALL |
102 |
xr.util-logging.org.xhtmlrenderer.cascade.level = ALL |
103 |
xr.util-logging.org.xhtmlrenderer.css-parse.level = ALL |
104 |
xr.util-logging.org.xhtmlrenderer.layout.level = ALL |
105 |
xr.util-logging.org.xhtmlrenderer.render.level = ALL |
106 |
|
107 |
|
108 |
# resource loading |
109 |
# full classname for the SAX parser to use; should be an implementation |
110 |
# of org.xml.sax.XMLReader |
111 |
# leave blank or "default" to use JDK default parser |
112 |
# |
113 |
# piccolo: com.bluecast.xml.Piccolo |
114 |
# tagsoup: org.ccil.cowan.tagsoup.Parser |
115 |
xr.load.xml-reader=default |
116 |
|
117 |
# : parser features |
118 |
# |
119 |
# not all features are supported by all parsers. if the feature is not supported |
120 |
# , but you request it, the parser will throw an exception and FS will just log that |
121 |
# and keep going. check logs to see if you need to turn these features off. you can |
122 |
# skip all features by setting configure-features to false |
123 |
|
124 |
# whether features should be set at all |
125 |
xr.load.configure-features=false |
126 |
|
127 |
# whether pages should be validated against DTD or schema |
128 |
# ! careful: this will be very picky; pages will be rejected |
129 |
# NOTE! Piccolo will throw an error if validation is on--not supported |
130 |
xr.load.validation=false |
131 |
|
132 |
# whether parser should try to use string.intern |
133 |
# this is experimental, currently only for developers |
134 |
# NOTE!: Piccolo will throw an error if interning is set to true--strings auto-intern'd |
135 |
xr.load.string-interning=false |
136 |
|
137 |
# namespace support works such that one of the two features must be true, and the other false |
138 |
# |
139 |
# whether parser should pass namespace info in during parsing |
140 |
# this is experimental, currently only for developers |
141 |
xr.load.namespaces=false |
142 |
|
143 |
# whether parser should pass namespace attributes declaration attributes during parsing |
144 |
# this is experimental, currently only for developers |
145 |
xr.load.namespace-prefixes=false |
146 |
|
147 |
# layout controls |
148 |
xr.layout.whitespace.experimental = true |
149 |
xr.layout.bad-sizing-hack = false |
150 |
|
151 |
# rendering controls |
152 |
xr.renderer.viewport-repaint=true |
153 |
xr.renderer.draw.backgrounds = true |
154 |
xr.renderer.draw.borders = true |
155 |
xr.renderer.debug.box-outlines = false |
156 |
|
157 |
# text rendering controls using Java2D renderer (default when rendering to Swing panels) |
158 |
# scaling factor for rendering text; 1.25 would be "25% larger than default" |
159 |
# was originally 1.0, use 0.9 to get same as JEditorPane |
160 |
xr.text.scale=0.9 |
161 |
|
162 |
# at what font-size should AA kick in. for older JVMs AA is very expensive and slow--set this to |
163 |
# a high value (like 25); for JDK 6, smoke tests show that AA is basically low-cost for Flying Saucer |
164 |
# we set it to a high value for the benefit of users still on JDK 1.4 |
165 |
xr.text.aa-fontsize-threshhold=25 |
166 |
|
167 |
# when using Java2D for rendering, hint to renderer for AA algorithm to use |
168 |
xr.text.aa-rendering-hint=RenderingHints.VALUE_TEXT_ANTIALIAS_HGRB |
169 |
|
170 |
# whether or not to cache stylesheets |
171 |
# note that there is currently no way to remove |
172 |
# stylesheets from the cache |
173 |
xr.cache.stylesheets=false |
174 |
|
175 |
### a bunch of properties used to turn on and off the incremental |
176 |
###layout features |
177 |
xr.incremental.enabled=false |
178 |
|
179 |
# use lazy asynchronous image resources instead of normal synchronous ones |
180 |
xr.incremental.lazyimage = false |
181 |
|
182 |
# adds a per block delay of N milleseconds |
183 |
xr.incremental.debug.layoutdelay=0 |
184 |
|
185 |
# prints how long each repaint takes |
186 |
xr.incremental.repaint.print-timing=false |
187 |
|
188 |
# whether or not the threads be used |
189 |
# if false, xr.incremental.enabled is also |
190 |
# implicitly false |
191 |
xr.use.threads=false |
192 |
|
193 |
# whether or not link and hover listeners will be used. |
194 |
xr.use.listeners=true |
195 |
|
196 |
# if BufferedImage should be use |
197 |
# Note: On VMs and platforms with the most up-to-date acceleration techniques, |
198 |
# BufferedImage performs better, but there were serious performance |
199 |
# regressions due to differences in when/if images are accelerated or |
200 |
# not by the VM. In particular, we observed some serious regressions on |
201 |
# Windows even on simple pages like our splash screen. See |
202 |
# https://xhtmlrenderer.dev.java.net/servlets/ReadMsg?list=dev&msgNo=3307 |
203 |
# defaults to false |
204 |
xr.image.buffered=false |
205 |
|
206 |
# image loading |
207 |
# on loading images that need to be scaled |
208 |
# on scaling, whether to use LOW, MID or HIGH-quality process. defaults to HIGH |
209 |
xr.image.scale=LOW |
210 |
|
211 |
# on scaling, what rendering hints to use; must be one of the rendering hints that corresponds to |
212 |
# RenderingHints.KEY_INTERPOLATION (e.g. RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
213 |
# VALUE_INTERPOLATION_BILINEAR or VALUE_INTERPOLATION_BICUBIC. Defaults to NEAREST_NEIGHBOR |
214 |
xr.image.render-quality=java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
215 |
|
216 |
# Based on $Id: xhtmlrenderer.conf,v 1.49 2009/03/22 15:13:23 pdoubleya Exp $ |