Debian Codegraph @

doc/sphinx/faq.rst

raw
1
2 Frequently Asked Questions
3 ==========================
4
5 .. epigraph::
6
7 | **Sir Toby:** Thy most exquisite reason, dear knight?
8 | **Sir Andrew** I have no exquisite reason for't,
9 | but I have reason good enough
10
11 -- Twelfth Night, II, iii, 130 -- Shakespeare
12
13
14 (or many of the questions I've been asked so far)
15
16
17 General questions about FontForge
18 ---------------------------------
19
20 * :ref:`Why a font editor, aren't there enough fonts already? <faq.font-editor>`
21
22 * :ref:`Why did I write it? <faq.write>`
23 * :ref:`Why do I give it away? <faq.give>`
24 * :ref:`Does working on FontForge provide the same kind of pleasure as working on pots or baking bread? <faq.Pots>`
25 * :ref:`Why doesn't it use the native MS Windows or Mac windowing system? <faq.native>`
26 * :ref:`Why is FontForge based on a non-standard widget set? <faq.widget-set>`
27 * :ref:`Why isn't FontForge written in C++? (or Why C++ is not my favorite language) <faq.C-plus-plus>`
28 * :ref:`Why do I release FontForge under the BSD license and not GPL? <faq.bsd-license>`
29 * :ref:`Why does FontForge load libraries at run time rather than being linked with them? <faq.libraries>`
30 * :ref:`Why is there no future roadmap for FontForge? <faq.roadmap>`
31
32
33 General questions about fonts
34 -----------------------------
35
36 * :ref:`Is it legal to modify a font? Is it ethical? <faq.legal>`
37 * :ref:`What is a 12point font? <faq.pointsize>` (What measurement of the font
38 determines the point size)
39
40 * :ref:`How do I set the line spacing on a font? <faq.linespace>`
41 * :ref:`How big will my glyph be? (What are em-units?) <faq.em-units>`
42 * :ref:`What's a good license to use on an open source font? <faq.license>`
43
44
45 Using FontForge & Installing fonts on various systems
46 -----------------------------------------------------
47
48 * `How do I install FontForge? <https://fontforge.org/en-US/downloads/>`__
49 * :ref:`Minimum requirements <faq.Minimum>`
50
51 * :ref:`Why does FontForge use so much memory? <faq.excessive-memory>`
52 * :ref:`How do I install the fonts once I've made them? <faq.font-install>`
53 * :ref:`Why won't FontForge's fonts install on some MS Windows systems <faq.Bad-Windows-Install>`
54 * :ref:`How do I edit fonts from my macintoy? <faq.How-mac>`
55
56 * :ref:`How do I create a mac font family? (How do I get the mac to group my fonts so that the italic and bold styles work)? <faq.How-family>`
57 * :ref:`Why doesn't ATM work with my fonts? <faq.Mac-ATM>`
58 * :ref:`How do I edit fonts on MS windows? <faq.windows>`
59
60 * :ref:`Why don't my fonts work on windows? <faq.Bad-Windows-Fonts>`
61 * :ref:`I generated an opentype (or truetype) font and windows wouldn't install it. Why not? <faq.otf-diffs>`
62 * :ref:`I have a truetype font with opentype tables, but windows displays the "TT" (truetype) icon and not the "O" icon. Why? <faq.DSIG>`
63 * :ref:`What do all the different font names mean? <faq.names>`
64
65
66 Font Conversions
67 ----------------
68
69 * :ref:`Converting from one outline format to another <faq.outline-conversion>`
70 * :ref:`Converting from one bitmap format to another <faq.bitmap-conversion>`
71 * :ref:`Converting from an outline format to a bitmap <faq.outline-bitmap>`
72 * :ref:`Converting from a bitmap format to an outline <faq.bitmap-outline>`
73 * :ref:`Converting from Apple's Advanced Typography to OpenType <faq.AAT2OT>`
74 * :ref:`Converting from OT to AAT <faq.OT2AAT>`
75 * :ref:`Importing glyphs from Inkscape <faq.Inkscape>`
76
77
78 Questions about Hints and TrueType Instructions
79 -----------------------------------------------
80
81 * :ref:`How do I make it use hint substitution? <faq.hint-subs>`
82 * :ref:`How do I make it use flex hints? <faq.flex-hints>`
83
84 * :ref:`How can I tell if it is going to use flex hints? <faq.flex2>`
85 * :ref:`My glyphs are all perfectly hinted, why do some stems have different widths (or appear fuzzy, or fade away completely)? <faq.fuzzy>`
86 * :ref:`I loaded a ttf font, made a few changes and generated a new font. The changed glyphs don't look anywhere near as nice as the originals. Why? <faq.ttf-degrade>`
87
88
89 Questions about :doc:`Font Formats </appendices/bibliography>`
90 --------------------------------------------------------------
91
92 * :ref:`What's the difference between OpenType and PostScript (or TrueType) fonts? <faq.Open-difference>`
93 * :ref:`What is the difference between AAT (Apple Advanced Typography) and OpenType? <faq.AAT-Open>`
94 * :ref:`Why does a font, which worked fine under 10.3 fail on Mac 10.4 (Tiger)? <faq.Tiger-Open>`
95 * :ref:`What on earth are the cidmap files, and should I care about them? <faq.cidmaps>`
96
97 * :ref:`(What is a CID-keyed font?) <cidmenu.CID>`
98 * :ref:`Why doesn't TeX work with my fonts? <faq.TeX>`
99
100 * :ref:`Why doesn't FontForge let me edit an '.mf' file? <faq.mf-files>`
101 * :ref:`Is it safe to use non-integral coordinates? Will it screw up in Word or anything? <faq.non-integral>`
102 * :ref:`Why isn't my Open Type font much smaller than the .pfb file? <faq.Open-size>`
103 * :ref:`When I load an otf or a type1 font most of my references have been replaced by inline copies. How do I get my references back? <faq.Missing-Refs>`
104 * :ref:`Does FontForge read in the old kerning information from fonts? <faq.kern-info>`
105 * :ref:`How do I set a particular bit in the OS/2 table (or any other)? <faq.mensis>`
106 * :ref:`What's an sfd file? <faq.sfd>`
107
108 * :ref:`Why are they so big? <faq.excessive-memory>`
109
110
111 Mathematical questions
112 ----------------------
113
114 * :ref:`Does the simplify command lose accuracy? <faq.simplify>`
115 * :ref:`How does FontForge convert a cubic spline into a quadratic spline for truetype? <faq.cubic-quadratic>`
116 * :ref:`How does FontForge convert a quadratic spline into a cubic (when reading truetype)? <faq.quadratic-cubic>`
117
118
119 Image file questions
120 --------------------
121
122 * :ref:`Why does fontforge say "EPS file is too complex to be understood"? <faq.complex-eps>`
123 * :ref:`Importing glyphs from Inkscape <faq.Inkscape>`
124
125
126 Random questions
127 ----------------
128
129 * :ref:`FontForge's grey background distresses me. How do I change it? <faq.background>`
130 * :ref:`The fonts FontForge uses in its GUI are too small (too big) how do I change them? <faq.fontsize>`
131 * :ref:`How do I mark a font as monospaced? <faq.monospace>`
132 * :ref:`How do I tell fontforge about a new encoding? <faq.new-encoding>`
133 * :ref:`How do I add a glyph with a new name? <faq.new-name>`
134 * :ref:`Why does fontforge give some glyphs the wrong name? <faq.glyphnames>`
135 * :ref:`After I generate a font and quit, why does FontForge ask if I want to save the font? I didn't change anything. <faq.save-no-change>`
136 * :ref:`Why does my window get iconified when I want to minify the view? <faq.minify-iconify>`
137 * :ref:`Why isn't there a character named "mu" in my greek font? <faq.no-mu>` (or
138 "Delta", or "Omega", or "pi1")
139 * :ref:`Why doesn't Edit->Copy copy glyph names as well as glyph info? <faq.no-copy-names>`
140 * :ref:`Why does Edit->Paste complain about name duplication? <faq.copy-names>`
141 * :ref:`Why is Element->Build->Build Accented Glyph disabled (or gray)? <faq.disabled-build-menu>`
142 * :ref:`How do I set the default glyph of a font? <faq.default-char>`
143 * :ref:`I looked at kaiu.ttf or mingliu.ttf and the outlines looked nothing like the correct glyphs. What's wrong? <faq.mingliu>`
144 * :ref:`When I use Element->Build->Build Accented Glyph to build one of the Extended Greek glyphs (U+1F00-U+1FFF) FontForge picks the wrong accents. Why? <faq.greek-accents>`
145 * :ref:`When I use Element->Build->Build Accented Glyph to build accents over "u" or "y" I get the accent over one of the stems not centered on the glyph. Why? <faq.u-accents>`
146 * :ref:`When I use Element->Overlap->Remove Overlap the glyph gets inverted (or white) on the overlapping sections. Why? <faq.remove-overlap>`
147 * :ref:`Why does ttf2afm crash on FontForge ttf files? <faq.ttf2afm>`
148 * `Where can I find a list of known bugs in FontForge? <https://github.com/fontforge/fontforge/issues>`__
149 * :ref:`My system keeps crashing because FontForge keeps running out of memory. What can I do about it? <faq.memory>`
150 * :ref:`Why is FontForge so unstable? <faq.Unstable>`
151 * :ref:`Why does FontForge look ugly under Xgl/Compiz? <faq.Compiz>`
152 * :ref:`Why don't I talk at conferences? <faq.talk>`
153
154 --------------------------------------------------------------------------------
155
156 .. _faq.font-editor:
157
158 .. epigraph::
159
160 | But Eeyore was saying to himself,
161 | "This writing business. Pencils
162 | and whatnot. Over-rated, if you
163 | ask me. Silly stuff. Nothing in it
164
165 -- Winnie-the-Pooh -- A.A. Milne
166
167
168 **Why a font editor, aren't there enough fonts already?**
169 Well... no. Otherwise I wouldn't be writing this, and. more to the point,
170 there wouldn't be thousands of people downloading it every month.
171
172 I am often asked this question; to me it represents a misapprehension. You
173 wouldn't go up to a paintbrush maker and ask if he thought there were already
174 enough watercolor paintings. A font is a work of art and represents the
175 individual genius of its creator. It is no more redundant than a watercolor.
176
177 However, accepting the question at face value, here are my attempts to answer
178 it... er, pragmatically.
179
180 #. There are lots of latin fonts. There are far fewer greek, cyrillic, indic,
181 thai, chinese, japanese, korean, unicode...
182 #. There aren't many good quality free fonts available.
183 #. Researchers into old writing systems often need to design their own fonts
184 #. Even for latin, traditionally each new style of art and architecture has an
185 associated style of fonts. New fonts are always being created to reflect the
186 esthetics of the times.
187 #. Computer font technology is constantly changing. A font-format that was
188 useful 10 years ago may not be so now.
189 #. Even if you are satisfied with the fonts that do exist they may not be
190 complete
191
192 * Missing ligatures
193 * Missing accented glyphs
194 * No matching cyrillic or greek glyphs
195 #. Everybody wants a font of his/her own handwriting.
196 #. Playing with fonts is fun.
197
198 FontForge has uses beyond simply creating and modifying fonts. It can convert
199 from one format to another. It can extract information from the font file. Or
200 it can simply show you what the font looks like without having to install it.
201
202 .. _faq.write:
203
204 **Why did I write it?**
205 .. epigraph::
206
207 Why not?
208
209 -- The Phantom Tollbooth -- Juster
210
211 * Because it was fun
212 * Because MacroMedia stopped development on Fontographer, and Fontographer was
213 lacking features that I wanted.
214 * To learn
215
216 For a more complete description see the :doc:`FontForge history </appendices/ff-history>`
217 page.
218
219 .. _faq.give:
220
221 **Why do I give it away?**
222 * Because I approve of free software and hope that the availability of good
223 products on a good operating system will encourage people not to use
224 proprietary systems.
225 * Because programming is a lot more fun than marketing and giving things away
226 is easier than selling them.
227 * Because I'd have to spend more time doing QA if I sold it (and QA isn't much
228 fun).
229
230 .. _faq.native:
231
232 **Why doesn't it use the native MS Windows or Mac windowing system?**
233 * FontForge is not a commercial product and is not bound by the constraints of
234 the market.
235 * Doing that port doesn't interest me.
236 * I don't have time nor do I have the skill to take that task on.
237 * I'd like to encourage people to use Linux/unix
238
239 Of course, if I were to use either :ref:`gtk or qt <faq.widget-set>` some of
240 the difficulties of porting would vanish. But unfortunately I don't like
241 either of those widget sets.
242
243 Now... if *you* would like to do the port, that would be wonderful. I
244 encourage you to do so.
245
246 .. _faq.widget-set:
247
248 **Why is FontForge based on a non-standard widget set?**
249 I wanted a widget set that would handle Unicode reasonably well. In
250 particular I thought support for bidi text was important for hebrew and
251 arabic typography. As I was unaware of any widget sets that did that, I wrote
252 my own.
253
254 I also wanted a widget set where I could actually figure out whether the
255 checkbox was checked or not checked. In far too many cases my eyes can't work
256 out which is which... (Ironically the most frequent complaint I get is from
257 people who can't tell whether my checkboxes are checked. I don't know what to
258 make of that).
259
260 I realize now that that there are essentially two free widget sets that are
261 far better at unicode support than mine. These are
262 `QT <http://www.trolltech.com/developer/downloads/qt>`__ and
263 `gtk <http://www.gtk.org/>`__. I'm still not using either because:
264
265 * Converting from one set of widgets to another is tedious. And people send me
266 bugs which distract me.
267 * If I spend my time doing that conversion I won't be making FontForge more
268 functional.
269 * QT is written in C++, and, :ref:`as I explain below <faq.C-plus-plus>`, I
270 don't like C++, so that's out.
271 * The more I look at gtk the less I like it.
272
273 * The support for images is atrocious (which is odd, since it was written for
274 gimp):
275
276 * There is no support whatsoever for client side bitmaps (and I want to support
277 bitmap fonts)
278 * Colors are ordered RGB in color tables for index images, but BGR for 24bit
279 color images
280 * No simple support for transparent images without resorting to full RGBA
281 images, which is a bit of overkill when I want to draw a simple bitmap.
282 * There is no overarching format for images, so I can't have an image which
283 itself knows whether it's bitmap, index or truecolor.
284 * Fixing these was possible, but it involved a lot of very low level work on my
285 part -- and I only know how to do that work on X.
286 * I find the file chooser dialog really ugly. And it's so complex I can't
287 figure out how to modify it to make it look nice (by my standards, that is).
288 * I also can't figure out how to modify the file chooser to make it behave the
289 way the fontforge's file chooser currently behaves (popup windows showing
290 FontNames as you move the mouse over fontfiles, a pull down list of recently
291 used files attached to the filename input box, etc.)
292 * gtk+2 doesn't run natively on Mac OS, and the only people porting gtk to the
293 mac seem to be working on gtk-1
294 * Many of the widgets I want to use have been deprecated. Sometimes I can't
295 figure out what replaces them, sometimes I am forced to used a far more
296 complex widget instead.
297 * So I tend to wrestle with it for a while and then decide than my current
298 widgets are better after all.
299 * I did get a limited version of fontforge running under gtk. I would be
300 grateful if someone else would choose to extend and maintain it.
301
302 .. _faq.C-plus-plus:
303
304 **Why isn't FontForge written in C++ (or *Why C++ is not my favorite language*)?**
305 I've been a little surprised to be asked this question, I had not realized my
306 choice of language needed justification, but it appears to do so...
307
308 Basically because I don't find object-oriented practices helpful in most
309 cases, because I find C++ far too complex and badly designed, and because I
310 can't debug it easily.
311
312 * I grew up with SIMULA and dabbled with SmallTalk and found after a few years
313 that there were very few problems where an object oriented approach seemed
314 natural to me. In most cases it just seemed to impose unneeded complexities
315 on the problem.
316 * The semantics of a C++ program cannot be specified. The compiler is free to
317 generate temporaries as it wishes. In C this is not a problem, but in C++ the
318 creation of a temporary can involve calling a constructor and a destructor
319 which may have untold side-effects. I find this frightening.
320 * The order of execution of external constructors is unspecified. I have seen
321 many inexplicable bugs caused by this
322 * I find it extremely difficult to debug C++. Stepping through a statement
323 often involves many unexpected procedure calls (some of which are inlined and
324 not obvious). This distracts from my main purpose in debugging.
325 * Finally I find the language badly specified and too complex. Its various
326 concepts do not fit well together. Each compiler seems to do things slightly
327 differently.
328
329 I first met C++ in about 1981 when it was called C with Classes. I wrote the
330 C++ front end for Green Hills Software's compiler suite from 1987 to 1994 and
331 I tracked each new version of the language from 1.1 to ANSI.
332
333 Each version added new features which did not sit well with the old ones.
334 Each version was badly specified. The reference implementation was wildly
335 different from the specification. For example the behavior of virtual
336 functions inside constructors was not specified until version 2 of the
337 language and since this behavior was different from naive expectations this
338 caused bugs. My favorite confusion occurred in (I think it was) the version
339 2.1 specification where on one page, within a few paragraphs, the following
340 two sentences occurred: "Unions may contain member functions." and "Unions
341 may not contain member functions.".
342
343 The above are my personal opinions based on my experience and explain why *I*
344 do not use C++. Your opinions probably differ, few people have spent 5 years
345 writing C++ compilers.
346
347 .. _faq.bsd-license:
348
349 **Why do I release FontForge with the BSD license and not GPL?**
350 I just don't like GPL. It's partly prejudice, partly real.
351
352 I don't like forcing restrictions on people.
353
354 I'm giving away fontforge, so I do.
355
356 The `BSD license <https://raw.githubusercontent.com/fontforge/fontforge/master/LICENSE>`__
357 says "Don't sue me, and include my copyright notice if you use my code" and
358 that's all I care about.
359
360 Perhaps I am naif, but I don't believe that anyone is going to start selling
361 fontforge. Why would they? It makes no sense for someone to try to sell what
362 I give away freely. If they add functionality to fontforge, then that's a
363 different matter, but in a sense they aren't charging for fontforge, they are
364 charging for the code they have added to it. It would be annoying if someone
365 did that, a bit rude in my eyes, but I'm not going to say "no".
366
367 Now someone might take a small piece of fontforge and use it in something
368 else. That doesn't bother me. I know that some of my OpenType code has been
369 snagged by some TeX packages. And I have snagged code for generating
370 checksums from some other packages.
371
372 I rather like helping other people. And people have helped me.
373
374 .. _faq.libraries:
375
376 **Why does FontForge load libraries at run time rather than being linked with them?**
377 I dislike dependencies. The fewer the better.
378
379 I hate when I download a package and discover it won't work unless I download
380 half a dozen other packages (which, in their turn may demand that I download
381 yet more packages).
382
383 I want to download a package and just have it work.
384
385 So I try to write as much code myself as I can and release it all together in
386 a lump and not force people to wander all over the web looking for disparate
387 parts.
388
389 When I can't figure out how to do something myself I will use an external
390 library if I must. Even then I will try to insure that fontforge will run if
391 the library is not present on a system. When I release a binary package I
392 don't want to have to release 32 packages per host depending on the possible
393 presence or absence of 5 different libraries. But I also don't want to force
394 someone to install a library that s/he will never use just to get fontforge
395 to start.
396
397 If a user will never look at an svg glyph then they don't need to install
398 libxml2. If the user will never import a jpeg image (and there's really no
399 reason to want to do that) then they don't need to install libjpeg.
400
401 Instead, the binaries I release will try to load a library dynamically
402 (dlopen) *when they need it* and not before. This will also speed up starting
403 fontforge. If the library is on the system then all is happy and nice. If the
404 library is not, then that functionality is lost -- but the rest of fontforge
405 continues to work.
406
407 .. _faq.roadmap:
408
409 **Why is there no future roadmap for FontForge?**
410 .. epigraph::
411
412 | **TYSON:**
413 | I'm not bewildered, I assure you I'm not
414 | Bewildered. As a matter of fact a plan
415 | Is almost certainly forming itself in my head
416 | At this very moment. It may even be adequate.
417
418 -- *The Lady's not for Burning* -- Christopher Fry
419
420 Mostly because I don't think that way. I don't plan things out, I have a vague
421 idea where I want to go and I explore in that direction.
422
423 Consider python scripting. I decided to add python to fontforge. I found that
424 meant it became easier to design a mechanism so users could create their own
425 scripts to add import/export file formats. And then startup scripts, and
426 scripts when certain standard "events" happened. And then I could allow users
427 to define their own menu items. And then I figured out how to add fontforge
428 to python (as opposed to the reverse). And now I realize that there is no
429 reason I couldn't define a set of c-bindings so that people could call
430 fontforge as a library from within C programs. And who knows where that will
431 lead -- if anywhere.
432
433 Each stage means I can see a little further, and go a little further, and
434 then see a little more.
435
436 And often ideas will come from users, someone will ask for functionality I
437 had not thought of.
438
439 I did maintain such a page for a while. I found that half the things I wrote
440 never happened, and most of the time I didn't bother to update the page. I'd
441 forget about it. It was dull. Far better to *do* that to simply speculate on
442 what I might do were I not speculating.
443
444 So don't ask me what will happen next, because I don't know either. It's an
445 adventure. We'll just have to wait and see.
446
447 .. _faq.Pots:
448
449 **Does working on FontForge provide the same kind of pleasure as working on pots or baking bread?**
450
451 .. image:: /images/bowlweb.gif
452 :align: right
453
454 From an interview with
455 `Open Source Publishing <http://ospublish.constantvzw.org/?p=221>`__, done at
456 `LGM <http://www.libregraphicsmeeting.org/>`__ 2007
457
458 I like to make things. I like to make things that -- in some strange
459 definition are beautiful. I'm not sure how that applies to making bread, but
460 my pots -- I think I make beautiful pots. And I really like the glazing I put
461 onto them.
462
463 It's harder to say that a font editor is beautiful. But I think the ideas
464 behind it are beautiful in my mind -- and in some sense *I* find the user
465 interface beautiful. I'm not sure that anyone else in the world does, because
466 it's what I want, but I think it's beautiful.
467
468 And there's a satisfaction in making something -- in making something that's
469 beautiful.
470
471 And there's a satisfaction too (as far as the bread goes) in making something
472 I need. I eat my own bread -- that's all the bread I eat.
473
474 So it's just -- I like making beautiful things.
475
476 .. _faq.legal:
477
478 **Is it legal to modify a font? Is it ethical?**
479 Many current fonts are based on the work of great designers from centuries
480 past -- so reusing other people's designs has a long history. On the other
481 hand, no matter what the law, it is clearly unethical to steal the work of a
482 living designer.
483
484 Legal matters vary from country to country (and perhaps within countries).
485 You really should consult a lawyer for a definitive answer. Here are some
486 guidelines:
487
488 Look at the license agreement you received with the font and see what it has
489 to say on this issue.
490
491 TrueType (and OpenType and potentially CID-keyed fonts) have a field in the
492 OS/2 table called FSType which allows the font designer to place restrictions
493 on what other people can do with the font. If this field prohibits
494 modification fontforge will ask you to make sure you have an agreement with
495 the font designer which supersedes this field.
496
497 My understanding of US law (but check with a lawyer before relying on this)
498 is that:
499
500 * There is minimal legal protection for font designs. Ages ago some legal
501 figure claimed "The alphabet is public." This meant a type design could not
502 be copyrighted.
503
504 However (I'm told) a designer may register (with the government) for a design
505 patent which protects the design for 14 years (if granted). I don't believe
506 it can be renewed, but I may be wrong.
507
508 Registering for a patent is an expensive and time-consuming process and is
509 often outside the ability of a small design firm. As far as I know the law
510 has never been tested in the US so the protection may be questionable.
511 * Font *programs* (such as a postscript or truetype font file, but not a bitmap
512 font file) may be copyrighted. This means the design itself is not protected,
513 but the mechanism for creating it is.
514 * Font names may be trademarked.
515
516 My understanding is that in the UK:
517
518 * There is something called a "design right" which is somewhat like a copyright
519 and protects a design for 5 years. A designer may also register the design
520 with the government up to 5 times to extend this protection to 25 years.
521
522 Throughout the EU:
523
524 * There are EU design rights. I'm not sure about the specifics of these, nor
525 how they interact with country specific laws (as the British design rights
526 above).
527
528 In Canada:
529
530 * Font designs may be registered as "industrial designs" for a limited time
531 (~15 years)
532
533 I would welcome any additions or corrections here, as well as info on the
534 laws governing fonts in other countries. There is a
535 `thread on typophile <http://typophile.com/node/42709>`__ which discusses
536 this.
537
538 There is a good summary at the
539 `font embedding <http://www.fontembeddng.com/fonts-and-the-law>`__ website.
540
541 .. _faq.pointsize:
542
543 **What is a 12 point font?** **(What measurement of the font determines the point size?)**
544 .. image:: /images/pointsize.png
545 :align: right
546
547 A font is 12 points high if the distance between the baselines of two
548 adjacent lines of (unleaded) text is 12 points.
549
550 The pointsize is not based on the sizes of any of the glyphs of the font.
551
552 Back when fonts were made out of metal, the pointsize of the font was the
553 height of the metal slugs used for that font.
554
555 In some sense this is not a very good measure of the size of a font (some
556 fonts may allow more room for accents or ascenders or descenders than others
557 meaning that the height of the actual glyphs will be smaller).
558
559 There is also a measurement scheme based on the x-height of the glyphs.
560
561 In England and the US a point has traditionally meant the pica point
562 (1/72.27:sup:`th` of an inch), while in Europe the point has been the didot
563 point (1/67.54:sup:`th` of an inch). The Europeans have a slightly larger
564 point, but the glyphs of English and European fonts appear the same size.
565 English does not use accents (except in very rare cases) while most European
566 languages do, and the slight increase in the size of the point allows more
567 room for accents.
568
569 (Of course now most Europeans are probably forced to use the pica point by
570 their desktop software, while most computer fonts now contain accented
571 glyphs, so the distinction and the reason for it may have vanished).
572
573 .. _faq.linespace:
574
575 **How do I set the line spacing on a font?**
576 It depends on the kind of font you are generating, the operating system under
577 which you are running, and luck.
578
579 * For Type1 fonts there is no way to set the line spacing. Applications will
580 often take the values specified in the font's bounding box and use those to
581 set the line spacing. This is a really bad idea on their part, but it is
582 common practice.
583 * For True/Open Type fonts the answer is complicated.
584
585 * On the mac
586
587 The line spacing is set by the ascender and descender values of the 'hhea'
588 table. These in turn are set to the bounding box values of the font. Not a
589 good choice. You can control these values from
590 :ref:`Element->Font Info->OS/2->Metrics <fontinfo.TTF-Metrics>`.
591 * On windows
592
593 Line spacing is supposed to be set to the Typo Ascent/Typo Descent values
594 specified in the OS/2 table. And these in turn are supposed to sum to the
595 emsize. (FontForge sets these values to the ascent/descent values you specify
596 for your font). Unfortunately most windows applications don't follow this
597 rule, and instead base linespacing on the Win Ascent/Descent values of the
598 OS/2 table. These values are supposed to specify a clipping region for the
599 font (not line spacing). The clipping region should be as big as the font's
600 bounding box, but in some cases needs to be bigger. Again these may be set
601 from :ref:`Element->Font Info->OS/2->Metrics <fontinfo.TTF-Metrics>`.
602
603 (The clipping region should be bigger than the bounding box if a GPOS lookup
604 could move a glyph so that it extended beyond the bounding box (mark to base
605 is likely to cause problems). I'm not sure how this applies to cursive
606 positioning in Urdu where GPOS lookups can make lines arbitrarily tall)
607
608 MicroSoft has added a redundant bit to the OS/2 table, which essentially
609 tells applications they should follow the standard and use the Typographic
610 linespacing fields. This bit is called UseTypoMetrics in OpenType, and in
611 FontForge it is available as
612 :menuselection:`Element --> Font Info --> OS/2 --> Metrics --> Really Use Typo Metrics`.
613 * On linux
614
615 I don't know that there is a general consensus. An application will probably
616 use one of the above methods.
617
618 Actually this is not a very useful question any more. Modern fonts tend to
619 have several different scripts in them and the different scripts may have
620 different line spacing requirements. Even within one script there may be
621 differences (English uses no (or extremely few) accented letters, while most
622 other European languages use accents, thus English could be set more densely
623 than German).
624
625 Instead of having one global measurement which controls the line spacing for
626 all uses of the font, it is better to have more specific measures which
627 control the line spacing dependent on conditions. The OpenType
628 :doc:`'BASE' table </ui/dialogs/baseline>` does this. It allows you to specify extent
629 data depending on script, language and active feature (for example, a 'mkmk'
630 feature might increase the line spacing). I don't know whether any
631 applications actually make use of these data
632
633 .. _faq.em-units:
634
635 **How big will my glyphs be?**
636 Unfortunately this seemingly simple question cannot be answered. Your glyphs
637 may be any size. Outline glyphs may be scaled and even bitmap glyphs will be
638 different sizes depending on the screen resolution.
639
640 Suppose instead that you have an outline font that you draw at 12 points.
641 Then we can answer the question.
642
643 Suppose you have a dash glyph that is 500 internal units long, and the font
644 has an em-size of 1000 units. Then your glyph will be 500/1000 * 12 = 6points
645 long. On a 72 dpi screen this will mean the dash is 6 pixels long.
646
647 **What are em-units? (internal units?)**
648 When you create your font you can use
649 :ref:`Element->Font Info->General <fontinfo.PS-General>` to provide an
650 em-size for your font. This is the sum of the typographic ascent and descent
651 (in the days of metal fonts, the height of the metal slugs, the baseline to
652 baseline distance). Generally the em-size will be 1000 or 2048. This gives
653 you the number of internal units (also called em-units) used to represent em.
654
655 Within fontforge outline glyphs are displayed using the coordinate system
656 established here. See also the
657 :ref:`section on em-units in the overview. <overview.em-unit>`
658
659 .. _faq.license:
660
661 **What's a good license to use on an open source font?**
662 Many fonts have been released under one of the licenses designed for open
663 source programs --
664 `see the Open Source Initiative list of approved licenses <http://www.opensource.org/licenses>`__
665 -- but these generally do not meet the specific needs of font designers. I
666 know of two licenses specifically produced for fonts:
667
668 * `The Open Font License from SIL <http://scripts.sil.org/OFL>`__ (and its
669 `FAQ <http://scripts.sil.org/OFL-FAQ_web>`__)
670
671 The above is the license I would
672 recommend.:doc:`A collection of unofficial translations of the OFL </appendices/OFL-Unofficial>`.
673 These are not legally binding but may help non-English speakers get the
674 intent of the license.
675 * `The license Bitstream used to release the Vera fonts <http://www.gnome.org/fonts/#Final_Bitstream_Vera_fonts>`__
676
677 The `GNU General Public License <http://www.gnu.org/licenses/gpl.html>`__ is
678 also often used.
679
680 .. _faq.Minimum:
681
682 **Minimum requirements**
683 This depends heavily on what you want to do. FontForge is mainly limited by
684 memory (though screen real estate can be a problem too)
685
686 * If you are interested in scripts with no more than few hundred simple glyphs
687 (like the latin alphabet) then 192Mb is more than enough.
688 * If you are doing serious editing of CJK fonts then 512Mb is on the low end of
689 useability.
690
691 FontForge requires a color (or grey-scale) monitor -- black & white will not
692 suffice.
693
694 On Windows, FontForge is built with msys2/mingw-w64. As such, the minimum
695 supported version of Windows depends on what FontForge's dependent libraries
696 support. At the time of writing, this is Windows 7 or newer.
697
698 On Mac, the bundle is built with Homebrew, which supports the last three
699 versions. This means that the bundle is also tied with this support scheme,
700 so at the time of writing, the minimum supported version is macOS 10.13
701 (High Sierra).
702
703 .. _faq.excessive-memory:
704
705 **Why does FontForge use so much memory?**
706 Fonts are generally stored in a very compact representation. Font formats are
707 designed to be small and easily rasterized. They are not designed to be
708 edited.
709
710 When it loads a font FontForge expands it into a more intuitive (well
711 intuitive to me) format which is much easier to edit. But is much bigger.
712
713 It would probably be possible to rewrite FontForge to use a more efficient
714 memory representation. But this would be an enormous amount of work and
715 doesn't interest me.
716
717 Sfd files are large because they are an ASCII representation of this same
718 expanded format. They weren't designed to be compact but to be legible.
719
720 See also:
721 :ref:`My system keeps crashing because FontForge keeps running out of memory. What can I do about it? <faq.memory>`
722
723 .. _faq.font-install:
724
725 **How do I install the fonts once I've made them?**
726 Well it rather depends on what system you are working on, and what type of
727 font you've got:
728
729 .. _faq.X-Install:
730
731 **Unix & X**
732 Outline fonts and fontconfig
733 Many programs now use fontconfig to find fonts (including fontforge).
734 To install a font for fontconfig, simply copy the file into your
735 ~/.fonts directory.
736
737 Bitmap fonts, and vanilla X11 installs
738 I'd suggest that you look at the
739 `linux font HOWTO file <http://www.linuxdoc.org/HOWTO/Font-HOWTO.html>`__,
740 and the
741 `font deuglification HOWTO <http://www.linuxdoc.org/HOWTO/mini/FDU/>`__
742 as good starting points. But I'll run over the highlights
743
744 Essentially you designate one (or several) directories as a "font
745 directory". You move your fonts to that directory. You build up certain
746 data structures that X needs, and you tell X to include this directory
747 in your font path. Sadly different versions of X and the X font server
748 use slightly different conventions. You may need to alter these
749 procedures a bit.
750
751 For example, if you want to install a *bdf font* called frabnuts-13.bdf
752 then you might:
753
754 ::
755
756 $ mkdir my_fonts
757 $ mv frabnuts-13.bdf my_fonts
758 $ cd my_fonts
759 $ bdftopcf frabnuts-13.bdf >frabnuts-13.pcf
760 $ mkfontdir
761 $ xset fp+ `pwd`
762
763 and your fonts should be installed. After that, whenever you start X
764 you need to remind it of where your fonts live, so you should add ::
765
766 $ xset fp+ /home/me/my_fonts
767
768 to your .xsession (or equivalent).
769
770 If you want to install *postscript fonts*
771
772 You should generate them as postscript binary (.pfb) files, then move
773 both the .pfb and the .afm file into (one of) your font directory(ies)
774 and run
775 `type1inst <http://rpmfind.net/linux/rpm2html/search.php?query=type1inst>`__
776 in it.
777
778 type1inst will probably complain that your font doesn't have a foundry
779 and will probably get the encoding wrong. You can either:
780
781 * Ignore it and nothing bad will happen
782 * Manually edit fonts.scale after running type1inst to fix these entries
783 * Make your font's Copyright be reasonable, and then edit type1inst and
784 add your foundry (directions for this are in type1inst itself)
785
786 If you want to install *truetype fonts*
787
788 You move the .ttf file into your font directory and run mkttfdir and
789 mkfontdir.
790
791 (`mkttfdir <http://rpmfind.net/linux/rpm2html/search.php?query=mkttfdir>`__
792 has a small problem with fonts created by FontForge, it will almost
793 invariably complain that it doesn't recognize the foundry. You can
794 safely ignore this, but if it bothers you then add a line to ttmkfdir.c
795 at 936 ::
796
797 { "PFED", "FontForge" },
798
799 Some versions of X (ie, those shipped by redhat) rely on the x font
800 server to do font work rather than the X server itself. You may need to
801 use chkfontpath to add your new directory to the font server's font
802 path (rather than xset fp).
803
804 You may also need to insure that the font directory (and all its parent
805 directories) are readable to world. (the font server runs as a
806 non-privileged user)
807
808 I haven't seen anything that says X supports *opentype* fonts yet, but
809 since freetype does (and I think X's rasterizer uses freetype) then X
810 might support them too. Installing them will require manual editing of
811 fonts.scale though (mkttfdir uses freetype1 which doesn't support otf
812 files).
813
814 That sounds really confusing. I apologize, I'm not a good writer and
815 there are too many choices in configuring X...
816
817 **KDE**
818 (I don't know KDE very well, so take my experience with a grain of
819 salt) Under KDE there is a tool called
820 `kfontinst <http://www.cpdrummond.uklinux.net/kfontinst/>`__ which is
821 supposed to do all the configuration work for you. I was only able to
822 get it to work as root and had to reconfigure my system to follow its
823 conventions, but once that was done it installed X fonts quite handily.
824 I never did figure out how to get it to install ghostview fonts. (I
825 experimented with version 0.9.2)
826
827 **TeX**
828 TeX has its own (platform independent) system for installing fonts. I've
829 described my experiences so far
830 :ref:`elsewhere in this document <PfaEdit-TeX.TeX-Install>`.
831
832 .. _faq.Windows-Install:
833
834 **Windows**
835 You install truetype fonts on windows by dropping them into the
836 \\Windows\\Fonts directory on your machine. You may need to set the execute
837 permission bit on the font before installing it.
838
839 .. warning::
840
841 Do **NOT** generate the font directly into \\Windows\\Fonts
842 This doesn't seem to work (at least on under my XP machine). You must
843 generate the font into another directory and drag & drop it to
844 \\Windows\\Fonts .
845
846 If you want to use type1 fonts you will need to install adobe type manager
847 and follow its instructions.
848
849 If you want to install opentype fonts then on old systems (before windows
850 2000, I think) you need to install ATM, on more recent systems opentype
851 should work the same way truetype does.
852
853 .. _faq.OS9-Install:
854
855 **Macintosh OS 9**
856 Oh dear. The mac sticks fonts into resource forks and wraps them up in its
857 own headers. Mac fonts aren't compatible with anybody else's. FontForge
858 can create a resource fork if it wraps the font up in a macbinary
859 encoding. See the :ref:`following question <faq.How-mac>` for more
860 information.
861
862 I've also written `some utilities <http://fondu.sourceforge.net/>`__
863 designed to convert from one format to another and they may prove useful.
864
865 `University of Oregon has some links that might be helpful <http://babel.uoregon.edu/yamada/fontconversionfaq.html>`__.
866
867 Once you've converted your fonts you just drop them into the System Folder
868 and they should be available after that.
869
870 .. _faq.OSX-Install:
871
872 **Macintosh OS X**
873 On OS/X fonts should be placed either in the top-level Library/Fonts
874 directory (By default ``/Mac OS X/Library/Fonts/``), in the
875 System/Library/Fonts directory, or in the user's appropriate fonts
876 sub-directory (``~/Library/Fonts``).
877
878 Either a resource font (unwrapped from its macbinary wrapper) or a dfont
879 may be used. You can also use straight ttf and otf files (ie. the same
880 file you might use on Unix or MS).
881
882 As far as I can tell the old NFNT bitmap resources do not work on my OS
883 10.2. If you want to use bitmap fonts wrap them up in a ttf file or an
884 sfnt. However if you want to use a Type1 resource font, you must generate
885 a (useless) bitmap font and install them both.
886
887 .. _faq.Bad-Windows-Install:
888
889 **Why won't FontForge's fonts install on some MS Windows machines?**
890 Do **NOT** generate a font directly into the \\windows\\fonts directory.
891 Generate the font into a different directory and then use windows drag and
892 drop to install the font. (Windows appears to do magic when it moves the font
893 into that directory).
894
895 Recently (2009) a windows security patch decided that fonts with a 'name'
896 table bigger than 5K were insecure and refused to install them. Frequently
897 this is caused by having the full text of a license included in the font.
898
899 I am told that fonts produced by old versions of FontForge will not install
900 on Windows 2000 (and XP) systems.
901
902 I believe this problem is fixed now (as of 20-Oct-2003). If you have an older
903 version please upgrade.
904
905 If you are copying a font from another machine make sure the execute bit is
906 set in the permissions of the font file (I don't know how to do this with the
907 Windows UI, under cygwin you say ``$ chmod +x foo.ttf``
908
909 .. _faq.How-mac:
910
911 **How do I edit fonts from my macintoy?**
912 Mac OS/9 (or less)
913 Traditionally the macintosh has stored fonts in the resource fork of files
914 (after about OS/8.5 I believe the mac also supported bare .ttf files).
915 This causes problems for any machine other than a mac, because the very
916 concept of a resource fork is lacking.
917
918 There are several programs whose job it is to store all of a macintosh
919 file in one package that can be manipulated on other systems (mac binary
920 and binhex are the most common). FontForge knows how to read both of these
921 formats and can extract a postscript or truetype font from either.
922 FontForge can also create fonts in macbinary format (I see no reason to
923 support both output formats, and macbinary is slightly simpler).
924
925 So to edit a font on your mac:
926
927 #. Find the file in the ``System Folder:Fonts`` folder
928 #. Copy the file over to your unix machine
929
930 * Use Fetch and specify macbinary format
931 * Or use some tool like binhex which can create the file directly
932 #. Open it in FontForge
933 #. Edit it
934 #. Save it back in macbinary format
935 #. Copy it back to your mac
936
937 * Fetch will automatically undo the macbinary wrappers and make it be
938 correct
939 * Or various other tools can unwrap it.
940 #. Drop it back into your system folder (where it is automagically moved to
941 Fonts)
942
943 **Note:** make sure you either replace the original font files, or that
944 you rename the font within fontforge and (for postscript fonts) that you
945 give it a new unique id. See the :doc:`Font Info </ui/dialogs/fontinfo>` dlg.
946
947 **Caveat:** A postscript font is useless on a macintosh unless it is
948 accompanied by at least one bitmap font. If you generate a postscript font
949 make sure you also generate an NFNT as well (this has the FOND).
950
951 **Caveat:** The mac is picky about the filename used to contain a
952 postscript file. It is based on the postscript font name but suffers a
953 transformation. Don't try to rename this file. Basically the rules are
954 (see
955 `Adobe Technical Note 0091 <http://adobe-type-tools.github.io/font-tech-notes/pdfs/0091.Mac_Fond.pdf>`__):
956
957 * The fontname is broken into chunks where each chunk starts with a capital
958 letter.
959 * The first chunk may have four lower case letters following the initial
960 capital
961 * Subsequent chunks may only have two lower case letters following the
962 capital.
963 * Non-letter glyphs (or at least hyphens) vanish.
964
965 So TimesBold => TimesBol, Helvetica-BoldItalic => HelveBolIta,
966 NCenturySchoolbook => NCenSch
967
968 Mac OS/X
969 On Mac OS/X you can run FontForge directly. OS/X has several font
970 formats, some fonts are stored in the old format (see above), while others
971 are stored as data fork resources. The data fork font files generally have
972 the extension ".dfont". On a Mac FontForge is able to edit both formats
973 directly. OS/X also supports normal .otf and .ttf font files.
974
975 Mac OS/X does not seem to support the old NFNT bitmap format, but it still
976 requires that a bitmap font in NFNT format be present before it will use a
977 resource-based postscript font. (It is probably not the NFNT resource
978 which is required, but the FOND which goes along with it. But I'm not
979 going to write something to produce a bare FOND resource -- nothing else
980 does either).
981
982 .. _faq.How-family:
983
984 **How do I create a mac font family? (How do I get the mac to group my fonts so that the italic and bold styles work)?**
985 I am told that in 10.6 the preferred method of grouping fonts is to use ttc
986 files, prior to 10.6 ttc files didn't work (well) and the preferred method was
987 to produce mac font families.
988
989 Snow Leopard (10.6) and after
990 First open all the fonts that make up your family in fontforge.
991
992 Then choose :menuselection:`File --> Generate TTC`
993
994 This should be simpler than the old method.
995
996 Leopard (10.5) and before
997 For the Style menu in most mac applications to work on your fonts, you
998 must create a font family. You do this with the
999 :ref:`File->Generate Mac Family <filemenu.GenerateMac>` command.
1000
1001 All the fonts in a family must have the same Family name (See the
1002 :doc:`font info </ui/dialogs/fontinfo>` dialog). Font Families are handled rather
1003 differently under Carbon (the old font handling mechanism used in OS 9)
1004 and under ATSUI (on OS/X).
1005
1006 Under Carbon, the font family is limited by the design of the Mac 'FOND'
1007 resource, which reflects the computer font technology of the early 1980s.
1008 Modern computer fonts often have variants that can't be expressed in it.
1009 FONDs support any combination (except one containing both Extend and
1010 Condense) of the following styles:
1011
1012 * Bold
1013 * Italic
1014 * Condense
1015 * Extend
1016 * Underline
1017 * Shadow
1018 * Outline
1019
1020 Mac FONDS do not support "Black", "DemiBold", "Light", "Thin" or
1021 "Extra-Condensed" variants.
1022
1023 Under ATSUI, on the other hand, a family seems to consist of all fonts in
1024 a given resources file which have the same FamilyName.
1025
1026 In order that a family be useful under both systems, Apple appears to
1027 place several FONDs inside such a font file. Each FOND contains a
1028 sub-family of related fonts. The 'FOND's appear to be distributed as
1029 follows:
1030
1031 Suppose you have a family of fonts with the following styles:
1032
1033 Regular, Bold, Italic, Bold-Italic, Condense, Condense-Italic, Oblique,
1034 Light, Light-Italic, Black
1035
1036 Then you should create a font family with the styles that the FOND does
1037 support, which in this case would be
1038
1039 Regular, Bold, Italic, Bold-Italic, Condense, Condense-Italic
1040
1041 For each of these use :ref:`Element->Font Info->Mac <fontinfo.FONDName>`
1042 to set the FondName field to the font's family name.
1043
1044 Change the fondname of the other styles, so that the Oblique style has
1045 Oblique in the fond name, the two Light styles have Light in the fond
1046 name, and so on. Set the :ref:`Mac Style <fontinfo.Mac-Style>` on the
1047 "Light" variant of the font to be Regular (everything unselected) and set
1048 the style of the "Light-Italic" variant to be "Italic" -- that is, forget
1049 about the "Light", the FOND can't handle it, that's why we moved it into
1050 its own FOND.
1051
1052 Having done this setup, the
1053 :ref:`Generate Mac Family <filemenu.GenerateMac>` command should be able
1054 to put all the fonts into appropriate FONDs, and then place all the FONDs
1055 into one file, which the Mac should interpret correctly.
1056
1057 .. _faq.Mac-ATM:
1058
1059 **Why doesn't ATM work on my (mac) fonts?**
1060 Insure that the font has an encoding of Macintosh Latin when you generate it.
1061
1062 This is really a limitation on ATM's part and there's nothing FontForge can
1063 do about it.
1064
1065 If you generate a font with an encoding other than Macintosh Latin, then the
1066 Mac's default behavior is to force the postscript font to have a Macintosh
1067 Latin encoding. There is a mechanism to turn this behavior off, but if it is
1068 turned off then ATM won't work at all.
1069
1070 .. _faq.windows:
1071
1072 **How do I edit fonts on MS windows?**
1073 See the `MS Windows install instructions <https://fontforge.org/en-US/downloads/windows-dl/>`__.
1074
1075 .. _faq.Bad-Windows-Fonts:
1076
1077 **Why don't my fonts work on windows?**
1078 Here's one possibility: Windows sometimes (and I don't know when) insists on
1079 having a name for the font in the appropriate language (ie. a Japanese entry
1080 for a SJIS font). Try going to
1081 :ref:`Element->Font Info->TTF Names <fontinfo.TTF-Names>` and adding a set of
1082 strings for your language.
1083
1084 Another possibility is discussed :ref:`here <faq.Bad-Windows-Install>`.
1085
1086 .. _faq.Missing-Refs:
1087
1088 **When I load an otf or a type1 font most of my references have been replaced by inline copies. How do I get my references back?**
1089 It is very difficult to figure out old references when loading postscript
1090 fonts. Instead FontForge has a special command,
1091 :ref:`Edit->Replace With Reference <editmenu.ReplaceRef>`, that will search
1092 for potential reference candidates in the font and replace them with
1093 references.
1094
1095 .. _faq.kern-info:
1096
1097 **Does FontForge read in the old kerning information from fonts?**
1098 This question needs to be broken down into cases:
1099
1100 **TrueType and OpenType fonts**
1101 Yes. The kerning information is stored in either the 'kern' or 'GPOS'
1102 tables of these fonts and FontForge can read them (Apple has made a number
1103 of extensions beyond the original truetype spec, FontForge can read these
1104 too).
1105
1106 **PostScript Type1 fonts anywhere other than the Mac.**
1107 The kerning information is not stored in a Type 1 font file. Instead it is
1108 stored in a file with the same filename as the font file but with the
1109 extension ".afm". When FontForge reads a PostScript font it will check for
1110 an associated afm file, and if found will read the kerning information
1111 from it.
1112
1113 **PostScript Type1 fonts on the Mac.**
1114 No. Again the kerning information is not stored in the font file (it is
1115 stored in a bitmap font file), but on the mac it is impossible to guess
1116 what name to use for the associated bitmap file, and FontForge does not
1117 even try.
1118
1119 See the info below on how to load kerning from a
1120 :ref:`FOND <faq.FOND-kern>`.
1121
1122 **AFM and TFM files.**
1123 FontForge can read kerning information directly from these files and apply
1124 those data to a font. See the
1125 :ref:`File->Merge Feature Info <filemenu.Merge-feature>` menu command.
1126
1127 .. _faq.FOND-kern:
1128
1129 **Mac resource files containing FOND resources.**
1130 The mac stored kerning information in the FOND resource associated with a
1131 bitmap font (it is not stored in the file with the postscript font). If
1132 you wish kerning data for a mac postscript font, you must find a font file
1133 containing a bitmap font with the same family and style as the postscript.
1134 FontForge can read kerning information directly from these files and apply
1135 those data to a font. See the
1136 :ref:`File->Merge Feature Info <filemenu.Merge-feature>` menu command.
1137
1138 **Adobe Feature files**
1139 Adobe has a textual representation for OpenType features and lookups, and
1140 fontforge can read these files with the
1141 :ref:`File->Merge Feature Info <filemenu.Merge-feature>` menu command.
1142
1143 .. _faq.outline-conversion:
1144
1145 **How do I convert from one outline format to another?**
1146 The simple answer that will work if you want something quick is:
1147
1148 #. File->Open
1149
1150 * an existing font
1151 #. :doc:`Element->Generate Fonts </ui/dialogs/generate>`
1152
1153 * to generate the desired output.
1154
1155 If you are converting from one PostScript format to another (pfb to otf, for
1156 example) that's all you need to do. If you are converting between PostScript
1157 and TrueType, you can improve matters if you do a little more work.
1158
1159 Converting from TrueType (quadratic splines, ttf files) to PostScript (cubic
1160 splines, otf and pfb files):
1161
1162 #. File->Open
1163
1164 * (the truetype font)
1165 #. :ref:`Element->Font Info->Layers <fontinfo.Layers>`
1166
1167 * Check <*> All layers cubic
1168 * [OK]
1169 #. :menuselection:`Edit --> Select --> Select All`
1170 #. :ref:`Element->Simplify->Simplify <elementmenu.Simplify>`
1171 #. :ref:`Hints->Auto Hint <hintsmenu.AutoHint>`
1172 #. :doc:`Element->Generate Fonts </ui/dialogs/generate>`
1173
1174 Converting from PostScript (cubic splines, otf and pfb files) to TrueType
1175 (quadratic splines, ttf files):
1176
1177 #. :menuselection:`File --> Open`
1178 #. :ref:`Element->Font Info->Layers <fontinfo.Layers>`
1179
1180 * Check <*> All layers quadratic
1181 * [OK]
1182 #. :menuselection:`Edit --> Select --> Select All`
1183 #. :ref:`Hints->AutoInstr <hintsmenu.AutoInstr>`
1184 #. :doc:`Element->Generate Fonts </ui/dialogs/generate>`
1185
1186 .. _faq.bitmap-conversion:
1187
1188 **How do I convert from one bitmap format to another?**
1189 This is also easy, open a bitmap font, and then use
1190 :doc:`Element->Generate Fonts </ui/dialogs/generate>` to generate the desired output.
1191
1192 .. _faq.outline-bitmap:
1193
1194 **How do I convert from an outline format to a bitmap format?**
1195 Load the outline font. Then use
1196 :ref:`Element->Bitmaps Available <elementmenu.Bitmaps>` to generate bitmap
1197 strike(s) of the appropriate size(s). This process is called rasterization,
1198 at small pixel sizes it is difficult for a computer to do well. You might be
1199 advised to examine the results of the rasterization in the
1200 :doc:`bitmap window </ui/mainviews/bitmapview>` (with
1201 :ref:`Window->Open Bitmap Window <windowmenu.Bitmap>`), and possibly fixup
1202 the bitmap as you go. Then when done select
1203 :doc:`Element->Generate Fonts </ui/dialogs/generate>`, turn off outline font generation
1204 (unless you also want an outline font, of course), and select the desired
1205 bitmap format.
1206
1207 .. _faq.bitmap-outline:
1208
1209 **How do I convert from a bitmap format to an outline format?**
1210 Unless you have a very large bitmap font (such as a TeX font) the following
1211 procedure will not produce good results.
1212
1213 * Before you do anything else make sure you have either the
1214 :doc:`potrace or autotrace programs </techref/autotrace>` installed on your system
1215
1216 --------------------------------------------------------------------------------
1217
1218 * Create a new font
1219 * Use the :ref:`File->Import <filemenu.Import>` command to import your bitmap
1220 font into this new font
1221
1222 * Be sure to check the ``[] Into Background`` checkbox
1223 * :menuselection:`Edit --> Select --> Select All`
1224 * :menuselection:`Element --> Autotrace`
1225 * :menuselection:`Element --> Add Extrema`
1226 * :menuselection:`Element --> Simplify`
1227
1228 At this point you will probably want to look at your outline glyphs and clean
1229 them up.
1230 * :menuselection:`File --> Generate Fonts`
1231
1232 .. _faq.AAT2OT:
1233
1234 **Converting from Apple's Advanced Typography to OpenType**
1235 There are a number of similarities between the results achieved by these
1236 formats, but the overlap is not total. Most conversions will lose some
1237 information.
1238
1239 The simple answer is that this is pretty much automatic. You load an apple
1240 font, and then Generate an equivalent font with the [*] OpenType checkbox
1241 checked in the Options dialog.
1242
1243 FontForge will convert any non-contextual features where Apple's
1244 feature/setting matches an OpenType feature. (This includes non-contextual
1245 ligatures even though they live in a contextual format). For more information
1246 see the section on this :ref:`interconversion <gposgsub.Conversion>`.
1247
1248 .. _faq.OT2AAT:
1249
1250 **Converting from OpenType to AAT**
1251 Again this is mostly automatic. Load an OpenType font, and Generate an
1252 equivalent font with the [*] Apple checkbox checked in the Options dialog.
1253
1254 FontForge is capable of converting some contextual OpenType tables to AAT.
1255 Non-contextual features which match an Apple feature/setting will be
1256 converted too. For more information see the section on this
1257 :ref:`interconversion <gposgsub.Conversion>`.
1258
1259 .. _faq.hint-subs:
1260
1261 **How do I make FontForge use hint substitution?**
1262 It happens automagically.
1263
1264 Or you can control the place where hint sets change by selecting a point and
1265 choosing :ref:`Element->Get Info <getinfo.HintMask>`\ ->Hint Mask.
1266
1267 .. _faq.flex-hints:
1268
1269 **How do I make FontForge use flex hints?**
1270 It happens automagically. FontForge will generate flex hints in situations
1271 where it is appropriate to do so. You don't need to do anything. If flex
1272 hints are used then the necessary subroutines will be added to the font. If
1273 they are not needed then the subroutines will not be added.
1274
1275 .. _faq.flex2:
1276
1277 **How can I tell if it is going to use flex hints?**
1278 If you want to see whether FontForge is going to use flex hints, turn on the
1279 :ref:`UpdateFlex <prefs.UpdateFlex>` preference item and open a view on the
1280 glyph. FontForge displays a green halo around the center point of a flex
1281 hint.
1282
1283 .. _faq.fuzzy:
1284
1285 **My glyphs are all perfectly hinted, why do some stems have different widths (or appear fuzzy, or fade away completely)?**
1286 Both PostScript and TrueType require that glyphs be drawn in a clockwise
1287 fashion. Some rasterizers don't care. But other rasterizers will have
1288 difficulties with counter-clockwise paths and produced stems of different
1289 widths when they should be the same, or fuzzy stems, or even nothing at all.
1290 The solution to this is to run :menuselection:`Element --> Correct Direction`
1291 on all your glyphs before generating a font.
1292
1293 But sometimes the poor rasterizer just can't do the right thing...
1294
1295 .. _faq.mensis:
1296
1297 **How do I set a particular bit in the OS/2 table (or any other)?**
1298 FontForge does not do this, but I have written a companion program,
1299 `mensis <http://mensis.sf.net/>`__ (Latin for: "to or for, by, with or from
1300 tables") which gives you bit access to tables. It provides both UI and
1301 scripting access.
1302
1303 .. _faq.sfd:
1304
1305 **What's an sfd file?**
1306 This is FontForge's own format. It a text file, which means it is large but
1307 readable to a human (OK, by a determined human). It only uses ASCII
1308 characters which means it should not be distorted by old mail programs if
1309 sent around the internet (it's a registered MIME type
1310 ``application/vnd.font-fontforge-sfd``).
1311
1312 :doc:`An overview of the format. </techref/sfdformat>`
1313
1314 .. _faq.background:
1315
1316 **FontForge's grey background distresses me. How do I change it?**
1317 The general mechanism is discussed on the :doc:`X Resources page </ui/misc/xres>`.
1318
1319 :doc:`Here are some combinations you might try </ui/misc/fontforge-themes>`.
1320
1321 .. _faq.fontsize:
1322
1323 **The fonts FontForge uses in its GUI are too small (too big) how do I change them?**
1324 The X server does not have a good idea about screen resolution, and when
1325 fontforge asks it, the answer is often wrong. The result is that ff may use
1326 fonts that are too small (potentially too big too, but no one has complained
1327 about that one yet). You can tell fontforge the true screen size by adding a
1328 line like
1329
1330 ::
1331
1332 Gdraw.ScreenWidthInches: 14.7
1333 Gdraw.ScreenWidthCentimeters: 37.3
1334
1335 to your ``~/.Xdefaults`` file (The general mechanism is discussed on the
1336 :doc:`X Resources page </ui/misc/xres>`). If the GUI fonts are still too small you can
1337 lie about the screen size. If you claim the screen is smaller (in inches or
1338 centimeters) than it actually is, ff will use a bigger font.
1339
1340 .. _faq.monospace:
1341
1342 **How do I mark a font as monospaced?**
1343 You don't. Just insure that all the glyphs in the font have the same width
1344 and then FontForge will automatically mark it as monospaced for you. (If you
1345 mark it as monospaced incorrectly some rasterizers will give strange
1346 results).
1347
1348 If you want to set a font's panose values yourself
1349 (:ref:`Element->Font Info->OS/2->Panose <fontinfo.Panose>`) then set the
1350 Proportion field to Monospaced. This is necessary but not sufficient to mark
1351 the font as a whole as monospaced.
1352
1353 If you are unsure whether all the glyphs in your font have the same advance
1354 width use
1355 :ref:`Element->Find Problems->Random->Check Advance. <problems.Advance>`
1356
1357 When I say "all glyphs" I really mean *all* glyphs. Even glyphs which unicode
1358 says should be 0 width must have the same width as everything else. MicroSoft
1359 suggests that GPOS be used to do accent combination (etc.) and then change
1360 the advance width on any marks (accents) to be 0.
1361
1362 .. _faq.new-encoding:
1363
1364 **How I do tell fontforge about a new encoding**
1365 First ask yourself if you really need a new encoding? If you are using
1366 OpenType or TrueType fonts you can usually get by with the standard unicode
1367 encoding. But if you really need a new one here is a rough idea of what to
1368 do:
1369
1370 Figure out what your encoding looks like. Often this will involve searching
1371 around the web to find an example of that encoding. For instance if you want
1372 a devanagari encoding you might look at
1373 `a site which shows the ISCII encodings <http://www.cwi.nl/~dik/english/codes/indic.html>`__
1374
1375 These encodings only show the top 96 characters, presumably the others are
1376 the same as US ASCII. Look at the images and figure out how they map to
1377 unicode (or more precisely what the appropriate postscript names are for
1378 those characters).
1379
1380 Create a file (call it "Devanagari.ps" in this case). It should start with a
1381 line:
1382
1383 ::
1384
1385 /Devanagari {
1386
1387 This tells FontForge that the encoding is called "Devanagari", then follow
1388 this with a list of all the character names (preceded by a slash). We start
1389 with ASCII which starts with 32 .notdef characters, then space, etc.
1390
1391 ::
1392
1393 /Devanagari {
1394 /.notdef
1395 /.notdef
1396 ...
1397 /.notdef
1398 /space
1399 /exclam
1400 /quotedbl
1401 ...
1402 /braceright
1403 /asciitilde
1404 /.notdef
1405 ...
1406 /.notdef
1407 /uni0901
1408 /uni0902
1409 ...
1410 /uni096F
1411 }
1412
1413 Now load this file into FontForge's list of encodings with Encoding->Load
1414 Encoding, and then apply it to whatever fonts you want.
1415
1416 .. _faq.new-name:
1417
1418 **How do I add a glyph with a new name?**
1419 Let's say you wanted to add a "dotlessi" glyph to an ISO-8859-1 font (this
1420 encoding does not include dotlessi). There are two ways to approach the
1421 problem:
1422
1423 #. Bring up :menuselection:`Encoding --> Add Encoding Slots...`
1424
1425 Type in the number of extra glyphs you want (probably 1)
1426
1427 Press ``OK``
1428
1429 Scroll down to the end of the font and find the new slot
1430
1431 Select it
1432
1433 Bring up :menuselection:`Element --> Glyph Info`
1434
1435 Type your new name into the ``Unicode Name`` field (in this example you'd
1436 type in ``dotlessi``)
1437
1438 Press the ``Set From Name`` button
1439
1440 Press ``OK``
1441
1442 Now draw a dotlessi in the glyph.
1443 #. Bring up :menuselection:`Encoding --> Reencode --> ISO-10646-1`
1444
1445 Bring up :menuselection:`View --> Goto`
1446
1447 Type in ``dotlessi``
1448
1449 Press ``OK``
1450
1451 Now draw the dotlessi glyph in the selected glyph slot
1452
1453 Bring up :menuselection:`Encoding --> Reencode` again
1454
1455 Change the encoding back to whatever it was
1456
1457 .. _faq.glyphnames:
1458
1459 **Why does FontForge give some of my glyphs the wrong name?**
1460 FontForge's naming conventions are those specified in
1461 `Adobe's glyph naming conventions <http://partners.adobe.com/public/developer/opentype/index_glyph.html>`__,
1462 and, unfortunately, there are some problems here (generally for compatibility
1463 with old encodings). I am aware of the following issues:
1464
1465 Delta
1466 is assigned to U+2206, "INCREMENT" rather than U+0394, "GREEK CAPITAL
1467 LETTER DELTA", probably because Increment was part of the old MacRoman
1468 encoding.
1469
1470 Omega
1471 is assigned to U+2126, "OHM SIGN", rather than U+03A9, "GREEK CAPITAL
1472 LETTER OMEGA".
1473
1474 mu
1475 is assigned to U+00B5, "MICRO SIGN", rather than U+03BC, "GREEK SMALL
1476 LETTER MU", probably because Micro Sign was part of ISO-Latin1 and
1477 MacRoman
1478
1479 omega1
1480 Unicode calls this glyph "GREEK PI SYMBOL". It looks like an omega though.
1481
1482 Tcommaaccent, tcommaaccent
1483 are assigned to U+0162,U+0163 "LATIN CAPITAL/SMALL LETTER T WITH CEDILLA",
1484 rather than U+021A,U+021B "LATIN CAPITAL/SMALL LETTER T WITH COMMA BELOW",
1485 probably because of a confusion in the early Unicode spec.
1486
1487 dotlessj
1488 is assigned to U+F6BE (in the private use area) rather than U+0237 "LATIN
1489 SMALL LETTER DOTLESS J", because Adobe saw the need for a dotlessj glyph
1490 before Unicode did and assigned a slot in the private use area. Then in
1491 4.1 Unicode added the glyph to the standard.
1492
1493 .. _faq.non-integral:
1494
1495 **Is it safe to use non-integral coordinates?**
1496 FontForge allows you to edit with non-integral coordinates. Many font editors
1497 don't and some have wondered if the use of non-integral coordinates will it
1498 distort their fonts when they are rasterized?
1499
1500 The answer depends on the font format and how you save the font.
1501
1502 TrueType fonts can only express integral coordinates. When FontForge creates
1503 a TrueType font it will round all coordinates to integers. This rounding will
1504 introduce a slight distortion in the curve.
1505
1506 PostScript (type1, PostScript OpenType, type2, etc.) fonts can express
1507 non-integral coordinates in the font format -- but it takes a lot more space
1508 in the font file. Type1 fonts tend to take more space to express this than
1509 type2 (opentype) fonts. By default FontForge will round to int on these as
1510 well, BUT you can change that in the Generate Options dialog.
1511
1512 If your font is rounded then there will be some distortion. If it is not
1513 rounded there should be no distortion. In PostScript fonts it should be safe
1514 to use non-integral coordinates provided you turn off rounding when you
1515 generate the font. The font file will be bigger, but more accurate.
1516
1517 If you feel you need more accuracy in TrueType you can change the em-size to
1518 8096.
1519
1520 You can do this on PostScript Type1 fonts too, however, there are some
1521 applications which assume that all OpenType postscript fonts have an em-size
1522 of 1000, so it is best not to do this for OpenType output.
1523
1524 .. _faq.Open-size:
1525
1526 **Why isn't my Open Type font much smaller than the .pfb file?**
1527 This is probably because you didn't round to int before saving the font.
1528 FontForge will save the font using fixed point numbers which take up a lot
1529 more space than normal integers.
1530
1531 .. _faq.Open-difference:
1532
1533 **What's the difference between OpenType and PostScript (or TrueType) fonts?**
1534 Both PostScript and TrueType define a file format and a glyph format.
1535 OpenType uses the TrueType file format with a PostScript glyph format
1536 (actually OpenType includes the TrueType glyph format as well, but the
1537 OpenType definition says such fonts should still be called TrueType fonts so
1538 I ignore that aspect).
1539
1540 The PostScript used in OpenType is slightly different from that used in .pfa
1541 and .pfb files. pfa/b files are Type1 fonts while OpenType uses Type2 fonts.
1542 Type2 is almost a superset of Type1 with a few minor changes and many
1543 extensions. Adobe's subroutine based extensions to Type1 (flex hints, hint
1544 substitution, counter hints) have been added to Type2 as direct instructions.
1545
1546 OpenType can also include additional information (see
1547 :ref:`below <faq.AAT-Open>`) that allows for the layout of complex scripts
1548 (Arabic, Indic, etc.) as when as support for glyph variants and other aspects
1549 of fine typography.
1550
1551 .. _faq.AAT-Open:
1552
1553 **What is the difference between AAT (Apple Advanced Typography) and OpenType?**
1554 Both of these are extensions to the basic TrueType font which can contain
1555 information for laying out complex scripts (like Arabic or Indic scripts) as
1556 well as support for glyph variants and other aspects of fine typography. They
1557 use totally different internal formats for the more complex aspects of this
1558 task, formats which have different expressive powers so that neither format
1559 can be converted to the other without the possibility for some loss of
1560 information. I discuss this in greater detail
1561
1562 * :doc:`In the tutorial </tutorial/editexample6-5>`
1563 * :doc:`In the section on advanced typography </techref/gposgsub>`
1564
1565 .. _faq.Tiger-Open:
1566
1567 **Why does a font, which worked fine under 10.3 fail on Mac 10.4 (Tiger)?**
1568 With Tiger (Mac OS/X.4) Apple added some support for OpenType. Some OpenType
1569 features are converted (at runtime) into AAT features. This is good, but not
1570 all features have corresponding Apple feature/settings, and not all lookups
1571 can be converted (conditional lookups cannot be). Unfortunately if a font
1572 contains both OpenType and AAT features Apple now ignores the AAT features
1573 (or so I have been told). The result is that AAT features, which presumably
1574 work, will not be used, while OpenType features, which are not completely
1575 supported and so won't work, are used instead.
1576
1577 .. _faq.save-no-change:
1578
1579 **After I generate a font and quit, why does FontForge ask if I want to save the font? I didn't change anything.**
1580 There are two reasons why this might be happening.
1581
1582 #. Even though you haven't changed anything in this session, FontForge may need
1583 to (re)generate hinting information on one or several glyphs (if, for example
1584 those glyphs have been changed (in an earlier session) but no hints have been
1585 generated for them since). These new hints will mark the font as changed.
1586 #. If your font has an XUID field in the Font Info, then FontForge will
1587 increment the final number in the XUID each time a postscript font is
1588 generated -- and this also counts as a change. (Why does FontForge do this?
1589 Because Adobe says it should. A minor annoyance, but it avoids some problems
1590 with font caching when you change an old version of the font for a new one).
1591
1592 .. _faq.TeX:
1593
1594 **Why doesn't TeX work with my fonts?**
1595 I'm a total novice with TeX. I am told that TeX (or some part of the TeX
1596 chain, dvips perhaps) expects fonts to be encoded in TeX base Encoding --
1597 sometimes called "Adobe Standard" by the TeX docs, but it isn't it's TeX
1598 base. So if you are having printing problems, missing glyphs, etc. try
1599 changing the encoding of your font to TeX Base (Go to
1600 :menuselection:`Element --> Font Info`, select the Encoding tab, select TeX
1601 Base from the pulldown list).
1602
1603 .. _faq.mf-files:
1604
1605 **Why doesn't FontForge let me edit an '.mf' file?**
1606 As Knuth said "(the problem with WSYWYG is that...) What you see is *all* you
1607 get." FontForge suffers from this.
1608
1609 Let us take a simple example. Suppose we have a point defined by
1610
1611 .. parsed-literal::
1612
1613 top\ :sub:`1`\ y\ :sub:`2` = CapHeight
1614
1615 And the user tries to drag point 2 to a new y location. How should FontForge
1616 interpret this? It could:
1617
1618 * Change ``CapHeight``
1619 * Change the width of pen 1
1620 * Change the equation to something like:
1621
1622 .. parsed-literal::
1623
1624 top\ :sub:`1`\ y\ :sub:`2` = CapHeight - 30
1625
1626 * Or to something like:
1627
1628 .. parsed-literal::
1629
1630 top\ :sub:`1`\ y\ :sub:`2` = (CapHeight + XHeight)/2
1631
1632 * Or to half a dozen other things.
1633
1634 So FontForge's method for moving a point around is ambiguous. And I haven't
1635 been able to come up with any reasonable way for disambiguating it.
1636 Suggestions are welcome (but there's no guarantee they'll be implemented).
1637
1638 .. _faq.minify-iconify:
1639
1640 **Why does my window get iconified when I want to minify the view?**
1641 Some window managers (gnome-sawtooth for one) steal meta (alt) clicks from
1642 FontForge. So you can't use meta-middle-click to minify a glyph, you have to
1643 use the :menuselection:`View menu --> Zoom Out` instead.
1644
1645 .. _faq.no-mu:
1646
1647 **Why isn't there a character named "mu" in my greek font?**
1648 Adobe was thinking more of backwards compatibility than sense when they
1649 assigned the names of the greek letters in their unicode encoding. Thus the
1650 name "mu" refers to the Micro Sign (U+00B5) and not to the letter mu. They
1651 also assigned Delta to Increment, and Omega to Ohm Sign.
1652
1653 Adobe has also decided that the character at U+03D6 (said by the Unicode
1654 consortium to refer to "GREEK PI SYMBOL") should be named "omega1", when
1655 "pi1" seems more appropriate.
1656
1657 .. _faq.no-copy-names:
1658
1659 **Why doesn't** :menuselection:`Edit --> Copy` **copy glyph names as well as glyph info?**
1660 Firstly because I believe that any attempt to copy a glyph's name will almost
1661 certainly be better done by defining a custom :doc:`encoding </ui/menus/encodingmenu>`.
1662
1663 Secondly because most of the time you don't want the name copied.
1664
1665 Thirdly because it is esthetically better that copy should only work with
1666 data and not meta-data.
1667
1668 HOWEVER... enough people have asked this question that I've enabled a mode in
1669 :ref:`Edit->Copy From->Char Name <editmenu.CharName>` which allows you to
1670 change the default behavior.
1671
1672 .. _faq.copy-names:
1673
1674 **Why does** :menuselection:`Edit --> Paste` **complain about name duplication?**
1675 Because you have :menuselection:`Edit --> Copy From --> Copy Metadata`
1676 checked. Uncheck it.
1677
1678 .. _faq.disabled-build-menu:
1679
1680 **Why is** ::menuselection:`Element --> Build` **disabled (or gray)?**
1681 When you click on a glyph such as cacute (ć) and you would like to build this
1682 glyph by using the :menuselection:`Element --> Build --> Build Accented Glyph`
1683 you must have two things: the letter c and the '. More specifically: you would
1684 need to have **COMBINING ACUTE ACCENT** (and not just **MODIFIER LETTER ACUTE ACCENT**).
1685 You can find the modifier glyph in the section with the circles. When both are
1686 present you the option will become active.
1687
1688 How can you know what the requirements are for the glyph?
1689 :menuselection:`Element --> Glyph Info...` on the left side go to components.
1690 Fontforge will spell out for you what the Accented glyph is composed of.
1691
1692 .. _faq.cidmaps:
1693
1694 **What on earth are cidmap files and should I care about them?**
1695 Some background:
1696
1697 When postscript was invented every glyph in a font was given a name, and an
1698 encoding which was specified by a 256 element array mapping character codes
1699 to names.
1700
1701 Then they started thinking about CJK fonts (and perhaps Unicode), which have
1702 huge glyph sets, and coming up with reasonable ASCII names for 10,000 glyphs
1703 was :small:`a)` a waste of space, :small:`b)` fairly meaningless. So then
1704 adobe created CID-keyed fonts which have no glyph names and no encodings.
1705 Every glyph has an index (a CID), which is just a number, and this is sort of
1706 treated as a name. Then external to the font is an additional resource (a
1707 cmap) which provides the encoding for the font (and can support really grungy
1708 encoding schemes like SJIS), by mapping a sequence of input bytes to a CID.
1709
1710 Adobe provides certain standard cmap resources (ie. one for SJIS, one for
1711 JIS, one for Extended Unix whatever). Because these files are fairly painful
1712 to write Adobe has assigned standard meanings to CIDs so that everyone can
1713 use the same cmap file. -- Well actually there are 5 or 6 different
1714 standards, Japanese (JIS208), Japanese (JIS212), Korean, Chinese (Hong Kong,
1715 Taiwan), Chinese (Mainland, Singapore), Identity (Unicode) -- So CID 1 might
1716 be space, CID 2 might be "!", CID 935 might be "Katakana ka", etc.
1717
1718 My cidmap files just give me a mapping between Adobe's CIDs and Unicode. This
1719 allows FontForge to know what glyph it is working on. If they aren't present
1720 things should work ok, but FontForge would fill the font view with "?" rather
1721 than the appropriate glyph. And FontForge wouldn't be able to reencode the
1722 font into Unicode or anything else.
1723
1724 So the cidmap files are only useful for people working on CID keyed CJK
1725 fonts. So many europeans/americans won't need them.
1726
1727 .. _faq.simplify:
1728
1729 **Does the simplify command lose accuracy?**
1730 Yes it does.
1731
1732 But not much.
1733
1734 It is designed to replace a set of splines with another spline that nowhere
1735 differs from the original by more than one unit in the local coordinate
1736 system.
1737
1738 If this level of accuracy is not good enough then (In the outline view):
1739
1740 * :menuselection:`Edit --> Select --> Select All`
1741 * :menuselection:`Element --> Transform --> Transform`
1742 * Scale Uniformly: 1000%
1743 * OK
1744 * Simplify
1745 * :menuselection:`Element --> Transform --> Transform`
1746 * Scale Uniformly: 10%
1747 * OK
1748
1749 This will replace a set of splines with a spline that differs from the
1750 original by no more than .1 unit.
1751
1752 .. _faq.cubic-quadratic:
1753
1754 **How does FontForge convert a cubic spline into a quadratic spline for truetype?**
1755 Again this can involve a loss of accuracy.
1756
1757 First FontForge checks to see if the spline happens to be a quadratic already
1758 (this would happen if you'd just read in a truetype font, or if a miracle
1759 occurred when you generated the spline).
1760
1761 Otherwise FontForge will divide the original spline into smaller chunks and
1762 try to find a set of quadratic splines that differ from the cubic by no more
1763 than one unit anywhere. (Once you have picked two end-points and know the
1764 slope at those end-points there is only one quadratic spline possible between
1765 the two).
1766
1767 .. _faq.quadratic-cubic:
1768
1769 **How does FontForge convert a quadratic spline into a cubic (when reading truetype)?**
1770 This is easy since any quadratic spline can already be represented as a
1771 cubic, it will just happen that the cubic term is always 0.
1772
1773 Probably the control points will no longer be at integral coordinates and
1774 there will be some loss of precision when they are saved in a cubic format.
1775
1776 .. _faq.complex-eps:
1777
1778 **Why does fontforge say "EPS file is too complex to be understood"?**
1779 (Well because it is a misquotation of Shakespeare, and how could I pass that
1780 up? *Much Ado About Nothing, V . i. 217*)
1781
1782 Most programs which load eps files treat them as black boxes. They will read
1783 the file into memory and output it, unchanged, to a postscript printer.
1784 Unfortunately FontForge cannot do this. FontForge needs to understand and
1785 then convert the eps file into a simpler format (fonts can use far fewer
1786 operations than an eps file). So unlike most programs FontForge must
1787 interpret each eps file -- but interpreting all of PostScript is a huge job
1788 and ff is limited in what it understands. Sometimes it will find a file it
1789 can't handle.
1790
1791 .. _faq.Inkscape:
1792
1793 **Importing glyphs from Inkscape**
1794 (Taken from the `OSPublish blog <http://ospublish.constantvzw.org/?p=340>`__
1795 and rewritten by Dave Crossland)
1796
1797 How to design a glyph in Inkscape so it can readily be imported into
1798 fontforge.
1799
1800 * Open Inkscape
1801 * From the File menu, select Document Properties.
1802 * Set units to pixels (px) and document dimensions to 1000 x 1000, click OK
1803
1804 :small:`Or if your font has a different number of units per em use that, but 1000 is fontforge's default)`
1805 * Set a horizontal guide at 200px
1806 * Draw a glyph - the hardest part! :-)
1807 * Save the drawing as an SVG file
1808 * Open FontForge
1809 * From the File menu, select Import, chose SVG, find your drawing, click OK
1810 * From the Element menu select Transform, set the Y value to -200, click OK
1811
1812 .. _faq.default-char:
1813
1814 **How do I set the default glyph of a font?**
1815 If the glyph named ".notdef" contains some splines (but no references) then
1816 it will be used as the default glyph (that is the glyph used when an
1817 unencoded glyph is called for).
1818
1819 Except that in a OpenType font (that is, a PostScript OpenType font), the
1820 .notdef glyph is not used for the default glyph, instead the "space" glyph
1821 is. (Don't look at me, I didn't write the spec.)
1822
1823 .. _faq.ttf-degrade:
1824
1825 **I loaded a ttf font, made a few changes and generated a new font. The changed glyphs don't look anywhere near as nice as the originals. Why?**
1826 When FontForge reads in a truetype font it saves all the hinting
1827 (instructions) that were present in the original. But if you change a glyph
1828 in any significant way those instructions are no longer valid (they depend
1829 intimately on the details of the outlines), so FontForge removes them when
1830 you make a change. The result is that changing a glyph with FontForge will
1831 degrade its appearance in most truetype fonts (not all, some have no hints).
1832
1833 FontForge can generate truetype instructions for you itself, but you must ask
1834 it to do so -- use the :menuselection:`Hints --> AutoInstr` command.
1835
1836 .. _faq.otf-diffs:
1837
1838 **I generated an opentype font and windows wouldn't install it. Why not?**
1839 Unfortunately Apple and MicroSoft (and Adobe) do not agree on the proper
1840 format for open and truetype fonts. FontForge has a check box on the Generate
1841 Font Options dialog labelled [] Apple. Make sure this is checked when you are
1842 generating a font for the mac. Make sure this is not checked when generating
1843 a font for Windows (and probably for unix too, though unix tends to be less
1844 picky).
1845
1846 The major differences I've stumbled onto so far are:
1847
1848 * The postscript name entry in the NAME table.
1849
1850 (I am told that this is actually an error in Apple's version of the spec, and
1851 the behavior of the Mac matches that of Windows).
1852 * The names of the tables containing bitmap fonts
1853 * The way scaled references are stored
1854 * And the tables containing advanced typographical features are completely
1855 different
1856
1857 .. _faq.DSIG:
1858
1859 **I have a truetype font with opentype tables, but windows displays the "TT" (truetype) icon and not the "O" icon. Why?**
1860 As far as I can tell Windows will mark a truetype font with the "O" icon if
1861 that font contains a 'DSIG' (Digital Signature) table. FontForge does not
1862 produce digital signatures (I think they are of negative utility, and anyway
1863 I don't know how to create them).
1864
1865 However, it is possible to
1866 :ref:`ask FontForge to create a 'DSIG' table <generate.Options>` which
1867 contains no signatures. That seems enough to make windows happy.
1868
1869 .. _faq.names:
1870
1871 **What do all the different font names mean?**
1872 When :menuselection:`Element --> Font Info` opens it shows a Names pane with
1873 several different fields. Why are there so many and what do they all mean?
1874
1875 The Names pane contains names used in PostScript fonts. There is also a
1876 ``TTF Names`` pane which contains a similar set of names used in sfnts (an
1877 sfnt is a font file format which includes truetype, opentype, and a number of
1878 more obscure font formats).
1879
1880 A font may be PostScript wrapped in an sfnt. In this case it can have both a
1881 set of PostScript names, and a set of sfnt (ttf) names. Those names could be
1882 different (that's usually not a good idea, but they *could* be).
1883
1884 The "name for humans" is the name traditionally associated with a font. It
1885 might be something like "ITC New Century Schoolbook Italic #4". It's a string
1886 which applications can use to display when they want humans to know what the
1887 font is.
1888
1889 The fontname exists because PostScript is a programming language and this is
1890 the name used to identify the font *within PostScript*. It has restrictions
1891 on the characters which may be in the name (no spaces is the biggest. but it
1892 also can't look like a number, no parentheses, etc.) and on the length of the
1893 name. It might look like "ITCNewCenturySchoolbook-Italic".
1894
1895 The family name is the name of a family of related fonts. In the above
1896 example "ITC New Century Schoolbook" would probably be the family name.
1897
1898 "Base Filename" isn't really a name associated with the font itself. It's
1899 just there to make your life easier when using fontforge. When you generate a
1900 font, ff will pick a default filename for you (you can always change it, of
1901 course, but it is handy if the default name is the one you want to use).
1902
1903 Normally the default name will be just the fontname with an extension added
1904 (ITCNewCenturySchoolbook-Italic.ttf). But sometimes people want a different
1905 name for the default, perhaps just NewCentSchlBk-Ital.ttf. This lets you do
1906 than.
1907
1908 So it controls the default FILENAME for the file containing the font, and
1909 does not directly relate to anything in the font itself.
1910
1911 The weight string is something like "Bold", "Black", "Thin", etc. It does not
1912 include other stylistic variations (you would not put Italic or Condensed
1913 here).
1914
1915 The copyright string should be self-explanatory.
1916
1917 --------------------------------------------------------------------------------
1918
1919 In addition to the "Names" pane of Font Info, there is also a TTF Names pane.
1920
1921 In many ways this is a duplicate of the Names pane but with some differences.
1922 It is used to specify names for sfnts.
1923
1924 Here you have
1925
1926 * Family
1927
1928 This corresponds to the PostScript Family
1929 * SubFamily
1930
1931 Vaguely like the weight field, but takes all stylistic variants not just
1932 weight.
1933
1934 This might be "Bold", "Italic", "Bold Italic", "SemiBold", "Condensed", ...
1935
1936 Whatever is appropriate for your font.
1937 * Fullname
1938
1939 This corresponds to the "Name for humans"
1940 * Copyright
1941
1942 Generally FontForge will set all these fields appropriately (ie. same as in
1943 the Names pane). If you don't like the name ff chooses you can disassociate
1944 it from the PS name by right clicking on the entry and choosing from the
1945 popup menu.
1946
1947 --------------------------------------------------------------------------------
1948
1949 Further complicating things, there are fields
1950
1951 * WWS Family
1952 * WWS SubFamily
1953
1954 I don't really understand why these are needed, but MicroSoft thinks they
1955 are. As far as I can tell they should (in most cases) be the same as Family
1956 and SubFamily above, and should therefore be omitted.
1957
1958 --------------------------------------------------------------------------------
1959
1960 CID fontname should be ignored unless you are building a CID keyed font
1961 (which usually means you are working on a CJK font).
1962
1963 --------------------------------------------------------------------------------
1964
1965 Compatible Fullname
1966
1967 Is another name I don't see the need for. I think it should be the same as
1968 Fullname, and should be omitted.
1969
1970 --------------------------------------------------------------------------------
1971
1972 TTF Names may be specified in more than one language and writing system. The
1973 entry which is translated most frequently is SubFamily. So for an Italic
1974 font, you would have an English entry "Italic", and perhaps
1975
1976 * French, Italique
1977 * German, Kursiv
1978 * Dutch, Cursief
1979
1980 etc.
1981
1982 .. _faq.mingliu:
1983
1984 **I looked at kaiu.ttf or mingliu.ttf and the outlines looked nothing like the correct glyphs. What's wrong?**
1985 Some truetype fonts (kaiu and mingliu are examples) do not store the correct
1986 outline. Instead they rely on using the instructions to move points around to
1987 generate the outline. The outline does not appear to be grid-fit at all, just
1988 positioned. FontForge will not process the instructions as it reads the font.
1989 In most fonts this would be the wrong thing to do, and I don't know how I
1990 could tell when it needs to be done...
1991
1992 .. _faq.greek-accents:
1993
1994 **When I use** :menuselection:`Element --> Build --> Build Accented Glyph` **to build one of the Extended Greek glyphs (U+1F00-U+1FFF) FontForge picks the wrong accents. Why?**
1995 For some reason Unicode has unified greek and latin accents even though they
1996 don't look at all alike. When FontForge follows the simplistic unicode
1997 definitions it will probably pick a latin accent for greek glyphs.
1998 Fortunately Unicode also contains code points for the greek accents starting
1999 around U+1FBD, if you fill these code points with the appropriate accents
2000 then FontForge will use these rather than the latin accents.
2001
2002 .. _faq.u-accents:
2003
2004 **When I use** :menuselection:`Element --> Build --> Build Accented Glyph` **to build accents over "u" or "y" I get the accent over one of the stems not centered on the glyph. Why?**
2005 One of your stems is a little taller than the other. FontForge centers
2006 accents over the tallest point on the glyph. If there are several points with
2007 the same height, then an average is used.
2008
2009 If you make all your stems be the same height then the accent should be
2010 properly centered.
2011
2012 .. _faq.remove-overlap:
2013
2014 **When I use** :menuselection:`Element --> Overlap --> Remove Overlap` **the glyph gets inverted (or white) on the overlapping sections. Why?**
2015 Because the path that you are combining are ordered in opposing directions.
2016 You might have flipped a glyph, and tried to combine it.
2017 The resolution is rather simple, select the offending shape, and then
2018 :menuselection:`Element --> Reverse Direction`.
2019
2020 .. _faq.ttf2afm:
2021
2022 **Why does ttf2afm crash on FontForge ttf files?**
2023 I don't know. The ttf2afm that was distributed with my redhat 7.3 linux
2024 certainly did crash. When I downloaded the source from
2025 `pdftex <http://www.ctan.org/tex-archive/obsolete/systems/pdftex/>`__ area of
2026 ctan and built it (with debug) the resultant program did not crash. Therefore
2027 I believe this is a bug in ttf2afm and that bug has been fixed.
2028
2029 The afm files produced by ttf2afm don't conform to
2030 `Adobe's specifications <http://partners.adobe.com/asn/developer/PDFS/TN/5004.AFM_Spec.pdf>`__.
2031
2032 .. _faq.memory:
2033
2034 **My system keeps crashing because FontForge keeps running out of memory. What can I do about it?**
2035 Buy more memory?
2036
2037 If you are editing large fonts, FontForge may run out of memory. All too
2038 often when FF runs out of memory, the kernel will crash rather than report an
2039 error condition. FontForge does check for failure to allocate and attempts to
2040 free up some chunks of memory when the system returns an error -- I've never
2041 seen this code activated though.
2042
2043 FontForge does provide a mechanism which might help you avoid this. FontForge
2044 generally wastes a lot of memory keeping undoes around. You can clear undoes
2045 associated with a glyph with the :menuselection:`Edit --> Remove Undoes`
2046 command. You can also limit the number of undoes that will be stored with
2047 each glyph with the
2048 :menuselection:`File --> Preferences --> Editing --> UndoDepth`.
2049
2050 .. _faq.Unstable:
2051
2052 **Why is FontForge so unstable?**
2053 I don't bother much with doing QA. This is a problem. I don't enjoy doing it,
2054 and no one is paying me to do it, so little gets done.
2055
2056 If you would like to volunteer to do
2057 `QA let me know <mailto:[email protected]>`__ (this is a
2058 public mailing list). It's a thankless job, but important!
2059
2060 .. _faq.Compiz:
2061
2062 **Why does FontForge look ugly under Xgl/Compiz?**
2063 I haven't the foggiest idea, but I'm told you can fix it by setting: ::
2064
2065 XLIB_SKIP_ARGB_VISUALS=1
2066
2067 for FontForge.
2068
2069 .. _faq.talk:
2070
2071 **Why don't I talk at conferences?**
2072
2073 .. epigraph::
2074
2075 | **TYSON:**
2076 | I'm not
2077 | To be found. I'm fully occupied elsewhere.
2078 | If you wish to find me I shall be in my study.
2079 | You can knock, but I shall give you no reply.
2080 | I wish to be alone with my convictions.
2081 | Good night. *[Exit]*
2082
2083 -- *The Lady's not for Burning* -- Christopher Fry
2084
2085 Because I have nothing to say.
2086
2087 .. container:: clearer
2088
2089 ..
2090
2091 --------------------------------------------------------------------------------
2092
2093 .. epigraph::
2094
2095 | The answer to the Great Question...?
2096 | Yes...!
2097 | Is...
2098 | Yes...!
2099 | Is...
2100 | Yes...!!!...?
2101 | "Forty-two," said Deep Thought with infinite majesty and calm.
2102 | "Forty-two!" yelled Loonquawl, "Is that all you've got to show for seven and a half million years of work?"
2103
2104 "I checked it very thoroughly," said the computer, "and that quite
2105 definitely is the answer. I think the problem, to be quite honest with
2106 you, is that you've never actually known what the question is."
2107
2108 -- The Hitchhiker's Guide to the Galaxy
2109
2110 .. epigraph::
2111
2112 It's all in Plato, all in Plato: bless me, what do they teach them in these schools?
2113
2114 -- *The Last Battle* -- C.S. Lewis
2115
2116 .. epigraph::
2117
2118 | "I have answered three questions, and that is enough,"
2119 | Said his father, "Don't give yourself airs!
2120 | Do you think I can listen all day to such stuff?
2121 | Be off, or I'll kick you down stairs."
2122
2123 -- *You are old, Father William* -- Lewis Carroll