fontforge

How to convert TTF to FNT with Fontforge

為{幸葍}努か 提交于 2020-01-10 18:56:08
问题 I have a TTF font, that needs to be converted in FNT (and ideally in pcf too). I tried Fontforge, but when I loaded font and chose to generate font - nothing could be selected from the list on the right, except "No bitmap fonts" though there was WIN FNT. Can anyone help me with this? 回答1: FNT is a bitmap format while TTF is an outline/vector format. To get FNT output, you'll first need to create a bitmap strike or strikes. Fontforge can do this if it has been built with Freetype included: Go

XSL-FO: how to add “helvetica neue” fonts and output to pdf

情到浓时终转凉″ 提交于 2020-01-05 09:37:48
问题 Am I correct that it's not possible to use fonts from windows 7 c:\windows\fonts* when using XSL-FO (Apache FOP) to generate a pdf? I've just installed the "helvetica neue" font in OTF format. According to https://xmlgraphics.apache.org/fop/trunk/fonts.html "Support for system fonts relies on the Java AWT subsystem for font metric information. Through operating system registration, the AWT subsystem knows what fonts are available on the system, and the font metrics for each one. When working

Font not kerning in iOS

心不动则不痛 提交于 2019-12-25 04:10:30
问题 I've created a custom font using FontForge for use in my iOS app. When I use the font in my app, kerning is not being applied. There is a known bug that kerning is not being applied for UITextView. I'm using this in a UILabel and UITextField, so that's not the issue. I'm targeting iOS 5.0. I'm able to view the font in Font Book and Pages and see that kerning is working. However, kerning doesn't work in Word for Mac. I have enabled kerning in Word, but it does not work there. I'm not concerned

How to remove ligatures from a font using FontForge

拥有回忆 提交于 2019-12-19 09:09:35
问题 I have a font with some ligature errors in it. This is causing problems in my Android application. I want to just remove the ligatures. How do I do that in FontForge? This question is related but it is going the other way. Fontforge Scripting how to add ligatures for a glyph This is a self answer question. My answer is below. 回答1: In FontForge go to Element > Font Info > Lookups > GSUB . You should be able to select a ligature table there. Then you can click Delete to delete all the ligatures

Import a sequence of .svg files into FontForge as glyphs and output a font file

一曲冷凌霜 提交于 2019-12-17 18:44:38
问题 I want to create a font with a large volume of glyphs. Think Japanese kanji, in the thousands. So there will definitely be some scripting / batch processing required. Luckily FontForge supports python scripting! Unluckily I haven't been able to get it working. [sadface] Firstly, thanks to the user Hoff for posting code here that answered a big part of my question. But upon running his script I encounter problems which raise more questions: Failed to find NameList: AGL For New Fonts Warning:

NodeJS API with external deps in other language

丶灬走出姿态 提交于 2019-12-17 16:55:08
问题 I am developing a NodeJS API and everything is ok. For an specific issue I am using a local CLI dependency that process some input files and output other stuff, in case to return from the API. I wanted to know (maybe open my mind on) what kind of service I can use to serve this API in production. The idea is to have a Node environment (like in my local) that can have installed in the same machine an external dependency not necessarily written in Node . My specific dependency is fontforge and

Get glyph widths by fontforge script

牧云@^-^@ 提交于 2019-12-12 12:14:08
问题 For getting glyph widths, I convert a TTF font to AFM , and then parse the content of AFM file to get the width of each glyph. Since technically, fontforge is capturing the glyph widths from the binary TTF file, and then create a AFM font file based on the AFM standard template. I wonder if it is possible to directly convert a TTF file to a list of glyph widths by a fontforge command?!? 回答1: FontForge includes two interpreters so you can write scripts to modify fonts. One of these

Fontforge Scripting how to add ligatures for a glyph

烂漫一生 提交于 2019-12-07 01:35:49
问题 I'm making a font with scripting on Fontforge. Everything goes well, but I have this problem I don't know how to specify for a selected glyph that if two other glyphs came simultaneously show the selected glyph. I have already made the Lookuptable and the subtable for that but I don't know the function that would define some ligatures for a specified glyph. Here is the code for making table and subtable for adding ligatures to a glyph. AddLookup("Ligatures","GSUB_ligature",9,[["rlig",[["arab"

Fontforge Scripting how to add ligatures for a glyph

岁酱吖の 提交于 2019-12-05 05:52:22
I'm making a font with scripting on Fontforge. Everything goes well, but I have this problem I don't know how to specify for a selected glyph that if two other glyphs came simultaneously show the selected glyph. I have already made the Lookuptable and the subtable for that but I don't know the function that would define some ligatures for a specified glyph. Here is the code for making table and subtable for adding ligatures to a glyph. AddLookup("Ligatures","GSUB_ligature",9,[["rlig",[["arab",["dflt"]]]]]) AddLookupSubtable("Ligatures","Ligatureshi") You need to specify the Ligature

Prevent anti-aliasing (or sub-pixel rendering) of a TrueType font

拟墨画扇 提交于 2019-12-05 02:14:29
This is how the .ttf font is rendered: I have created this vector-only TrueType font using FontForge. I want to use this font on applications which require vector-based glyphs, and do not support loading .ttf embedded bitmaps (which do not seem to have this problem) . On certain color-schemes this sub-pixel rendering that Windows does makes the font completely unreadable. This effect is present in most ttf fonts, but is much stronger on fonts with pixel-perfect edges like mine. Does anybody know any programmable hinting tricks or font-settings that will allow the font to render pixel-perfectly