Debian Codegraph @

MANUAL

raw
1 Hi
2
3 This is osifont project. Free technical font. Feel free to use it or even better,
4 joint the project. Any questions, suggestions or ideas please send to project admin.
5
6 Project admin: [email protected].
7 Project hosted on: http://code.google.com/p/osifont/
8 https://github.com/hikikomori82/osifont
9 Created with: FontForge, Gimp, Inkscape
10
11 Font is distributed under GNU GPL licence version 3 with GPL font exception:
12
13 "Linking this font statically or dynamically with other software or
14 documents is making a combined work based on this library. Thus, the
15 terms and conditions of the GNU General Public License cover the
16 whole combination.
17
18 As a special exception, the copyright holders of this font give
19 you permission to link this library with independent software or
20 documents to produce an executable, regardless of the license terms
21 of these independent software or documents, and to copy and
22 distribute the resulting executable under terms of your choice,
23 provided that you also meet, for each linked independent module, the
24 terms and conditions of the license of that module. An independent
25 software or documents is not derived from or based on this font. If
26 you modify this font, you may extend this exception to your version of the
27 font, but you are not obligated to do so. If you do not wish to do
28 so, delete this exception statement from your version."
29
30
31 FontForge notes and tips
32
33 - Recommended bearing (space on the sides of the glyphs):
34
35 100 a 130
36 130 o 130
37 150 b 130
38 150 U 150
39
40 So stright full height (left B, left L, both U) have 150
41 Straight but half height (right b, right a, left d) have 130
42 No straight line (both v, left a, right c) have 100
43
44 - Shortcuts
45
46 Ctrl+2 - Curve point ( )
47 Ctrl+3 - Corner point [ ]
48 Ctrl+4 - Tangent point -->
49 Cltr+Shift+> - goto glyph
50 Ctrl+Shhift+_ - Round to int
51 Ctrl+e - Find problems
52
53 - When creating straight lines
54
55 Select 2 points
56 Edit-Make line
57 Ctrl+4
58
59 - When you create composed font, e.g. D + ˇ = Ď, sometimes width may be
60 too small, "Ď" is ok, but when you create "Ǐ", it might be too narrow.
61 You can't imediatelly move left/right bearings because they are locked
62 (small lock icon appears next to them). You must first unlock it:
63
64 Edit->Unlock reference
65
66 - After this you might also need this:
67
68 Element->Round->To int
69 Element->Find problems
70
71 - Kerning. When you use Metrics->Auto kern, or Metrics->Kern pair closeup,
72 it wont work. You have to do this:
73
74 Element->Font info->Lookups->Gpos:
75 - If there are any previous attempts about kerning, erase them
76 - Click button "Add lookup"
77 - In combo "Type" choose "Pair position (kerning)"
78 - In first column "Feature" click on white rectangle, then gray rectangle and choose "Horizontal kerning", type name, e.g. "kern"
79 - Press "ok", dialog will dissapear
80 - Press "add subtable", name it, choose "horizontal", then choose "pairs"
81 - Click blue <new> and type "T" in first column, "e" in second, -350 in thrird column
82 - Add other pairs as needed
83 - Click ok, ok
84 - File->Generate fonts, choose TTF
85
86 Achieved kerning results:
87
88 Gedit 2.30.3 - works
89 Firefox >= 3.6 - works
90 Chrome 25 - works
91 PHP GD - broken
92
93 Osifont since 2014-03-10 contains 2 special kerning characters "Ȩȩ" (U+0228 U+0229).
94 They together form "Kon" if kerning is supported, or "Kno" if it is not supported.
95 Firefox is currently the only browser that supports kerning.
96
97 - Ligatures:
98
99 1. Element->Font info->Lookups->GSUB->Add lookup
100 Choose "Ligature substitution" in combo
101 (this needs to be done only once, osifont has it since 2014-03-15)
102 Name it "liga" as maximal name length is 4 characters.
103
104 2. Encoding->Add encoding slots->1
105 (New slot will be added to the very end, edit it)
106 3. Element->Glyph info->Unicode->Glyph name
107 (choose e.h. f_f_i for ffi ligature, I recomend using _ as separator as this will be autodetected later in step 5)
108 4. Element->Glyph info->Unicode->OT Glyph Class
109 (choose "Base lig")
110 5. Close this dialog by pressing "OK" and reopen it
111 Element->Glyph info->Ligatures-> Click on blue <New Lig...>, choose "liga" table, "f f i" will be automatically added (if you used underscores in name)
112 If you have ligature for non latin glyphs, use e.g. "uni023B uni023B"
113 6. Element->Build->Composite font
114 If you want to change shape, use Edit->Unlink reference or clear it and start from the scratch
115 7. When you are done, close glyph and reopen it. On the left, at [0] position there is "Lig caret", use mouse and move it between 2 characters
116 of glyph. Three glyph ligature like ffi would have 2 of those "Lig caret". Move one between ff and one between fi.
117
118 Osifont since 2014-03-15 contains special ligature made of characters "Ȼȼ" (U+023B U+023C).
119 They together form ligature "Lon" if ligatures are supported, or "Kno" if they are not supported.
120 Firefox is currently the only browser that supports ligatures.
121
122 - Fixing errors and cleaning up glyphs
123
124 When new glyph is done or after you modify glyph, you can
125 do certain tasks to make it more correct.
126
127 1. entire glyph should be rounded to int. Usually it
128 already is, but sometimes it slips from int to float. Hit
129 Ctrl+A to select all points, then Element->Round->Int
130 or press Ctrl+Shift+_
131
132 2. Make sure the outer outline of the font is clockwise and
133 inner outline is counter clockwise. It it is not, select
134 those olive colored points and change their orientation
135 by Element->Clockwise or Element->Counter clockwise.
136
137 3. Make sure font width is correct and it is centered correctly
138 with just the right amount of space on the sides. This is
139 called "bearing" and correct values are mentioned above, but
140 there is some room for adjustment, it is better to make it
141 consistent among related glyphs than to blindliy obey some
142 magic numbers.
143
144 4. Run tool "Find problems" (Ctrl+E). In the dialog click
145 on "Set all" and on "BB" tab:
146
147 - uncheck "Check advance" (because we have variable width font).
148 - uncheck "Check BB above" (esp. for accented glyps because
149 they all taller than normal glyph)
150
151 Then click "Ok", it should say "No problems found".
152 Otherwise it will tell you what is
153 wrong and allow you to fix it. Some problems has to be fixed
154 manually. Sometimes it is good to stop and "round to int"
155 again and then continue in finding problems.
156
157 Error: The hint does not control any points
158 Solution: Run autohint again (Ctrl+Shift+H)
159
160 Error: The glyps extend left further than desired
161 Solution: Adjust bearing (step 3). Sometimes, this is
162 not an error, see for example glyph Ħ (Hbar), the bar extends
163 left and right, but capital letter is usually followed by
164 small letter so it will not interfere.
165
166 Error: The selected points are too close to each other.
167 Solution: very often you just accidentaly clicked and added
168 another point next to already existing point (sometimes
169 there is one above other). Zoom in and move them a bit.
170 You can merge them by Edit->Merge (Ctrl+M). Or do it by hand.
171
172 ---------[]---------[]-------- 2 poins
173
174 ---------[]----*----[]-------- add thrid point (add a cornder point)
175
176 ---------[] []-------- delete it (del)
177
178 --------------------()-------- move first point to second
179
180 --------------------[]-------- restore correct point type (e.g. corner point in this case, Point->Corner (Ctrl+3))
181
182 5. Run autohint (Ctrl+Shift+H), then run "Find problems" again.
183 Sometimes hints are too close to point that are not related to that
184 hint, this is generally not a problem and you can ignore it.
185
186 6. Make sure tangent points are where they should be (e.g.
187 look at the top of the letter T). Convert those points to
188 tangent "Point->Tangent" (Ctrl+4). Usefull tools for this
189 is sometimes selecting two points and "Point->Make line".