-
-
- Something went wrong with that request. Please try again.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You signed in with another tab or window. Reload to refresh your session.
- You signed out in another tab or window. Reload to refresh your session.
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/cc/char_indexingtool/MergedFont.java b/src/cc/char_indexingtool/MergedFont.java
index b91bbc1..c4ae278 100644
--- a/src/cc/char_indexingtool/MergedFont.java
+++ b/src/cc/char_indexingtool/MergedFont.java
@@ -86,12 +86,13 @@ public MergedFont(String[] 字體位置)
{
try
{
- //String fontpath=getServletContext().getRealPath (字體位置[i]);
- File 工作目錄= new File(this.getClass().getResource("/").getPath() );
- System.out.println("工作目錄="+工作目錄);
- 字體集[i] = Font.createFont(Font.TRUETYPE_FONT, new File(工作目錄.getParent()+字體位置[i] ));// TODO
- // font
- // type
+ File 工作目錄 = new File(System.getProperty("user.dir"));
+ System.out.println("工作目錄=" + 工作目錄);
+
+ 字體集[i] = Font.createFont(Font.TRUETYPE_FONT,
+ new File(工作目錄.getPath() + "/WebContent/WEB-INF" + 字體位置[i]));// TODO
+ // font
+ // type
}
catch (FontFormatException e)
{