| 1 |
% ogham.mf |
| 2 |
% This font was designed by Alan M Stanier ( [email protected] ), |
| 3 |
% at Essex University Computer Service, Colchester, Essex CO4 3EA. England. |
| 4 |
% |
| 5 |
% Maintenance now overseen by Robin Fairbairns of Cambridge University. |
| 6 |
% (search on the web for my email address) |
| 7 |
% |
| 8 |
% Alan Stanier asked that if you make significant additions |
| 9 |
% or improvements to the font, you should send him an updated version; |
| 10 |
% if you send it to CTAN as a contribution, and mark it for my attention, |
| 11 |
% I shall see that it is installed, and ensure that Alan has a copy. |
| 12 |
% |
| 13 |
% The font is released into the public domain. |
| 14 |
% |
| 15 |
% |
| 16 |
% The OGHAM alphabet is found on a number of Irish and Pictish |
| 17 |
% carvings dated from the 4th century AD. |
| 18 |
% The characters touch or cross the edges of the stone. |
| 19 |
% |
| 20 |
% There are 20 characters in the alphabet, representing: |
| 21 |
% |
| 22 |
% a o u e i |
| 23 |
% b l v s n |
| 24 |
% h d t c q |
| 25 |
% m g ng z r |
| 26 |
% |
| 27 |
% I have coded ng as 'j'. |
| 28 |
% |
| 29 |
% Each character is given in lower case (as carved on vertical edges) |
| 30 |
% and upper case (as carved on horizontal edges). |
| 31 |
% |
| 32 |
mg#:=.4pt#; % a unit length, not a magnification. |
| 33 |
|
| 34 |
mode_setup; |
| 35 |
font_size 10pt#; |
| 36 |
|
| 37 |
pensize#:=1.25*mg#; |
| 38 |
bigpensize#:=2.0*mg#; |
| 39 |
height#:=15pt#; |
| 40 |
bigheight#:=20pt#; |
| 41 |
define_pixels(mg); |
| 42 |
define_blacker_pixels(pensize,bigpensize); |
| 43 |
|
| 44 |
def getpen = pickup pencircle scaled pensize enddef; |
| 45 |
def getbigpen = pickup pencircle scaled bigpensize enddef; |
| 46 |
|
| 47 |
def top = |
| 48 |
getbigpen; |
| 49 |
draw (-5*mg,15*mg) -- (40*mg,15*mg); |
| 50 |
getpen; |
| 51 |
enddef; |
| 52 |
|
| 53 |
def bigtop = |
| 54 |
getbigpen; |
| 55 |
draw (-5,15*mg) -- (50*mg,15*mg); |
| 56 |
getpen; |
| 57 |
enddef; |
| 58 |
|
| 59 |
def edge = |
| 60 |
getbigpen; |
| 61 |
draw (15*mg,0) -- (15*mg,30*mg); |
| 62 |
getpen; |
| 63 |
enddef; |
| 64 |
|
| 65 |
def bigedge = |
| 66 |
getbigpen; |
| 67 |
draw (15*mg,0) -- (15*mg,40*mg); |
| 68 |
getpen; |
| 69 |
enddef; |
| 70 |
|
| 71 |
def full(expr n) = |
| 72 |
edge; |
| 73 |
for i = 1 upto n: draw (0,5*i*mg) -- (30*mg,5*i*mg); endfor |
| 74 |
enddef; |
| 75 |
|
| 76 |
def lineright(expr n) = |
| 77 |
edge; |
| 78 |
for i = 1 upto n: draw (15*mg,5*i*mg) -- (30*mg,5*i*mg); endfor |
| 79 |
enddef; |
| 80 |
|
| 81 |
def lineleft(expr n) = |
| 82 |
edge; |
| 83 |
for i = 1 upto n: draw (0,5*i*mg) -- (15*mg,5*i*mg); endfor |
| 84 |
enddef; |
| 85 |
|
| 86 |
def slope(expr n) = |
| 87 |
bigedge; |
| 88 |
for i = 1 upto n: draw (0,(6*i+16)*mg) -- (30*mg,6*(i-1)*mg); endfor |
| 89 |
enddef; |
| 90 |
|
| 91 |
def across(expr n) = |
| 92 |
top; |
| 93 |
for i = 1 upto n: draw (5*i*mg,0) -- (5*i*mg,30*mg); endfor |
| 94 |
enddef; |
| 95 |
|
| 96 |
def lineup(expr n) = |
| 97 |
top; |
| 98 |
for i = 1 upto n: draw (5*i*mg,15*mg) -- (5*i*mg,30*mg); endfor |
| 99 |
enddef; |
| 100 |
|
| 101 |
def linedown(expr n) = |
| 102 |
top; |
| 103 |
for i = 1 upto n: draw (5*i*mg,0) -- (5*i*mg,15*mg); endfor |
| 104 |
enddef; |
| 105 |
|
| 106 |
def lean(expr n) = |
| 107 |
bigtop; |
| 108 |
for i = 1 upto n: draw (6*(i-1)*mg,0) -- ((6*i+16)*mg,30*mg); endfor |
| 109 |
enddef; |
| 110 |
|
| 111 |
beginchar("a",height#,height#,0); full(1); endchar; |
| 112 |
beginchar("A",height#,height#,0); across(1); endchar; |
| 113 |
beginchar("o",height#,height#,0); full(2); endchar; |
| 114 |
beginchar("O",height#,height#,0); across(2); endchar; |
| 115 |
beginchar("u",height#,height#,0); full(3); endchar; |
| 116 |
beginchar("U",height#,height#,0); across(3); endchar; |
| 117 |
beginchar("e",height#,height#,0); full(4); endchar; |
| 118 |
beginchar("E",height#,height#,0); across(4); endchar; |
| 119 |
beginchar("i",height#,height#,0); full(5); endchar; |
| 120 |
beginchar("I",height#,height#,0); across(5); endchar; |
| 121 |
|
| 122 |
beginchar("b",height#,height#,0); lineright(1); endchar; |
| 123 |
beginchar("B",height#,height#,0); linedown(1); endchar; |
| 124 |
beginchar("l",height#,height#,0); lineright(2); endchar; |
| 125 |
beginchar("L",height#,height#,0); linedown(2); endchar; |
| 126 |
beginchar("v",height#,height#,0); lineright(3); endchar; |
| 127 |
beginchar("V",height#,height#,0); linedown(3); endchar; |
| 128 |
beginchar("s",height#,height#,0); lineright(4); endchar; |
| 129 |
beginchar("S",height#,height#,0); linedown(4); endchar; |
| 130 |
beginchar("n",height#,height#,0); lineright(5); endchar; |
| 131 |
beginchar("N",height#,height#,0); linedown(5); endchar; |
| 132 |
|
| 133 |
beginchar("h",height#,height#,0); lineleft(1); endchar; |
| 134 |
beginchar("H",height#,height#,0); lineup(1); endchar; |
| 135 |
beginchar("d",height#,height#,0); lineleft(2); endchar; |
| 136 |
beginchar("D",height#,height#,0); lineup(2); endchar; |
| 137 |
beginchar("t",height#,height#,0); lineleft(3); endchar; |
| 138 |
beginchar("T",height#,height#,0); lineup(3); endchar; |
| 139 |
beginchar("c",height#,height#,0); lineleft(4); endchar; |
| 140 |
beginchar("C",height#,height#,0); lineup(4); endchar; |
| 141 |
beginchar("q",height#,height#,0); lineleft(5); endchar; |
| 142 |
beginchar("Q",height#,height#,0); lineup(5); endchar; |
| 143 |
|
| 144 |
beginchar("m",height#,bigheight#,0); slope(1); endchar; |
| 145 |
beginchar("M",bigheight#,height#,0); lean(1); endchar; |
| 146 |
beginchar("g",height#,bigheight#,0); slope(2); endchar; |
| 147 |
beginchar("G",bigheight#,height#,0); lean(2); endchar; |
| 148 |
beginchar("j",height#,bigheight#,0); slope(3); endchar; |
| 149 |
beginchar("J",bigheight#,height#,0); lean(3); endchar; |
| 150 |
beginchar("z",height#,bigheight#,0); slope(4); endchar; |
| 151 |
beginchar("Z",bigheight#,height#,0); lean(4); endchar; |
| 152 |
beginchar("r",height#,bigheight#,0); slope(5); endchar; |
| 153 |
beginchar("R",bigheight#,height#,0); lean(5); endchar; |
| 154 |
|
| 155 |
end |