Class IconFontIO
java.lang.Object
com.imyeyu.font.icon.format.IconFontIO
-
Method Summary
Modifier and TypeMethodDescriptionstatic FontInforeadFontInfo(Path path) 读取 TTF 文件完整信息readSvgGlyphs(Path path) 读取 TTF 文件并导出 SVG 字形writeSvgDirectory(Path ttf, Path directory) 读取 TTF 文件并将 SVG path 字形导出到目录writeSvgJson(Path ttf, Path jsonFile) 读取 TTF 文件并将 SVG path 字形导出到name -> pathDataJSON 对象static IconFontwriteTtf(Path path, IconFontOptions options, Collection<IconGlyph> icons) 构建 TTF 并写入文件static IconFontwriteTtfFromSvgDirectory(Path output, IconFontOptions options, Path directory, int startCodePoint) 从 SVG 目录构建 TTF 并写入文件static IconFontwriteTtfFromSvgJson(Path output, IconFontOptions options, Path jsonFile, int startCodePoint) 从name -> pathDataJSON 对象构建 TTF 并写入文件
-
Method Details
-
writeTtf
public static IconFont writeTtf(Path path, IconFontOptions options, Collection<IconGlyph> icons) throws IOException 构建 TTF 并写入文件- Throws:
IOException
-
writeTtfFromSvgDirectory
public static IconFont writeTtfFromSvgDirectory(Path output, IconFontOptions options, Path directory, int startCodePoint) throws IOException 从 SVG 目录构建 TTF 并写入文件- Throws:
IOException
-
writeTtfFromSvgJson
public static IconFont writeTtfFromSvgJson(Path output, IconFontOptions options, Path jsonFile, int startCodePoint) throws IOException 从name -> pathDataJSON 对象构建 TTF 并写入文件- Throws:
IOException
-
readSvgGlyphs
读取 TTF 文件并导出 SVG 字形- Throws:
IOException
-
writeSvgDirectory
读取 TTF 文件并将 SVG path 字形导出到目录- Throws:
IOException
-
writeSvgJson
读取 TTF 文件并将 SVG path 字形导出到name -> pathDataJSON 对象- Throws:
IOException
-
readFontInfo
-