home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fontutils-0.6-base.tgz / fontutils-0.6-base.tar / fsf / fontutils / data / common.cmi < prev    next >
Text File  |  1992-09-02  |  8KB  |  243 lines

  1. % common.cmi: typeface-independent definitions of character metric
  2. % information.  The definitions for the upper and lowercase letters are
  3. % taken from Tracy.  (See `charspace/README' for the citation.)
  4.  
  5.  
  6. % These default values for the spacing parameters are taken from the
  7. % definitions for the Computer Modern fonts.
  8. fontdimen quad designsize
  9. fontdimen space .333 quad
  10. fontdimen stretch .5 space
  11. fontdimen shrink .333 space
  12. fontdimen extraspace shrink
  13.  
  14. define leading 1.2 designsize
  15. fontdimen leadingheight .65 leading
  16. fontdimen leadingdepth .35 leading
  17.  
  18. % Additional fontdimens to define: 
  19. % slant (if nonzero), defaultrulethickness, version.
  20. % xheight defaults to the height of character 120 (the `x', one hopes).
  21. % Also can define the codingscheme, if no existing TFM.
  22.  
  23. % This is used in the definitions for the numerals.
  24. define enspace .5 quad
  25.  
  26. % Used below.
  27. define half-H-sb             .5     H-sb
  28. define three-quarters-H-sb        .75     H-sb
  29. define slightly-less-H-sb         .9     H-sb
  30. define one-and-half-H-sb         1.5     H-sb
  31. define slightly-less-twice-H-sb     1.9     H-sb
  32. define twice-H-sb             2     H-sb
  33. define thrice-H-sb             3     H-sb
  34.  
  35. define two-thirds-O-sb            .6666 O-sb
  36. define less-O-sb             .8 O-sb
  37. define slightly-less-O-sb         .9 O-sb
  38. define slightly-more-O-sb         1.1 O-sb
  39. define one-and-third-O-sb         1.33333 O-sb
  40. define one-and-three-quarters-O-sb     1.75 O-sb
  41. define slightly-less-twice-O-sb     1.9 O-sb
  42. define twice-O-sb             2 O-sb
  43.  
  44. define minus-one-and-quarter-n-lsb    -1.25 n-lsb
  45. define minus-n-lsb            -1 n-lsb
  46. define slightly-more-n-lsb         1.1 n-lsb
  47. define one-and-quarter-n-lsb         1.25 n-lsb
  48.  
  49. define more-half-n-rsb             .6 n-rsb
  50. define one-and-half-n-rsb         1.5 n-rsb
  51.  
  52. define half-o-sb             .5 o-sb
  53. define slightly-less-o-sb         .9 o-sb
  54. define slightly-more-o-sb         1.1 o-sb
  55. define one-and-half-o-sb        1.5 o-sb
  56.  
  57. define minus-uc-min-sb            -1 uc-min-sb
  58.  
  59. define minus-lc-min-sb             -1 lc-min-sb
  60. define twice-lc-min-sb             2 lc-min-sb
  61.  
  62.  
  63.  
  64. % Uppercase uses: uc-min-sb, H-sb, O-sb, and some above definitions:
  65. char A             uc-min-sb         , uc-min-sb
  66. char B             H-sb             , half-H-sb
  67. char C             O-sb             , half-H-sb
  68. char D             H-sb             , O-sb
  69. char E             H-sb             , half-H-sb
  70. char F             H-sb             , half-H-sb
  71. char G             O-sb             , slightly-less-H-sb
  72. char H             H-sb             , H-sb
  73. char I             H-sb             , H-sb
  74. char J             uc-min-sb         , H-sb
  75. char K             H-sb             , uc-min-sb
  76. char L             H-sb             , uc-min-sb
  77. char M             slightly-less-H-sb    , H-sb
  78. char N            slightly-less-H-sb    , slightly-less-H-sb
  79. char O             O-sb             , O-sb
  80. char P            H-sb            , O-sb
  81. char Q            O-sb            , O-sb
  82. char R            H-sb            , uc-min-sb
  83. char T            uc-min-sb        , uc-min-sb
  84. char U            H-sb            , slightly-less-H-sb
  85. char V            uc-min-sb        , uc-min-sb
  86. char W            uc-min-sb        , uc-min-sb
  87. char X            uc-min-sb        , uc-min-sb
  88. char Y            uc-min-sb        , uc-min-sb
  89. char Z          half-H-sb        , half-H-sb
  90.  
  91. % Lowercase uses: lc-min-sb, n-lsb, o-sb, n-rsb, and some above definitions:
  92.  
  93. char b            n-lsb            , o-sb
  94. char c            o-sb            , slightly-less-o-sb    
  95. char d            o-sb            , n-lsb
  96. char e            o-sb            , slightly-less-o-sb
  97. char h          slightly-more-n-lsb    , n-rsb
  98. char i            slightly-more-n-lsb    , n-lsb
  99. char dotlessi        slightly-more-n-lsb    , n-lsb
  100. char j            n-lsb            , n-lsb
  101. char dotlessj        n-lsb            , n-lsb
  102. char k            slightly-more-n-lsb    , lc-min-sb
  103. char l            slightly-more-n-lsb    , n-lsb
  104. char m            n-lsb            , n-rsb
  105. char n            n-lsb            , n-rsb
  106. char o            o-sb            , o-sb
  107. char p            slightly-more-n-lsb    , o-sb
  108. char q            o-sb            , n-lsb
  109. char r            n-lsb            , lc-min-sb
  110. char germandbls        H-sb            , half-H-sb
  111. char u            n-rsb            , n-rsb
  112. char v            lc-min-sb        , lc-min-sb
  113. char w            lc-min-sb        , lc-min-sb
  114. char x            lc-min-sb        , lc-min-sb
  115. char y            lc-min-sb        , lc-min-sb
  116.  
  117. % Tracy-like guesses.
  118. char oslash        slightly-more-o-sb    , slightly-more-o-sb
  119. char Delta        uc-min-sb        , uc-min-sb
  120. char Oslash        O-sb            , O-sb
  121. char Gamma        H-sb            , uc-min-sb
  122. char Pi            H-sb            , H-sb
  123. char OE            O-sb            , half-H-sb
  124. char AE            uc-min-sb        , half-H-sb
  125. char ae            n-rsb            , slightly-less-o-sb    
  126. char oe         o-sb            , slightly-less-o-sb
  127. char ff          twice-lc-min-sb        , minus-n-lsb
  128. char fi          twice-lc-min-sb        , n-lsb
  129. char fl          twice-lc-min-sb        , n-lsb
  130. char ffi         twice-lc-min-sb        , n-lsb
  131. char ffl         twice-lc-min-sb        , n-lsb
  132.  
  133. % Non-Tracy guesses.
  134. char emdash        minus-uc-min-sb        , minus-lc-min-sb
  135. char endash        minus-lc-min-sb        , 0
  136. char hyphen        0            , H-sb
  137. char asciihyphen    0            , H-sb
  138. char t          lc-min-sb        , one-and-half-n-rsb
  139. char bracketright    lc-min-sb        , twice-H-sb
  140. char f          twice-lc-min-sb     , minus-n-lsb
  141. char g          twice-lc-min-sb        , twice-lc-min-sb
  142. char polishcross    uc-min-sb        , uc-min-sb
  143. char z          twice-lc-min-sb        , one-and-quarter-n-lsb
  144. char Lambda        uc-min-sb        , uc-min-sb
  145. char s          more-half-n-rsb        , n-lsb
  146. char quotedblright    uc-min-sb        , thrice-H-sb
  147. char Xi            half-H-sb        , three-quarters-H-sb
  148. char ampersand        half-H-sb        , O-sb
  149. char Omega        two-thirds-O-sb        , slightly-less-O-sb
  150. char a          n-rsb            , lc-min-sb
  151. char asterisk        slightly-more-O-sb    , one-and-third-O-sb
  152.  
  153. % (These maybe should be the same as `O', as they are in cmr.)
  154. char Phi        three-quarters-H-sb    , H-sb
  155. char Psi        three-quarters-H-sb    , H-sb
  156. char S            three-quarters-H-sb    , H-sb
  157. char Sigma        three-quarters-H-sb    , H-sb
  158. char Theta        three-quarters-H-sb    , H-sb
  159. char Upsilon        three-quarters-H-sb    , H-sb
  160. char at            three-quarters-H-sb    , H-sb
  161. char dollar        three-quarters-H-sb    , H-sb
  162. char question        three-quarters-H-sb    , H-sb
  163. char questiondown    three-quarters-H-sb    , H-sb
  164. char sterling        three-quarters-H-sb    , H-sb
  165. char slash        three-quarters-H-sb    , H-sb
  166. char equal        three-quarters-H-sb    , H-sb
  167. char percent        three-quarters-H-sb    , H-sb
  168. char numbersign        three-quarters-H-sb    , H-sb
  169. char plus        three-quarters-H-sb    , H-sb
  170. % Following two are non-cmr.
  171. char parenright        slightly-less-O-sb    , twice-O-sb 
  172. char quoteleft        one-and-third-O-sb    , uc-min-sb  
  173. char quoteright        uc-min-sb        , one-and-half-H-sb
  174. char comma        one-and-half-H-sb    , one-and-half-H-sb
  175. char semicolon        one-and-half-H-sb    , one-and-three-quarters-O-sb
  176. char colon          one-and-half-H-sb    , slightly-less-twice-O-sb
  177. char exclam          one-and-half-H-sb    , slightly-less-twice-O-sb
  178. char exclamdown          one-and-half-H-sb    , slightly-less-twice-O-sb
  179. char period        one-and-half-H-sb    , slightly-less-twice-O-sb
  180. char parenleft        one-and-three-quarters-O-sb      , H-sb
  181. char bracketleft    slightly-less-twice-H-sb    , uc-min-sb
  182. % Next one is non-cmr.
  183. char quotedblleft    thrice-H-sb            , uc-min-sb
  184.  
  185. % Accents.
  186. char macron        0            , 0
  187. char tilde        0            , 0
  188. char dotaccents        0            , 0
  189. char breve        0            , 0
  190. char dieresis        0            , 0
  191. char grave        0            , 0
  192. char caron        0            , 0
  193. char circumflex        0            , 0
  194. char hungarumlaut    0            , 0
  195. char cedilla        0            , 0
  196. char acute        0            , 0
  197. char ring        0            , 0
  198.  
  199. % Old style numerals.
  200.  
  201. char zerooldstyle    O-sb            , slightly-less-O-sb
  202. char oneoldstyle    O-sb            , slightly-less-O-sb
  203. char twooldstyle    uc-min-sb        , O-sb
  204. char threeoldstyle    uc-min-sb        , one-and-third-O-sb
  205. char fouroldstyle    lc-min-sb        , slightly-less-H-sb
  206. char fiveoldstyle    uc-min-sb        , H-sb
  207. char sixoldstyle    slightly-less-O-sb    , slightly-more-n-lsb
  208. char sevenoldstyle    uc-min-sb        , H-sb
  209. char eightoldstyle    slightly-more-n-lsb    , slightly-less-O-sb
  210. char nineoldstyle    slightly-less-o-sb    , one-and-half-H-sb
  211.  
  212. % Numerals are typically defined to have the same set widths, so tables
  213. % can be printed easily.  Since the side bearings will vary depending on
  214. % the character shapes, we just define them symbolically here.
  215.  
  216. define numeral-width enspace
  217. define one-lsb-percent .6
  218. define two-lsb-percent .45
  219. define three-lsb-percent .5
  220. define four-lsb-percent .5
  221. define five-lsb-percent .4
  222. define six-lsb-percent .5
  223. define seven-lsb-percent .55
  224. define eight-lsb-percent .5
  225. define nine-lsb-percent .5
  226. define zero-lsb-percent .5
  227.  
  228. char-width one        numeral-width , one-lsb-percent
  229. char-width two        numeral-width , two-lsb-percent
  230. char-width three    numeral-width , three-lsb-percent
  231. char-width four        numeral-width , four-lsb-percent
  232. char-width five        numeral-width , five-lsb-percent
  233. char-width six        numeral-width , six-lsb-percent
  234. char-width seven    numeral-width , seven-lsb-percent
  235. char-width eight    numeral-width , eight-lsb-percent
  236. char-width nine        numeral-width , nine-lsb-percent
  237. char-width zero        numeral-width , zero-lsb-percent
  238.  
  239. % Kerns.
  240.  
  241. kern f k 30
  242.