Questions tagged [fontforge]

FontForge is a typeface editing tool.

FontForge is a typeface (font) editing program. FontForge supports many font formats, including TrueType, PostScript, OpenType, and SVG. It can convert fonts from one format to another.

166 questions
37
votes
3 answers

Setting LD_LIBRARY_PATH from inside Python

Is there a way to set specify during runtime where Python looks for shared libraries? I have fontforge.so located in fontforge_bin and tried the following os.environ['LD_LIBRARY_PATH']='fontforge_bin' sys.path.append('fontforge_bin') import…
Yaroslav Bulatov
  • 57,332
  • 22
  • 139
  • 197
37
votes
2 answers

Creating icon fonts with vector software (i.e. inkscape) and fontforge?

Through getting some answers here and some research, I've come across a new approach to implementing icons. Rather than as images or css background, it seems you can approach icons as a font. Will this method ultimately mean creating a one file font…
jstacks
  • 2,437
  • 8
  • 32
  • 48
18
votes
5 answers

Copy/Paste Glyph/Character from one font file to another

I have two different font files FontFile1.otf and FontFile2.otf. I want to copy Unicode character at position 1759 from FontFile1.otf to FontFile2.otf. How can i do that? I tried to do it using FontForge and Fontographer but the paste doesn't seem…
Mustafa
  • 20,504
  • 42
  • 146
  • 209
16
votes
3 answers

How to convert TTF to FNT with Fontforge

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…
user3177112
  • 395
  • 1
  • 2
  • 12
15
votes
2 answers

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

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…
Nowayz
  • 1,882
  • 4
  • 21
  • 34
14
votes
2 answers

Delete all unused characters from a TTF-font with Fontforge

How can I delete all characters from a TTF font file that are not used in a given text sample with Fontforge? In other words I want to create a subset from an existing font which contains only the characters that actually show in my text. Here's a…
oystersauce
  • 631
  • 1
  • 6
  • 17
13
votes
1 answer

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

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…
Mentalist
  • 1,530
  • 1
  • 18
  • 32
12
votes
2 answers

Fontforge: Export a glyph to SVG with fontforge command line

How to export a glyph (from its unicode) to SVG with Fontforge command line ? I also need to specify the font size and keep the original margins it has in the font.
DevonDahon
  • 7,460
  • 6
  • 69
  • 114
8
votes
2 answers

Fontforge Scripting how to add ligatures for a glyph

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…
Ehsan
  • 4,334
  • 7
  • 39
  • 59
7
votes
1 answer

fontforge - Script to merge fonts to add glyphs

I have two .ttf font files, one of which contains the glyphs that I need to merge to the other font file. Using the GUI, there will be a dialog box saying Do you want to retain kerning information from the selected font when one of the glyphs being…
sam-s3pi0l
  • 73
  • 1
  • 5
7
votes
1 answer

How to remove ligatures from a font using FontForge

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…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
6
votes
2 answers

Pip install fontforge, says Couldnot find a version

I have done, apt-get install fontforge on my ubuntu system. When i do import fontforge in my python code, it throws error as, No module named fontforge. When i do, pip install fontforge, it throws error as,, Could not find a version that satisfies…
user2879704
6
votes
2 answers

Adding glyphs to Fontforge

When I open Fontforge to create a new font, it only lists a limited set of characters / glyphs. In the font I create, I need some glyphs that are missing from that default set, e.g. "single right-pointing angle quotation mark" (U+203A) and "single…
user1322720
6
votes
1 answer

How to import fontforge to python in windows 7

Environment: Win 7, Python 3.4, Sublime Text 2 I am trying to use fontforge as in following example, by importing fontforge in *.py: import fontforge font = fontforge.open('blank.sfd') ... However, I haven't found any help for win 7 on where (or…
zap
  • 61
  • 1
  • 3
6
votes
4 answers

Inverted glyph: bitmap > SVG via autotrace > glyph via fontforge

I am trying to create a font/glyph by: taking a bitmap image creating an SVG with autotrace (on Linux) importing the outline as a glyph with python-fontforge (glyph.importOutlines(svgfile) ) This works fine except that the resulting glyph in…
Hoff
  • 38,776
  • 17
  • 74
  • 99
1
2 3
11 12