Debian Codegraph @

doc/sphinx/ui/misc/resedit.rst

raw
1 Appearance Editor
2 =================
3
4 .. image:: /images/resedit.png
5
6 This dialog allows you to control the look and feel of FontForge.
7
8 Almost all of the controls are explained in more detail in mouse hover tooltips
9 but the full list of parameters is also in :doc:`this document <xres>`. Its
10 section on :ref:`specifying fonts <xres.font>` is worth reviewing as there are
11 now new options.
12
13 Some changes made in the editor will be reflected instantly, other changes
14 require refreshing the screen, other changes require invoking a new dialog, and
15 some changes you must save the changes and restart fontforge.
16
17 To the left of the dialog is a list of all fontforge's controls (and some other
18 stuff). Every control is drawn within a box, and the box specifies a background,
19 border, shape, size... Many controls have an associated font. Most controls
20 inherit much of their design from other controls (The GGadget, which is an
21 abstract control, is the root of the hierarchy). A particular attribute may be
22 inherited from its parent, or it may be defined by the current control.
23
24 Other controls may depend on the current one, changes to the current control may
25 affect those others if the attribute changed is inherited.
26
27 The top of the pane identifies the current control, and describes the parent of
28 the current control (you may click on the "Inherits from" entry to change the
29 pane to view that control). Often there are some examples of the control,
30 generally an enabled and disabled version.
31
32 Beneath this are the actual data. First the data describing the box. There are a
33 series of flags
34
35 .. object:: Outline Inner Border
36
37 A line (in the text color) will be drawn on the inside of the border to make
38 it more distinct.
39
40 .. object:: Outline Outer Border
41
42 A line will be drawn on the outside of the border.
43
44 .. object:: Show Active Border
45
46 Not all controls display this, and there are some differences among controls
47 about when one is active, but basically if the focus or mouse cursor is in
48 the control, then a special border (drawn with the active border color) is
49 drawn on the inside of the main border. This will be instead of the "Outline
50 Inner Border" if both be specified.
51
52 .. object:: Despressed Background
53
54 If selected (and the control supports it -- buttons do) then when the mouse
55 is depressed in the control the background of the control changes color.
56
57 .. object:: Outline Default Button
58
59 If the current control is a default button, then a special border is drawn
60 well outside the normal border to indicate that it is.
61
62 .. object:: Background Gradient
63
64 If set then the background is drawn as a reflected gradient with the normal
65 background color drawn in the center (vertically) of the control and the
66 background gradient color drawn at the top and bottom edges (like the [OK]
67 button above).
68
69 Then come a series of colors. Different colors may be specified for enabled and
70 disabled controls. The border has four different colors, for the brightest, mid
71 bright, mid dark and darkest edges of the control. Where each of the border
72 colors is used depends on the border type.
73
74 The peculiar button, |colorbutton|, is a color button. It displays the current
75 color in a rectangle, and, if pressed, invokes a color picker dialog.
76
77 .. |colorbutton| image:: /images/colorbutton.png
78
79 .. image:: /images/colorpicker.jpeg
80 :align: right
81
82 The color picker displays a Hue/Saturation/Value color wheel. A vertical bar on
83 the right shows the Value, the wheel shows Hue and Saturation. The original
84 color is displayed on the bottom left. The current color on the bottom right. If
85 the color is not fully opaque a checker board of black and white squares will be
86 visible under the colors.
87
88 Not all colors support opacities (only those drawn on the cairo canvas), and for
89 many colors the Opacity control will be hidden (and fixed at 1.0).
90
91 Underneath the colors are ways of specifying the shape and type of the border,
92 how wide it is, whether there is any padding between the border and the inner
93 part of the control, and (for borders with a round-rectangle shape) the radius
94 of the circle used to round the corners (a radius of 0 means: half the height of
95 the control -- actually half the smaller dimension of the control).
96
97 Finally we come to the font used in the control. This is specified by a number
98 (between 0 and 1000) specifying the weight of the font (400 is normal, 700 is
99 bold), a point size, and a comma separated list of font family names. Changing
100 the font will not have any obvious effect until you restart the dialog.
101
102 That specifies the standard box used to draw each control. Some controls have
103 additional parameters. The Button control above contains an additional boolean
104 parameter which (if set) will cause the text of the button to shift slightly
105 right when the button is pressed. (This is another of those parameters where you
106 must restart the dialog to see it take effect).
107
108 If you press the [OK] button then your current settings will be used in
109 subsequent dialogs created by FontForge -- but any changes you make will vanish
110 when you exit. If you press the [Save] button then your changes will be saved to
111 disk, and (optionally) used the next time you start fontforge.