otf2bdf.man 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. .TH OTF2BDF 1 "22 May 2008" "Freetype Version 2"
  2. .SH NAME
  3. otf2bdf \- OpenType to BDF font converter
  4. .SH SYNOPSIS
  5. .B otf2bdf
  6. [\fIoptions\fP] font.{ttf,otf}
  7. .SH DESCRIPTION
  8. .I otf2bdf
  9. will convert an OpenType font to a BDF font using the Freetype2 renderer
  10. (http://www.freetype.org).
  11. .SH OPTIONS
  12. .I otf2bdf
  13. accepts the following command line arguments:
  14. .PP
  15. .TP 8
  16. .I -v
  17. print warning messages when the font is converted.
  18. .PP
  19. .TP 8
  20. .I -n
  21. disable glyph hinting.
  22. .PP
  23. .TP 8
  24. .I -p n
  25. set the desired point size (see default value by running the program with the
  26. -h option).
  27. .PP
  28. .TP 8
  29. .I -et
  30. display a list of the platforms and encodings available in the font. The
  31. default values, compiled into the program, are a platform of 3 (Microsoft) and
  32. encoding of 1 (ISO10646). If the font does not contain the default platform
  33. and encoding, the fallback will be the Apple ISO10646 encoding.
  34. .PP
  35. .TP 8
  36. .I -r n
  37. set both the horizontal and the vertical resolution (see default value by
  38. running the program with the -h option). The minimum is 10dpi and the maximum
  39. is 1200dpi.
  40. .PP
  41. .TP 8
  42. .I -rh n
  43. set the horizontal resolution (see default value by running the program with
  44. the -h option). The minimum is 10dpi and the maximum is 1200dpi.
  45. .PP
  46. .TP 8
  47. .I -rv n
  48. set the vertical resolution (see default value by running the program with
  49. the -h option). The minimum is 10dpi and the maximum is 1200dpi.
  50. .PP
  51. .TP 8
  52. .I -o outfile
  53. sets the output filename (default output is to stdout).
  54. .PP
  55. .TP 8
  56. .I -pid id
  57. set the platform id for selecting the character map (see default value by
  58. running the program with the -h option).
  59. .PP
  60. .TP 8
  61. .I -eid id
  62. set the encoding id for selecting the character map (see default value by
  63. running the program with the -h option).
  64. .PP
  65. .TP 8
  66. .I -c c
  67. set the character spacing. This should be one of `P' for proportional,
  68. `M' for monospace, or `C' for character cell. By default, the spacing
  69. of a font will be automatically determined to be either `M' or `P'
  70. according to values provided in the font.
  71. .PP
  72. .TP 8
  73. .I -f name
  74. set the foundry name used in the XLFD name. The default value is
  75. `Freetype'.
  76. .PP
  77. .TP 8
  78. .I -t name
  79. set the typeface name used in the XLFD name. By default,
  80. .I otf2bdf
  81. will attempt to get a name from the font first and then it will use the
  82. name supplied with this command line option, and if all else fails, it
  83. will use the name `Unknown'.
  84. .PP
  85. .TP 8
  86. .I -w name
  87. set the weight name used in the XLFD name. If this value is not
  88. supplied, the default value is assumed to be `Medium'. Some common
  89. values for this are `Thin', `Delicate', `ExtraLight', `Light', `Normal',
  90. `Medium', `SemiCondensed', `Condensed', `SemiBold', `Bold', `Heavy',
  91. `ExtraBold', and `ExtraHeavy'.
  92. .PP
  93. .TP 8
  94. .I -s name
  95. set the slant name used in the XLFD name. If this value is not
  96. supplied, the default value is assumed to be `R', for Roman. Some common
  97. values for this are `R' for Roman, `I' for Italic, `O' for Oblique, `RI'
  98. for Reverse Italic, and `RO' for Reverse Oblique.
  99. .PP
  100. .TP 8
  101. .I -k name
  102. set the width name used in the XLFD name. The default is `Normal'.
  103. .PP
  104. .TP 8
  105. .I -d name
  106. set the additional style name used in the XLFD name. The default is an empty
  107. string.
  108. .PP
  109. .TP 8
  110. .I -u char
  111. set the character used to replace the dashes/spaces in a font name. The
  112. default is the space character.
  113. .PP
  114. .TP 8
  115. .I -l subset
  116. define a list of character codes which will be used to select a subset
  117. of glyphs from the font. The syntax of the subset string is the same
  118. as the syntax for selecting subsets in X11 XLFD font names. Example:
  119. .sp
  120. % otf2bdf -l '60 70 80_90' font.ttf -o font.bdf
  121. .sp
  122. The command above will only generate the glyphs for codes 60, 70, and 80
  123. through 90 inclusive. Glyphs that are not in the subset are not
  124. generated.
  125. .PP
  126. .TP 8
  127. .I -m mapfile
  128. specifies a mapping file which will reencode the BDF font when it is
  129. generated. Any glyphs with codes that do not have a mapping will not
  130. be generated.
  131. .sp
  132. The remapping file should begin with two lines, one which starts with
  133. REGISTRY followed by the character set registry and one which starts
  134. with ENCODING followed by the encoding. An example from the
  135. iso8859.2 file:
  136. .sp
  137. REGISTRY ISO8859
  138. .br
  139. ENCODING 2
  140. .sp
  141. The remapping data should be two columns of hexadecimal numbers, separated by
  142. spaces or tabs. The first column should have the code which should be used in
  143. the BDF font. The second column should be the hexadecimal code of the glyph
  144. in the "cmap" table otf2bdf is using. An example mapping file is provided
  145. which will map fonts from Unicode (the default "cmap" table) to ISO8859-2.
  146. .sp
  147. Unicode is not the only option. If you choose another platform and
  148. encoding ID on the command line, then the remapping is assumed to map
  149. from the chosen platform and encoding to some other character set.
  150. .SH "SEE ALSO"
  151. gbdfed(1), xfed(1), bdftopcf(1), bdftosnf(1), bdfresize(1)
  152. .br
  153. \fIGlyph Bitmap Distribution Format (BDF) Specification\fP, Application
  154. Note 5005, Adobe System Inc, 1993
  155. .br
  156. \fIX Logical Font Description Conventions\fP, X Consortium
  157. .SH ACKNOWLEDGMENTS
  158. The FreeType project for providing the renderer!
  159. .br
  160. Robert Wilhelm <robert@physiol.med.tu-muenchen.de> for pointing out a
  161. crucial problem with the pre-1.0 code.
  162. .br
  163. Lho Li-Da <ollie@ms1.hinet.net> for problem reports.
  164. .br
  165. Adrian Havill <havill@threeweb.ad.jp> for unintentionally pointing out a
  166. missing feature.
  167. .br
  168. Richard Verhoeven <rcb5@win.tue.nl> for problem reports and patches.
  169. .br
  170. Choi Jun Ho <junker@jazz.snu.ac.kr> whose implementation provided some
  171. nice new features.
  172. .br
  173. Pavel Kankovsky <peak@kerberos.troja.mff.cuni.cz> for providing some
  174. critical metrics fixes and other improvements.
  175. .br
  176. Matti Koskinen <mjkoskin@sci.fi> for pointing out a problem.
  177. .br
  178. Eugene Bobin <gene@ftim.ustu.ru> for mapping tables.
  179. .br
  180. Oleg N. Yakovlev <yashka@optima.dnepropetrovsk.ua> for pointing out a problem.
  181. .br
  182. Bertrand Petit <elrond@phoe.frmug.org> for additional functionality.
  183. .br
  184. Roman Czyborra <czyborra@cs.tu-berlin.de> for pointing out some problems.
  185. .br
  186. Mike Blazer <blazer@mail.nevalink.ru> for some Window's compilation advice.
  187. .br
  188. Solofo Ramangalahy <solofo@mpi-sb.mpg.de> for contributing some mapping
  189. tables.
  190. .br
  191. Antoine Leca <Antoine.Leca@renault.fr> for mapping table suggestions.
  192. .br
  193. Patrick Hagglund <patrik.hagglund@bredband.net> for Freetype2 patches.
  194. .br
  195. Christos Tountas <cvt@sprynet.com> for finding problems.
  196. .br
  197. Nelson Beebe <beebe@math.utah.edu> for finding problems.
  198. .br
  199. "Prophet of the Way" <afu@wta.att.ne.jp> for finding a problem.
  200. .SH AUTHOR
  201. Mark Leisher
  202. .br
  203. Computing Research Lab
  204. .br
  205. New Mexico State University
  206. .br
  207. Email: mleisher@crl.nmsu.edu