⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fontmetricsstorage.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
package org.ganttproject.impex.htmlpdf.fonts;import java.net.URI;import java.net.URISyntaxException;import java.net.URL;/** * Created by IntelliJ IDEA. *  * @author bard Date: 07.01.2004 */public class FontMetricsStorage {    public URI getFontMetricsURI(TTFFileExt ttfFile) {        URI result = null;        String fontName = ttfFile.getFile().getName();        String resourceName = "font-metrics/" + fontName + ".xml";        URL resourceUrl = getClass().getClassLoader().getResource(resourceName);        try {            result = resourceUrl == null ? null : new URI(resourceUrl                    .toString());        } catch (URISyntaxException e) {            e.printStackTrace(); // To change body of catch statement use            // Options | File Templates.        }        return result;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -