From 93eeae2118d353c7a63ee514617adb8f83650e44 Mon Sep 17 00:00:00 2001 From: amontano Date: Sat, 23 Nov 2002 21:13:47 +0000 Subject: [PATCH] Fixed bug that recently made it crash. Enabled the property thdl.rely.on.system.tmw.fonts before the production of TibetanMachineWeb HTML. This avoids the call to readInFontFiles() within the TibetanMachineWeb class (which raises an exception when it cannot find for whatever reason the fonts). The servlet doesn't need to load the fonts anyway! --- source/org/thdl/tib/scanner/OnLineScannerFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/org/thdl/tib/scanner/OnLineScannerFilter.java b/source/org/thdl/tib/scanner/OnLineScannerFilter.java index 0cabcb3..bcde309 100644 --- a/source/org/thdl/tib/scanner/OnLineScannerFilter.java +++ b/source/org/thdl/tib/scanner/OnLineScannerFilter.java @@ -49,7 +49,9 @@ public class OnLineScannerFilter extends HttpServlet { HttpServletResponse response) throws IOException, ServletException { + // if this line is included in the constructor, it works on the iris server but not on wyllie! ThdlOptions.setUserPreference("thdl.rely.on.system.tmw.fonts", true); + response.setContentType("text/html"); PrintWriter out = response.getWriter(); String parrafo = request.getParameter("parrafo"), checkboxName, script;