| 1 |
% |
| 2 |
% Copyright (c) 2011, 2012, Sebastian Schubert <[email protected]> |
| 3 |
% |
| 4 |
% This Font Software is licensed under the SIL Open Font License, |
| 5 |
% Version 1.1. This license is in the accompanying file OFL.txt, and |
| 6 |
% is also available with a FAQ at: http://scripts.sil.org/OFL |
| 7 |
% |
| 8 |
|
| 9 |
for scale = 1, 1.8, 2.6, 3.4, 4.2, 5: |
| 10 |
beginaccent(scale * 7u#, 1/2equal_spread# + accent_thickness#); "wide hat"; |
| 11 |
|
| 12 |
y2r = h; |
| 13 |
x2r = w/2; |
| 14 |
x1r = w - x3r = 0; |
| 15 |
y1r = y3r = y2r - 1/2equal_spread; |
| 16 |
|
| 17 |
theta := angle(z2r - z1r); |
| 18 |
|
| 19 |
penpos2(1.1thick/cosd(theta), 90); |
| 20 |
penpos1(thick, theta + 90); |
| 21 |
penpos3(thick, 90 - theta); |
| 22 |
|
| 23 |
fill stroke z1e -- z2e -- z3e; |
| 24 |
penlabels(1,2,3); |
| 25 |
endchar; |
| 26 |
endfor; |
| 27 |
|
| 28 |
charlist current_char - 5: current_char - 4: current_char - 3: current_char - 2: current_char - 1: current_char; |
| 29 |
|
| 30 |
for scale = 1, 1.8, 2.6, 3.4, 4.2, 5: |
| 31 |
beginaccent(scale * 7u#, 1/2equal_spread# + accent_thickness#); "wide tilde"; |
| 32 |
draw_sim(a, (0, 1/2[accent_height, h]), (w, 1/2[accent_height, h]), 1/4equal_spread, thick); |
| 33 |
endchar; |
| 34 |
endfor; |
| 35 |
|
| 36 |
charlist current_char - 5: current_char - 4: current_char - 3: current_char - 2: current_char - 1: current_char; |
| 37 |
|
| 38 |
for scale = 1, 1.8, 2.6, 3.4, 4.2, 5: |
| 39 |
beginaccent(scale * 7u#, 1/2equal_spread# + accent_thickness#); "wide paren"; |
| 40 |
draw_smile(a, -1, (0, 1/2[accent_height, h]), (w, 1/2[accent_height, h]), 1/2equal_spread, thick, true); |
| 41 |
endchar; |
| 42 |
endfor; |
| 43 |
|
| 44 |
charlist current_char - 5: current_char - 4: current_char - 3: current_char - 2: current_char - 1: current_char; |
| 45 |
|
| 46 |
beginaccent(6u# + side_bearing#, 3u# + 1/2accent_thickness#); "vec"; |
| 47 |
|
| 48 |
x0 = side_bearing; |
| 49 |
x1 = w - 1/2thick; |
| 50 |
y0 = y1 = h - 1/2(1/2(x1-x0) + thick); |
| 51 |
|
| 52 |
draw_straight(z0, z1, thick, false); |
| 53 |
draw_arrowhead(z1, 0, 1/2(x1-x0), thick); |
| 54 |
labels(0,1); |
| 55 |
endchar; |
| 56 |
|
| 57 |
beginsymbol(5u#, (-.8)[x_height#, asc_height#], 0); "middle bar"; |
| 58 |
penpos0(accent_thickness, 90); |
| 59 |
penpos1(accent_thickness, 90); |
| 60 |
|
| 61 |
x0 = w - x1 = 0; |
| 62 |
y0 = y1 = h; |
| 63 |
|
| 64 |
fill stroke z0e -- z1e; |
| 65 |
penlabels(0,1) |
| 66 |
endchar; |
| 67 |
|
| 68 |
beginsymbol(5u#, (-.8)[x_height#, asc_height#], 0); "middle slash"; |
| 69 |
x0 = w - x1 = 0; |
| 70 |
1/2[y0,y1] = h; |
| 71 |
y1 - y0 = 2line_thickness; |
| 72 |
|
| 73 |
penpos0(accent_thickness/cosd(angle(z1-z0)), 90); |
| 74 |
penpos1(accent_thickness/cosd(angle(z1-z0)), 90); |
| 75 |
|
| 76 |
fill stroke z0e -- z1e; |
| 77 |
penlabels(0,1) |
| 78 |
endchar; |
| 79 |
|
| 80 |
beginsymbol(5u# + 2side_bearing#, 3/2asc_height#, 0); "stroke through"; |
| 81 |
theta := 70; |
| 82 |
|
| 83 |
z0 = (w/2,1/6asc_height); |
| 84 |
z1 = z0 + 3/4asc_height / cosd (90 - theta) * dir theta; |
| 85 |
z2 = z0 - 3/4asc_height / cosd (90 - theta) * dir theta; |
| 86 |
|
| 87 |
draw_line_cut_linethick(1,2)(4/5line_thickness); |
| 88 |
endchar; |