1 |
# Configuration file for XHTMLRenderer core |
# comments have been removed from this file to reduce its size; please see |
2 |
# |
# https://xhtmlrenderer.dev.java.net/source/browse/xhtmlrenderer/src/conf/xhtmlrenderer.conf |
3 |
# Follows formatting specified in JavaDoc for java.util.Properties |
# Based on $Id: xhtmlrenderer.conf,v 1.49 2009/03/22 15:13:23 pdoubleya Exp $ |
|
# key = value |
|
|
# |
|
|
# If you define a key in this file, the later one will be used |
|
|
# Comments are ignored, start the line with a # sign. |
|
|
# Feel free to comment liberally |
|
|
# |
|
|
# Naming convention: prefix all keys with |
|
|
# xr. |
|
|
# e.g. xr.render-speed = SUPER_FAST |
|
4 |
|
|
|
# CSS / CASCADE |
|
|
# |
|
|
# Location of user-agent "default" CSS for renderer |
|
5 |
xr.css.user-agent-default-css = /resources/css/ |
xr.css.user-agent-default-css = /resources/css/ |
6 |
|
|
|
# Format for logging when XRSimpleLogFormatter is used as the log output |
|
|
# formatter. The format string for this key follows |
|
|
# java.text.MessageFormat. The following replaceable parameters are |
|
|
# substituted into the output message string; you can use one, all--at a |
|
|
# minimum, you probably want the log record message. A newline is |
|
|
# automatically added at the end of each message. |
|
|
# |
|
|
# {0} String.valueOf(record.getMillis()), |
|
|
# {1} record.getLoggerName(), |
|
|
# {2} record.getLevel().toString(), |
|
|
# {3} record.getSourceClassName(), |
|
|
# {4} record.getSourceMethodName(), |
|
|
# {5} record.getMessage() |
|
|
# {6} record.getThrown().getName() |
|
|
# {7} record.getThrown().getMessage() |
|
|
# {8} record.getThrown() stack trace |
|
|
# |
|
|
# Two formats, for with and without exception |
|
|
xr.simple-log-format = {1} {2}:: {5} |
|
|
xr.simple-log-format-throwable = {1} {2}:: {5} |
|
|
|
|
|
|
|
|
# Values used for testing Configuration, do not modify |
|
|
xr.test-config-byte = 8 |
|
|
xr.test-config-short = 16 |
|
|
xr.test-config-int = 100 |
|
|
xr.test-config-long = 2000 |
|
|
xr.test-config-float = 3000.25F |
|
|
xr.test-config-double = 4000.50D |
|
|
xr.test-config-boolean = true |
|
|
|
|
|
|
|
|
# XR logging behavior. Follows conventions in |
|
|
# java.util.logging.LogManager. See there for details. |
|
|
# |
|
|
# The prefix for all entries here should be |
|
|
# xr.util-logging. |
|
|
|
|
|
# |
|
7 |
# ENABLE OR DISABLE ALL LOGGING |
# ENABLE OR DISABLE ALL LOGGING |
|
# set to false to turn all Flying Saucer logging off, regardless of |
|
|
# other settings; corresponds to static method XRLog.setLoggingEnabled(bool); |
|
|
# |
|
8 |
xr.util-logging.loggingEnabled=false |
xr.util-logging.loggingEnabled=false |
9 |
|
xr.simple-log-format = {1} {2}:: {5} |
10 |
# Handlers |
xr.simple-log-format-throwable = {1} {2}:: {5} |
|
# See JDK documentation for the Logging API; this is a space-separated list of class names that extend the |
|
|
# java.util.logging.Handler class. Each class named here will be instantiated and assigned to the each FS |
|
|
# logger (not the root logger, as the JDK log-properties load mechanism would do it). |
|
11 |
xr.util-logging.handlers=java.util.logging.ConsoleHandler |
xr.util-logging.handlers=java.util.logging.ConsoleHandler |
|
|
|
|
# Whether our loggers should send their log messages to their parent's handlers as well |
|
|
# In our case, we don't want this, because our log messages will be sent to the handlers |
|
|
# of the root logger, which will log the message as well |
|
12 |
xr.util-logging.use-parent-handler=false |
xr.util-logging.use-parent-handler=false |
|
|
|
|
# Log level--you can assign a log level to the handler which processes log messages. |
|
|
# By default, we assign a level to the console handler we attach to our loggers. |
|
|
# See the JDK Logging API documentation. |
|
|
# |
|
|
# The default logging level for new ConsoleHandler instances |
|
13 |
xr.util-logging.java.util.logging.ConsoleHandler.level=INFO |
xr.util-logging.java.util.logging.ConsoleHandler.level=INFO |
|
|
|
|
# Log formatter--you can assign a class to format the output of log messages. |
|
|
# Each instance is assigned to a log Handler *which must be one of those listed in the handlers property |
|
|
# above. |
|
|
# |
|
|
# The default formatter for new ConsoleHandler instances. |
|
|
# Default for the JDK, uncomment to use. |
|
|
# java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter |
|
|
# XR log formatter |
|
14 |
xr.util-logging.java.util.logging.ConsoleHandler.formatter=org.xhtmlrenderer.util.XRSimpleLogFormatter |
xr.util-logging.java.util.logging.ConsoleHandler.formatter=org.xhtmlrenderer.util.XRSimpleLogFormatter |
15 |
|
|
|
# Log levels |
|
|
# NOTE: the name of this property is .level in the logging spec, hence the two .. |
|
|
xr.util-logging.org.xhtmlrenderer.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.config.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.exception.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.general.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.init.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.load.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.load.xml-entities.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.match.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.cascade.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.css-parse.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.layout.level = ALL |
|
|
xr.util-logging.org.xhtmlrenderer.render.level = ALL |
|
|
|
|
|
|
|
|
# resource loading |
|
|
# full classname for the SAX parser to use; should be an implementation |
|
|
# of org.xml.sax.XMLReader |
|
|
# leave blank or "default" to use JDK default parser |
|
|
# |
|
|
# piccolo: com.bluecast.xml.Piccolo |
|
|
# tagsoup: org.ccil.cowan.tagsoup.Parser |
|
16 |
xr.load.xml-reader=default |
xr.load.xml-reader=default |
|
|
|
|
# : parser features |
|
|
# |
|
|
# not all features are supported by all parsers. if the feature is not supported |
|
|
# , but you request it, the parser will throw an exception and FS will just log that |
|
|
# and keep going. check logs to see if you need to turn these features off. you can |
|
|
# skip all features by setting configure-features to false |
|
|
|
|
|
# whether features should be set at all |
|
17 |
xr.load.configure-features=false |
xr.load.configure-features=false |
|
|
|
|
# whether pages should be validated against DTD or schema |
|
|
# ! careful: this will be very picky; pages will be rejected |
|
|
# NOTE! Piccolo will throw an error if validation is on--not supported |
|
18 |
xr.load.validation=false |
xr.load.validation=false |
|
|
|
|
# whether parser should try to use string.intern |
|
|
# this is experimental, currently only for developers |
|
|
# NOTE!: Piccolo will throw an error if interning is set to true--strings auto-intern'd |
|
19 |
xr.load.string-interning=false |
xr.load.string-interning=false |
|
|
|
|
# namespace support works such that one of the two features must be true, and the other false |
|
|
# |
|
|
# whether parser should pass namespace info in during parsing |
|
|
# this is experimental, currently only for developers |
|
20 |
xr.load.namespaces=false |
xr.load.namespaces=false |
|
|
|
|
# whether parser should pass namespace attributes declaration attributes during parsing |
|
|
# this is experimental, currently only for developers |
|
21 |
xr.load.namespace-prefixes=false |
xr.load.namespace-prefixes=false |
22 |
|
|
23 |
# layout controls |
# layout controls |
24 |
xr.layout.whitespace.experimental = true |
xr.layout.whitespace.experimental = true |
25 |
xr.layout.bad-sizing-hack = false |
xr.layout.bad-sizing-hack = false |
|
|
|
26 |
# rendering controls |
# rendering controls |
27 |
xr.renderer.viewport-repaint=true |
xr.renderer.viewport-repaint=true |
28 |
xr.renderer.draw.backgrounds = true |
xr.renderer.draw.backgrounds = true |
29 |
xr.renderer.draw.borders = true |
xr.renderer.draw.borders = true |
30 |
xr.renderer.debug.box-outlines = false |
xr.renderer.debug.box-outlines = false |
|
|
|
|
# text rendering controls using Java2D renderer (default when rendering to Swing panels) |
|
|
# scaling factor for rendering text; 1.25 would be "25% larger than default" |
|
31 |
# was originally 1.0, use 0.9 to get same as JEditorPane |
# was originally 1.0, use 0.9 to get same as JEditorPane |
32 |
xr.text.scale=0.9 |
xr.text.scale=0.9 |
|
|
|
|
# at what font-size should AA kick in. for older JVMs AA is very expensive and slow--set this to |
|
|
# a high value (like 25); for JDK 6, smoke tests show that AA is basically low-cost for Flying Saucer |
|
|
# we set it to a high value for the benefit of users still on JDK 1.4 |
|
33 |
xr.text.aa-fontsize-threshhold=25 |
xr.text.aa-fontsize-threshhold=25 |
|
|
|
|
# when using Java2D for rendering, hint to renderer for AA algorithm to use |
|
34 |
xr.text.aa-rendering-hint=RenderingHints.VALUE_TEXT_ANTIALIAS_HGRB |
xr.text.aa-rendering-hint=RenderingHints.VALUE_TEXT_ANTIALIAS_HGRB |
|
|
|
|
# whether or not to cache stylesheets |
|
|
# note that there is currently no way to remove |
|
|
# stylesheets from the cache |
|
35 |
xr.cache.stylesheets=false |
xr.cache.stylesheets=false |
|
|
|
|
### a bunch of properties used to turn on and off the incremental |
|
|
###layout features |
|
36 |
xr.incremental.enabled=false |
xr.incremental.enabled=false |
|
|
|
|
# use lazy asynchronous image resources instead of normal synchronous ones |
|
37 |
xr.incremental.lazyimage = false |
xr.incremental.lazyimage = false |
|
|
|
|
# adds a per block delay of N milleseconds |
|
38 |
xr.incremental.debug.layoutdelay=0 |
xr.incremental.debug.layoutdelay=0 |
|
|
|
|
# prints how long each repaint takes |
|
39 |
xr.incremental.repaint.print-timing=false |
xr.incremental.repaint.print-timing=false |
|
|
|
|
# whether or not the threads be used |
|
|
# if false, xr.incremental.enabled is also |
|
|
# implicitly false |
|
40 |
xr.use.threads=false |
xr.use.threads=false |
|
|
|
|
# whether or not link and hover listeners will be used. |
|
41 |
xr.use.listeners=true |
xr.use.listeners=true |
|
|
|
|
# if BufferedImage should be use |
|
|
# Note: On VMs and platforms with the most up-to-date acceleration techniques, |
|
|
# BufferedImage performs better, but there were serious performance |
|
|
# regressions due to differences in when/if images are accelerated or |
|
|
# not by the VM. In particular, we observed some serious regressions on |
|
|
# Windows even on simple pages like our splash screen. See |
|
|
# https://xhtmlrenderer.dev.java.net/servlets/ReadMsg?list=dev&msgNo=3307 |
|
|
# defaults to false |
|
42 |
xr.image.buffered=false |
xr.image.buffered=false |
43 |
|
xr.image.scale=MID |
|
# image loading |
|
|
# on loading images that need to be scaled |
|
|
# on scaling, whether to use LOW, MID or HIGH-quality process. defaults to HIGH |
|
|
xr.image.scale=LOW |
|
|
|
|
|
# on scaling, what rendering hints to use; must be one of the rendering hints that corresponds to |
|
|
# RenderingHints.KEY_INTERPOLATION (e.g. RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
|
|
# VALUE_INTERPOLATION_BILINEAR or VALUE_INTERPOLATION_BICUBIC. Defaults to NEAREST_NEIGHBOR |
|
44 |
xr.image.render-quality=java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
xr.image.render-quality=java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
|
|
|
|
# Based on $Id: xhtmlrenderer.conf,v 1.49 2009/03/22 15:13:23 pdoubleya Exp $ |
|