fontmetricsstorage.java
来自「It is all about project scheduling. Gant」· Java 代码 · 共 29 行
JAVA
29 行
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 + =
减小字号Ctrl + -
显示快捷键?