~veger/ganttproject/manual-import

« back to all changes in this revision

Viewing changes to org.ganttproject.impex.htmlpdf/src/org/ganttproject/impex/htmlpdf/fonts/JDKFontLocator.java

  • Committer: Maarten Bezemer
  • Date: 2012-01-22 12:20:00 UTC
  • Revision ID: maarten.bezemer@gmail.com-20120122122000-qwyec45rjx86wi7o
Updated till 2fe683a778c3 

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
This program is free software; you can redistribute it and/or
6
6
modify it under the terms of the GNU General Public License
7
 
as published by the Free Software Foundation; either version 2
 
7
as published by the Free Software Foundation; either version 3
8
8
of the License, or (at your option) any later version.
9
9
 
10
10
This program is distributed in the hope that it will be useful,
41
41
        String javaHome = System.getProperty("java.home");
42
42
        File fontDirectory = new File(javaHome + "/lib/fonts");
43
43
        File[] children = fontDirectory.listFiles(new FilenameFilter() {
 
44
            @Override
44
45
            public boolean accept(File dir, String name) {
45
46
                return name.toLowerCase().endsWith(".ttf");
46
47
            }