txipsfonts-gildea.diff 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. Date: Sun, 09 Jun 2002 00:40:14 -0400
  2. From: Stephen Gildea
  3. To: karl@freefriends.org (Karl Berry)
  4. cc: jgay@gnu.org
  5. Subject: Re: Texinfo fonts
  6. I used to like to use Adobe Times, Helvetica, and Courier because a
  7. major output format for us is PDF, and bitmapped fonts in a PDF file
  8. look ugly with acroread. I don't use this as much as I used to now that
  9. I can get Type 1 CM fonts.
  10. There are parts of this patch that look ugly, but it works for me.
  11. It would be great to see something like this support in the Texinfo
  12. distribution.
  13. < Stephen
  14. *** texinfo.tex Mon Apr 19 17:13:00 1999
  15. --- ps_texinfo.tex Mon Apr 19 17:17:50 1999
  16. ***************
  17. *** 58,69 ****
  18. % It is possible to adapt texinfo.tex for other languages. You can get
  19. % the existing language-specific files from ftp://ftp.gnu.org/gnu/texinfo/.
  20. ! \message{Loading texinfo [version \texinfoversion]:}
  21. % If in a .fmt file, print the version number
  22. % and turn on active characters that we couldn't do earlier because
  23. % they might have appeared in the input file name.
  24. ! \everyjob{\message{[Texinfo version \texinfoversion]}%
  25. \catcode`+=\active \catcode`\_=\active}
  26. % Save some parts of plain tex whose names we will redefine.
  27. --- 58,69 ----
  28. % It is possible to adapt texinfo.tex for other languages. You can get
  29. % the existing language-specific files from ftp://ftp.gnu.org/gnu/texinfo/.
  30. ! \message{Loading texinfo [version \texinfoversion ps]:}
  31. % If in a .fmt file, print the version number
  32. % and turn on active characters that we couldn't do earlier because
  33. % they might have appeared in the input file name.
  34. ! \everyjob{\message{[Texinfo version \texinfoversion ps]}%
  35. \catcode`+=\active \catcode`\_=\active}
  36. % Save some parts of plain tex whose names we will redefine.
  37. ***************
  38. *** 858,890 ****
  39. \newcount\mainmagstep
  40. \mainmagstep=\magstephalf
  41. % Set the font macro #1 to the font named #2, adding on the
  42. % specified font prefix (normally `cm').
  43. % #3 is the font's design size, #4 is a scale factor
  44. ! \def\setfont#1#2#3#4{\font#1=\fontprefix#2#3 scaled #4}
  45. % Use cm as the default font prefix.
  46. % To specify the font prefix, you must define \fontprefix
  47. % before you read in texinfo.tex.
  48. \ifx\fontprefix\undefined
  49. ! \def\fontprefix{cm}
  50. \fi
  51. % Support font families that don't use the same naming scheme as CM.
  52. ! \def\rmshape{r}
  53. ! \def\rmbshape{bx} %where the normal face is bold
  54. ! \def\bfshape{b}
  55. ! \def\bxshape{bx}
  56. ! \def\ttshape{tt}
  57. ! \def\ttbshape{tt}
  58. ! \def\ttslshape{sltt}
  59. ! \def\itshape{ti}
  60. ! \def\itbshape{bxti}
  61. ! \def\slshape{sl}
  62. ! \def\slbshape{bxsl}
  63. ! \def\sfshape{ss}
  64. ! \def\sfbshape{ss}
  65. ! \def\scshape{csc}
  66. ! \def\scbshape{csc}
  67. \ifx\bigger\relax
  68. \let\mainmagstep=\magstep1
  69. --- 858,916 ----
  70. \newcount\mainmagstep
  71. \mainmagstep=\magstephalf
  72. + % expand #1, a control sequence, without the leading escape char
  73. + \def\csstringname#1{\expandafter\csstrcdr\string#1;}
  74. + \def\csstrcdr#1#2;{#2}
  75. +
  76. +
  77. % Set the font macro #1 to the font named #2, adding on the
  78. % specified font prefix (normally `cm').
  79. % #3 is the font's design size, #4 is a scale factor
  80. ! \def\setfont#1#2#3#4{\dimen255=#3pt\divide\dimen255by1000
  81. ! \multiply\dimen255by#4%
  82. ! \global\expandafter\font\csname f/\csstringname#1\endcsname=\fontprefix#2\fontencoding\space at\dimen255
  83. ! \global\def#1{\csname f/\csstringname#1\endcsname
  84. ! \def\fcurshape{#2}%
  85. ! \def\fcursize{#3}%
  86. ! \def\fcurscale{#4}}}
  87. !
  88. % Use cm as the default font prefix.
  89. % To specify the font prefix, you must define \fontprefix
  90. % before you read in texinfo.tex.
  91. \ifx\fontprefix\undefined
  92. ! \def\fontprefix{p}
  93. \fi
  94. % Support font families that don't use the same naming scheme as CM.
  95. ! \def\fontencoding{7t}
  96. ! \def\rmshape{tmr}
  97. ! \def\rmbshape{tmb} %where the normal face is bold
  98. ! \def\bfshape{tmb}
  99. ! \def\bxshape{tmb}
  100. ! \def\ttshape{crr}
  101. ! \def\ttbshape{crb}
  102. ! \def\ttslshape{crro}
  103. ! \def\itshape{tmri}
  104. ! \def\itbshape{tmbi}
  105. ! \def\slshape{tmro}
  106. ! \def\slbshape{tmbo}
  107. ! \def\sfshape{hvr}
  108. ! \def\sfbshape{hvb}
  109. ! \def\scshape{tmrc}
  110. ! \def\scbshape{tmbc}
  111. !
  112. ! % the reason we save all the \fcur* stuff in \setfont
  113. ! % is so we can do some nice symbols:
  114. !
  115. ! \def\setcurtextsymbolfont{\def\fontencoding{8r}%
  116. ! \expandafter\setfont
  117. ! \csname\fontname\font/\fontencoding\endcsname
  118. ! \fcurshape\fcursize\fcurscale
  119. ! \csname\fontname\font/\fontencoding\endcsname}
  120. !
  121. ! \def\copyright{{\setcurtextsymbolfont\char'251}}
  122. ! \def\bullet{{\setcurtextsymbolfont\char'225}}
  123. !
  124. \ifx\bigger\relax
  125. \let\mainmagstep=\magstep1
  126. ***************
  127. *** 1052,1059 ****
  128. \textfonts
  129. % Define these so they can be easily changed for other fonts.
  130. ! \def\angleleft{$\langle$}
  131. ! \def\angleright{$\rangle$}
  132. % Count depth in font-changes, for error checks
  133. \newcount\fontdepth \fontdepth=0
  134. --- 1078,1092 ----
  135. \textfonts
  136. % Define these so they can be easily changed for other fonts.
  137. !
  138. ! \def\setcursymbolfont{\def\fontencoding{}%
  139. ! \expandafter\setfont
  140. ! \csname\fontname\font/syr\endcsname
  141. ! {syr}\fcursize\fcurscale
  142. ! \csname\fontname\font/syr\endcsname}
  143. !
  144. ! \def\angleleft{{\setcursymbolfont\char'341}}
  145. ! \def\angleright{{\setcursymbolfont\char'361}}
  146. % Count depth in font-changes, for error checks
  147. \newcount\fontdepth \fontdepth=0