Debian Codegraph @

doc/sphinx/fontutils/fontimage.rst

raw
1 fontimage
2 =========
3
4 Generate a font thumbnail image ::
5
6 fontimage [--o outfile] [--width num] [--height num] [--pixelsize num] [--fontname] [--text string] [--version] [--help] fontfile
7
8 *Fontimage* produces a thumbnail image of a font (which may be in any format
9 :doc:`fontforge </index>` can read).
10
11 You may either explicitly specify text to be displayed in the font, or rely on
12 fontimage's default behavior, which is to check for various scripts it knows
13 about and display something appropriate for each one present.
14
15 .. program:: fontimage
16
17 .. option:: --help
18
19 Displays a list of arguments and descriptions of each.
20
21 .. option:: --width num
22
23 Specifies the width (in pixels) of the output image. If omitted the image
24 will be as wide as it needs to be to display the text.
25
26 .. option:: --height num
27
28 Specifies the height (in pixels) of the output image. If omitted the image
29 will be as high as it needs to be to display the text.
30
31 .. option:: --o outputfile
32
33 Specifies the name of the output image file. The format is determined by the
34 extension. Currently only ".bmp" and ".png" are supported. If omitted,
35 fontimage will choose a filename based on the fontname of the font.
36
37 .. option:: --pixelsize num
38
39 Specifies the pixelsize at which to display text. This may be specified
40 multiple times. Each specification applies to any --text arguments which
41 occur after it.
42
43 .. option:: --fontname
44
45 Include the fontname as a line of text.
46
47 .. option:: --text string
48
49 Specifies a string to be displayed. The string *must* be in UTF-8. This
50 option may be provided multiple times to supply more than one line of text.
51 If omitted entirely, fontimage will examine the scripts it knows about in the
52 font and will display text appropriate to each one present.
53
54 .. option:: --version
55
56 Displays the fontimage version.
57
58
59 See Also
60 --------
61
62 :doc:`fontforge </index>`