diff --git a/.classpath b/.classpath index 3f62285..bf6b2cc 100644 --- a/.classpath +++ b/.classpath @@ -37,5 +37,6 @@ + diff --git a/WebContent/WEB-INF/lib/servlet-api-3.1.0.jar b/WebContent/WEB-INF/lib/servlet-api-3.1.0.jar new file mode 100644 index 0000000..6b14c3d Binary files /dev/null and b/WebContent/WEB-INF/lib/servlet-api-3.1.0.jar differ diff --git a/WebContent/WEB-INF/lib/servlet-api-3.1.jar b/WebContent/WEB-INF/lib/servlet-api-3.1.jar deleted file mode 100644 index 075a114..0000000 --- a/WebContent/WEB-INF/lib/servlet-api-3.1.jar +++ /dev/null @@ -1,717 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - han3_ji7_tsoo1_kian3/servlet-api-3.1.jar at 650aa62eb3357ed186e9db83fc26e86a023d6475 · sih4sing5hong5/han3_ji7_tsoo1_kian3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Skip to content - - - - - - - - - - - - - -
- -
-
- - -
-
-
- -
-
- - - -
    - -
  • -
    - -
    - - - - Unwatch - - - - -
    - -
    -
    -
    -
  • - -
  • - -
    - -
    - - -
    -
    - - -
    - -
  • - -
  • - - - Fork - - - - - -
  • -
- -

- - /han3_ji7_tsoo1_kian3 - -

- -
- -
- -
-
- - - - - - - -
- -
- - - -
- -
- - Find file - - -
- -
- - -
- Fetching contributors… -
- -
- - Cannot retrieve contributors at this time -
-
-
-
-
- -
- Raw - History -
- - - -
- -
- 93.6 KB -
-
- - - -
-
- View Raw -
-
- -
- - - - -
- -
- - -
-
- -
- - - - - - - -
- - - Something went wrong with that request. Please try again. -
- - - - - - - - - - - - - - - - - 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) {