true-type-fonts

Generate TTF from PNG/SVG files using FontForge

一笑奈何 提交于 2021-02-08 11:38:41
问题 I'm trying to generate a ttf font file from a bunch of SVGs or PNGs. Every time I try, I get the error: "Warning: Font contained no glyphs" I've tried this on Mac and Linux: font = fontforge.font() glyph = font.createChar(65, "font1") glyph.importOutlines("1.png") glyph2 = font.createChar(66, "font2") glyph2.importOutlines("2.png") glyph3 = font.createChar(67, "font3") glyph3.importOutlines("3.png") font.generate("output.ttf") I tried the hints on: Import a sequence of .svg files into

How to use user defined font on Forge design automation with AutoCAD Plot API

痴心易碎 提交于 2021-02-05 09:34:26
问题 We are using the Forge Plot API to plot DWGs to PDF/JPG. A customer came up with DWGs that are using a special TTF-Font called ROBBI.TTF. I suppose this font has to be uploaded to the Forge server before it can be used. Is it possible to upload the font once, so that it can be used for all our plot jobs? If not: What is the best way to plot using a custom TTF font? 回答1: Thomas, yes, you can wrap custom fonts in your apppackage bundle under Contents folder and refer the path to SupportPath

How to read kerning pairs table from TTF file in Android

纵然是瞬间 提交于 2021-02-04 13:36:12
问题 I am currently drawing text on Canvas while using external (non-standard) font, loaded from TTF file. I want to enable kerning for the text I am displaying. What I want to know is if there is a possibility to read kerning pairs from typeface using Android API. 回答1: What I want to know is if there is a possibility to read kerning pairs from typeface using Android API. There is no public API to read kerning pairs from a TTF file. However, I pulled the relevant code from Apache FOP and you can

TFF file inner information extraction by Java or C#

僤鯓⒐⒋嵵緔 提交于 2020-12-08 05:18:36
问题 Currently, I am working on TTF font related software. I need to create some tool for extract the Kerning and Ligature information which is included in the TTF(given font) file. I searched for many resources but I am unable to find any useful information. Any opinion for Java or c#? Thank you. 回答1: You haven't indicated what platform/framework/library you're working with. And there's some complexity to what you're after. TrueType/OpenType have long support a 'kern' table with kerning data.

TFF file inner information extraction by Java or C#

狂风中的少年 提交于 2020-12-08 05:16:42
问题 Currently, I am working on TTF font related software. I need to create some tool for extract the Kerning and Ligature information which is included in the TTF(given font) file. I searched for many resources but I am unable to find any useful information. Any opinion for Java or c#? Thank you. 回答1: You haven't indicated what platform/framework/library you're working with. And there's some complexity to what you're after. TrueType/OpenType have long support a 'kern' table with kerning data.

How to use kerning pairs extracted from a TTF file to correctly show glyphs as Path2D in Java?

半世苍凉 提交于 2020-11-29 10:36:12
问题 This question is about recovering glyph font information in Java and it is related to a question posted here. For more details please check the question and answers. It was suggested there to use Apache FOP library to recover the kerning pairs directly from the Truetype file since Java doesn't supply this information. I then ported the library to Windows and recovered the kerning pairs using this code: TTFFile file; File ttf = new File("C:\\Windows\\Fonts\\calibri.ttf" ); try { file = TTFFile

How I use a custom font with the Batik SVG library?

喜欢而已 提交于 2020-08-01 05:03:45
问题 I'm working on a Java program which creates templates for clothes. The user enters the word they want to see on the item of clothing and the system creates a PDF template. To create the template I create an SVG document programatically then use Batik to transcode the SVG to the PDF format. My client now wants to be able to use custom fonts to create the templates. I was wondering if it's possible to use fonts like a TTF with the Batik transcoder? If so how do you go about setting up the SVG?

How I use a custom font with the Batik SVG library?

点点圈 提交于 2020-08-01 05:03:31
问题 I'm working on a Java program which creates templates for clothes. The user enters the word they want to see on the item of clothing and the system creates a PDF template. To create the template I create an SVG document programatically then use Batik to transcode the SVG to the PDF format. My client now wants to be able to use custom fonts to create the templates. I was wondering if it's possible to use fonts like a TTF with the Batik transcoder? If so how do you go about setting up the SVG?