| 1 |
Changing FontForge's UI Appearance |
| 2 |
================================== |
| 3 |
|
| 4 |
FontForge has an extensive appearance editor that evolved out of the X resource |
| 5 |
system but now bears little relation to it beyond its file format. As of 2021 |
| 6 |
every parameter is represented in the editor and almost all have a tooltip |
| 7 |
similar to the explanations below. The editor is therefore the primary source |
| 8 |
of information about the parameters and this document is mostly useful for its |
| 9 |
explanation of the new font specification system. |
| 10 |
|
| 11 |
.. _xres.font: |
| 12 |
|
| 13 |
Fonts |
| 14 |
----- |
| 15 |
|
| 16 |
A font specification consists of a *size* directive, one or more *style* |
| 17 |
directives a *weight* directive, an explicit or implicit *family list*, and/or |
| 18 |
a reference font name. |
| 19 |
|
| 20 |
Explicit Size Directives |
| 21 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 22 |
|
| 23 |
An explicit size directive is either an integer followed by "pt" for a point |
| 24 |
size (as in "10pt") or an integer followed by "px" for a pixel size (as in |
| 25 |
"12px"). |
| 26 |
|
| 27 |
Style Directives |
| 28 |
~~~~~~~~~~~~~~~~ |
| 29 |
|
| 30 |
A style directive is one or more of "italic", "oblique", "small-caps", |
| 31 |
"extended", and "condensed". |
| 32 |
|
| 33 |
Weight Directives |
| 34 |
~~~~~~~~~~~~~~~~~ |
| 35 |
|
| 36 |
A weight directive is either one of the strings "normal", "light", or "bold" or |
| 37 |
an integer multiple of 100, where 400 is equivalent to "normal" and 700 is |
| 38 |
equivalent to "bold". |
| 39 |
|
| 40 |
Family Lists |
| 41 |
~~~~~~~~~~~~ |
| 42 |
|
| 43 |
A family list is a comma-separated list of families, where a given family name |
| 44 |
can contain spaces. When present a family list must come last in the specification, |
| 45 |
whereas other directives can occur in any order. |
| 46 |
|
| 47 |
The directive "bold italic 10pt dejavu sans,helvetica,sans" therefore specifies |
| 48 |
10 point bold italic DejaVu Sans as the font, with Helvetica and Sans possibly |
| 49 |
used as fallbacks for missing glyphs. |
| 50 |
|
| 51 |
Reference Font Names |
| 52 |
~~~~~~~~~~~~~~~~~~~~ |
| 53 |
|
| 54 |
Instead of specifying a font from scratch you can do so in relation to a |
| 55 |
reference font, given by the name of the resource preceded by a caret. The |
| 56 |
primary fonts to reference are "View.DefaultFont", "View.LabelFont", |
| 57 |
"View.MonoFont", and "View.SerifFont". These are (or should be) specified with |
| 58 |
appropriate family lists for a sans-serif, "unicode", monospace, and serif font |
| 59 |
respectively. They also specify a reference font size, which is 12 points by |
| 60 |
default. The label "unicode" font is typically used in cases where extended |
| 61 |
or obscure unicode characters are directly displayed (most often as glyph |
| 62 |
slot labels in the FontView window). |
| 63 |
|
| 64 |
To copy the exact specification of a different font you can just include the |
| 65 |
reference name, as in "^View.DefaultFont". To override the size, weight or |
| 66 |
style just include one of those directives, as in "10pt bold ^View.MonoFont". |
| 67 |
Note that style directives are not cumulative, so if "FontInfo.Font" is bold |
| 68 |
then "italic ^FontInfo.Font" will just be italic, not bold italic. |
| 69 |
|
| 70 |
Finally, and most usefully, you can specify a size as a *percentage* rather |
| 71 |
than an absolute size, with an integer followed by a percent sign. "83% bold |
| 72 |
^View.DefaultFont" therefore specifies whatever size (in points or pixels) |
| 73 |
would be 83% of that font. |
| 74 |
|
| 75 |
The default resource file now has these relative font settings, so that |
| 76 |
changing the point size of View.DefaultFont scales the whole UI. There are some |
| 77 |
glitches but for the most part it works at lower point sizes (less than 17). |
| 78 |
|
| 79 |
Other Info |
| 80 |
---------- |
| 81 |
|
| 82 |
By default FontForge loads the system configuration file. You can change this |
| 83 |
behavior by adding a custom file in your preferences, which happens |
| 84 |
automatically when you choose Save As" in the :doc:`File->Appearance Editor |
| 85 |
<resedit>` and keep the button checked. Also see |
| 86 |
:ref:`File->Preference->Generic->ResourceFile <prefs.ResourceFile>`. |
| 87 |
|
| 88 |
When editing resources some will take effect immediately, some when a new window |
| 89 |
is opened, and some on the next restart of the program. It is therefore best to |
| 90 |
restart after each significant change. |
| 91 |
|
| 92 |
The Directives |
| 93 |
-------------- |
| 94 |
|
| 95 |
View |
| 96 |
~~~~ |
| 97 |
|
| 98 |
.. object:: fontforge.View.DefaultFont |
| 99 |
|
| 100 |
Specifies the main font family used throughout the program, which is usually |
| 101 |
sans-serif, along with a reference size (12 points by default). |
| 102 |
|
| 103 |
.. object:: fontforge.View.MonoFont |
| 104 |
|
| 105 |
Specifies the monospace font family used in various fields and tables along |
| 106 |
with a reference size (copied from View.DefaultFont by default). |
| 107 |
|
| 108 |
.. object:: fontforge.View.SerifFont |
| 109 |
|
| 110 |
Specifies the serif font family used in a few contexts along with a reference |
| 111 |
size (copied from View.DefaultFont by default). |
| 112 |
|
| 113 |
.. object:: fontforge.View.Background |
| 114 |
|
| 115 |
Sets the background color for the drawing areas of the fontview, glyph view, |
| 116 |
bitmap view and metrics view. |
| 117 |
|
| 118 |
Font View |
| 119 |
~~~~~~~~~ |
| 120 |
|
| 121 |
.. object:: fontforge.FontView.GlyphFGColor |
| 122 |
|
| 123 |
The color of the glyph image in the FontView when not selected |
| 124 |
|
| 125 |
.. object:: fontforge.FontView.GlyphInfoColor |
| 126 |
|
| 127 |
Sets the color used to display information about selected glyph, between the |
| 128 |
FontView menu bar and the glyph array. |
| 129 |
|
| 130 |
.. object:: fontforge.FontView.SlotOutlineColor |
| 131 |
|
| 132 |
The color of the box around each glyph. |
| 133 |
|
| 134 |
.. object:: fontforge.FontView.SlotDivisionColor |
| 135 |
|
| 136 |
The color of the line between the glyph label and glyph image |
| 137 |
|
| 138 |
.. object:: fontforge.FontView.LabelColor |
| 139 |
|
| 140 |
The default color of the label |
| 141 |
|
| 142 |
.. object:: fontforge.FontView.UnencodedLabelColor |
| 143 |
|
| 144 |
The color of the label when the glyph is not part of the encoding |
| 145 |
|
| 146 |
.. object:: fontforge.FontView.MissingLabelColor |
| 147 |
|
| 148 |
The color of the substitute label when the proper one is unknown or unavailable. |
| 149 |
|
| 150 |
.. object:: fontforge.FontView.EmptySlotFgColor |
| 151 |
|
| 152 |
Sets the color of crosses marking empty code points. |
| 153 |
|
| 154 |
.. object:: fontforge.FontView.SelectedColor |
| 155 |
|
| 156 |
Sets the background color of selected glyphs. |
| 157 |
|
| 158 |
.. object:: fontforge.FontView.SelectedFgColor |
| 159 |
|
| 160 |
Sets the foreground color of selected glyphs. |
| 161 |
|
| 162 |
.. object:: fontforge.FontView.ChangedColor |
| 163 |
|
| 164 |
Sets the color used to mark changed glyphs. |
| 165 |
|
| 166 |
.. object:: fontforge.FontView.MissingBitmapColor |
| 167 |
|
| 168 |
In a font with both outline and bitmaps this marks a slot with an outline but not a bitmap |
| 169 |
|
| 170 |
.. object:: fontforge.FontView.MissingOutlineColor |
| 171 |
|
| 172 |
In a font with both outline and bitmaps this marks a slot with a bitmap but no outline |
| 173 |
|
| 174 |
.. object:: fontforge.FontView.HintingNeededColor |
| 175 |
|
| 176 |
Sets the color of markings for glyphs that need hinting or instructing. |
| 177 |
|
| 178 |
.. object:: fontforge.FontView.MetricsAdvanceAtColor |
| 179 |
.. object:: fontforge.FontView.MetricsAdvanceToColor |
| 180 |
.. object:: fontforge.FontView.MetricsBaselineColor |
| 181 |
.. object:: fontforge.FontView.MetricsOriginColor |
| 182 |
|
| 183 |
The respective colors of these metrics when they are set as visible in the View menu |
| 184 |
|
| 185 |
.. object:: fontforge.FontView.Font |
| 186 |
|
| 187 |
The font used for the lables, which by default is just ^View.DefaultFont |
| 188 |
|
| 189 |
Outline Points |
| 190 |
~~~~~~~~~~~~~~ |
| 191 |
|
| 192 |
.. object:: fontforge.CharView.PointColor |
| 193 |
|
| 194 |
Sets the color used to draw curved, corner or tangent points in the outline |
| 195 |
character view. |
| 196 |
|
| 197 |
.. object:: fontforge.CharView.FirstPointColor |
| 198 |
|
| 199 |
Sets the color of the first point on a contour. |
| 200 |
|
| 201 |
.. object:: fontforge.CharView.SelectedPointColor |
| 202 |
|
| 203 |
Sets the color used to draw selected curved, corner or tangent points in the |
| 204 |
outline character view. |
| 205 |
|
| 206 |
.. object:: fontforge.CharView.SelectedPointWidth |
| 207 |
|
| 208 |
Sets the width of the line used to outline selected curved, corner or tangent |
| 209 |
points in the outline character view. |
| 210 |
|
| 211 |
.. object:: fontforge.CharView.ExtremePointColor |
| 212 |
|
| 213 |
Sets the color of a point which is an extremum. |
| 214 |
|
| 215 |
.. object:: fontforge.CharView.PointOfInflectionColor |
| 216 |
|
| 217 |
Sets the color of a location which is a point of inflection. |
| 218 |
|
| 219 |
.. object:: fontforge.CharView.AlmostHVColor |
| 220 |
|
| 221 |
Sets the color used to mark lines and curves which are almost, but not quite |
| 222 |
horizontal or vertical. |
| 223 |
|
| 224 |
.. object:: fontforge.CharView.NextCPColor |
| 225 |
|
| 226 |
Sets the color used to draw the "Next" control point. |
| 227 |
|
| 228 |
.. object:: fontforge.CharView.PrevCPColor |
| 229 |
|
| 230 |
Sets the color used to draw the "Previous" control point. |
| 231 |
|
| 232 |
.. object:: fontforge.CharView.SelectedCPColor |
| 233 |
|
| 234 |
Sets the color used to draw a control point that has been selected. |
| 235 |
|
| 236 |
.. object:: fontforge.CharView.AnchorColor |
| 237 |
|
| 238 |
Sets the color used to draw an anchor point |
| 239 |
|
| 240 |
.. object:: fontforge.CharView.LabelFont |
| 241 |
|
| 242 |
Used for point and contour names, anchor point names, etc. |
| 243 |
|
| 244 |
.. object:: fontforge.CharView.IconFont |
| 245 |
|
| 246 |
Used to build window decoration icons in some cases |
| 247 |
|
| 248 |
.. object:: fontforge.CharView.PointNumberFont |
| 249 |
|
| 250 |
Used for point numbers, hints, etc. |
| 251 |
|
| 252 |
Outline Lines/Fills |
| 253 |
~~~~~~~~~~~~~~~~~~~ |
| 254 |
|
| 255 |
.. object:: fontforge.CharView.ForegroundOutlineColor |
| 256 |
|
| 257 |
Sets the color used to draw foreground outlines. |
| 258 |
|
| 259 |
.. object:: fontforge.CharView.ForegroundThickOutlineColor |
| 260 |
|
| 261 |
The color of thick outlines in the active layer (when zoomed in) |
| 262 |
|
| 263 |
.. object:: fontforge.CharView.FillColor |
| 264 |
|
| 265 |
Sets the color used to draw a character's fill |
| 266 |
|
| 267 |
.. object:: fontforge.CharView.PreviewFillColor |
| 268 |
|
| 269 |
The color to use when performing a preview fill. If this is not set then |
| 270 |
FontForge will fallback to using fontforge.CharView.FillColor. Neither of |
| 271 |
these resources are set then black will be used. |
| 272 |
|
| 273 |
.. object:: fontforge.CharView.OpenPathColor |
| 274 |
|
| 275 |
The color of the line of an open path. (The "thin" color will be with |
| 276 |
the alpha removed and the "thick" color will be with the alpha included.) |
| 277 |
|
| 278 |
.. object:: fontforge.CharView.ClipPathColor |
| 279 |
|
| 280 |
The color of a clip path. |
| 281 |
|
| 282 |
.. object:: fontforge.CharView.BackgroundOutlineColor |
| 283 |
|
| 284 |
Sets the color used to draw background outlines. |
| 285 |
|
| 286 |
.. object:: fontforge.CharView.BackgroundThickOutlineColor |
| 287 |
|
| 288 |
The color of "thick" background outlines (when zoomed in). |
| 289 |
|
| 290 |
.. object:: fontforge.CharView.WidthColor |
| 291 |
|
| 292 |
Sets the color used to draw the advance width line. |
| 293 |
|
| 294 |
.. object:: fontforge.CharView.WidthSelColor |
| 295 |
|
| 296 |
Sets the color used to draw the advance width if it is selected. |
| 297 |
|
| 298 |
.. object:: fontforge.CharView.LBearingSelColor |
| 299 |
|
| 300 |
The color of the left bearing line wien selected |
| 301 |
|
| 302 |
.. object:: fontforge.CharView.LigatureCaretColor |
| 303 |
|
| 304 |
Sets the color used to draw ligature caret lines. |
| 305 |
|
| 306 |
.. object:: fontforge.CharView.AnchoredOutlineColor |
| 307 |
|
| 308 |
The color of another glyph drawn in the current view to show |
| 309 |
where it would be placed by an anchor lookup. |
| 310 |
|
| 311 |
.. object:: fontforge.CharView.CoordinateLineColor |
| 312 |
|
| 313 |
Sets the color used to draw the baseline and x=0 line. |
| 314 |
|
| 315 |
.. object:: fontforge.CharView.AscentDescentColor |
| 316 |
|
| 317 |
Sets the color used to draw the ascent and descent lines. |
| 318 |
|
| 319 |
.. object:: fontforge.CharView.ItalicCoordColor |
| 320 |
|
| 321 |
Sets the color used to draw various horizontal metrics lines when they have |
| 322 |
been skewed appropriately for an italic font. |
| 323 |
|
| 324 |
.. object:: fontforge.CharView.MetricsLabelColor |
| 325 |
|
| 326 |
Sets the color used to label metrics lines |
| 327 |
|
| 328 |
.. object:: fontforge.CharView.TemplateOutlineColor |
| 329 |
|
| 330 |
Sets the color used to draw a template outline. (not currently used) |
| 331 |
|
| 332 |
.. object:: fontforge.CharView.RulerBigTickColor |
| 333 |
|
| 334 |
Sets the color of coarse-grained ruler ticks. |
| 335 |
|
| 336 |
.. object:: fontforge.CharView.RulerCurrentTickColor |
| 337 |
|
| 338 |
Sets the color used to draw a vertical and a horizontal tick |
| 339 |
corresponding to the mouse position. |
| 340 |
|
| 341 |
.. object:: fontforge.CharView.RulerFont |
| 342 |
|
| 343 |
Font uesd for ruler numbers and other ruler notations. |
| 344 |
|
| 345 |
.. object:: fontforge.CharView.GuideOutlineColor |
| 346 |
|
| 347 |
Sets the color used to draw outlines in the Guide layer. |
| 348 |
|
| 349 |
.. object:: fontforge.CharView.GuideDragColor |
| 350 |
|
| 351 |
The color used to display a new guide line dragged from the ruler. |
| 352 |
|
| 353 |
Outline Tools |
| 354 |
~~~~~~~~~~~~~ |
| 355 |
|
| 356 |
.. object:: fontforge.CharView.TraceColor |
| 357 |
|
| 358 |
Sets the color used to draw the trace of the freehand tool. |
| 359 |
|
| 360 |
.. object:: fontforge.CharView.OldOutlineColor |
| 361 |
|
| 362 |
Sets the color used to draw the original outline of a set of splines being |
| 363 |
transformed with one of the transform tools (flip, rotate, scale, etc.) |
| 364 |
|
| 365 |
.. object:: fontforge.CharView.TransformOriginColor |
| 366 |
|
| 367 |
Sets the color used to draw the origin of the current transformation. |
| 368 |
|
| 369 |
.. object:: fontforge.CharView.DraggingComparisonOutlineColor |
| 370 |
|
| 371 |
The color used to draw the outline of the old spline when you |
| 372 |
are interactively modifying a glyph |
| 373 |
|
| 374 |
.. object:: fontforge.CharView.DraggingComparisonAlphaChannelColor |
| 375 |
|
| 376 |
Only the alpha value of this parameter is used. If non zero it will |
| 377 |
set the alpha channel for the control points, bezier information |
| 378 |
and other non spline indicators for the Dragging Comparison Outline |
| 379 |
spline |
| 380 |
|
| 381 |
.. object:: fontforge.CharView.MeasureToolLineColor |
| 382 |
|
| 383 |
The color used to draw the measure tool line. |
| 384 |
|
| 385 |
.. object:: fontforge.CharView.MeasureToolPointColor |
| 386 |
|
| 387 |
The color used to draw the measure tool points. |
| 388 |
|
| 389 |
.. object:: fontforge.CharView.MeasureToolPointSnappedColor |
| 390 |
|
| 391 |
The color used to draw the measure tool points when snapped. |
| 392 |
|
| 393 |
.. object:: fontforge.CharView.MeasureToolCanvasNumbersColor |
| 394 |
|
| 395 |
The color used to draw the measure tool numbers on the canvas. |
| 396 |
|
| 397 |
.. object:: fontforge.CharView.MeasureToolCanvasNumbersSnappedColor |
| 398 |
|
| 399 |
The color used to draw the measure tool numbers on the canvas when snapped. |
| 400 |
|
| 401 |
.. object:: fontforge.CharView.MeasureToolWindowForeground |
| 402 |
|
| 403 |
The measure tool "window" foreground color. |
| 404 |
|
| 405 |
.. object:: fontforge.CharView.MeasureToolWindowBackground |
| 406 |
|
| 407 |
The measure tool "window" background color. |
| 408 |
|
| 409 |
.. object:: fontforge.CharView.MeasureToolFont |
| 410 |
|
| 411 |
The font used to display the information in the measure tool |
| 412 |
"window". |
| 413 |
|
| 414 |
Outline Hints |
| 415 |
~~~~~~~~~~~~~ |
| 416 |
|
| 417 |
.. object:: fontforge.CharView.BlueValuesStippledCol |
| 418 |
|
| 419 |
Sets the color used to draw the BlueValues and OtherBlues zones. |
| 420 |
|
| 421 |
.. object:: fontforge.CharView.FamilyBlueStippledColor |
| 422 |
|
| 423 |
Sets the color used to draw the FamilyBlueValues and FamilyOtherBlues zones. |
| 424 |
|
| 425 |
.. object:: fontforge.CharView.MDHintColor |
| 426 |
|
| 427 |
Sets the color used to draw minimum distance hints |
| 428 |
|
| 429 |
.. object:: fontforge.CharView.HintLabelColor |
| 430 |
|
| 431 |
Sets the color used to label hint lines (and blue value lines) |
| 432 |
|
| 433 |
.. object:: fontforge.CharView.DHintColor |
| 434 |
|
| 435 |
Sets the color used to draw diagonal hints |
| 436 |
|
| 437 |
.. object:: fontforge.CharView.HHintColor |
| 438 |
|
| 439 |
Sets the color used to draw horizontal stem hints |
| 440 |
|
| 441 |
.. object:: fontforge.CharView.VHintColor |
| 442 |
|
| 443 |
Sets the color used to draw vertical stem hints |
| 444 |
|
| 445 |
.. object:: fontforge.CharView.HFlexHintColor |
| 446 |
|
| 447 |
Sets the color used to draw the halo around horizontal flex hints |
| 448 |
|
| 449 |
.. object:: fontforge.CharView.VFlexHintColor |
| 450 |
|
| 451 |
Sets the color used to draw the halo around vertical flex hints. |
| 452 |
|
| 453 |
.. object:: fontforge.CharView.ConflictHintColor |
| 454 |
|
| 455 |
Sets the color used to draw hints when they conflict |
| 456 |
|
| 457 |
.. object:: fontforge.CharView.HHintActiveColor |
| 458 |
|
| 459 |
Sets the color used to draw a horizontal stem hint when it is active in the |
| 460 |
review hints dlg. |
| 461 |
|
| 462 |
.. object:: fontforge.CharView.VHintActiveColor |
| 463 |
|
| 464 |
Sets the color used to draw a vertical stem hint when it is active in the |
| 465 |
review hints dlg. |
| 466 |
|
| 467 |
.. object:: fontforge.CharView.DeltaGridColor |
| 468 |
|
| 469 |
Indicates a notable grid pixel when suggesting deltas. |
| 470 |
|
| 471 |
Outline Raster |
| 472 |
~~~~~~~~~~~~~~ |
| 473 |
|
| 474 |
.. object:: fontforge.CharView.GridFitOutlineColor |
| 475 |
|
| 476 |
Sets the color used to draw outlines which have been gridfit (this should |
| 477 |
probably be the same as BackgroundOutlineColor as both are in the background |
| 478 |
layer). |
| 479 |
|
| 480 |
.. object:: fontforge.CharView.GridFitWidthColor |
| 481 |
|
| 482 |
Sets the color used to draw the advance width once it has been grid fit (if |
| 483 |
:menuselection:`View --> Show Grid Fit` is on) |
| 484 |
|
| 485 |
.. object:: fontforge.CharView.RasterColor |
| 486 |
|
| 487 |
Sets the color used to draw the pixels of a rasterized bitmap (if |
| 488 |
:menuselection:`View --> Show Grid Fit` or :menuselection:`Hints --> Debug` |
| 489 |
is on) |
| 490 |
|
| 491 |
.. object:: fontforge.CharView.RasterNewColor |
| 492 |
|
| 493 |
Sets the color used to draw the pixels of a rasterized bitmap if they have |
| 494 |
recently been turned on (if :menuselection:`Hints --> Debug` is on) |
| 495 |
|
| 496 |
.. object:: fontforge.CharView.RasterOldColor |
| 497 |
|
| 498 |
Sets the color used to draw the pixels of a rasterized bitmap f they have |
| 499 |
recently been turned off (if :menuselection:`Hints --> Debug` is on) |
| 500 |
|
| 501 |
.. object:: fontforge.CharView.RasterGridColor |
| 502 |
|
| 503 |
Sets the color used to draw the pixel grid used by the rasterizer (if |
| 504 |
:menuselection:`View --> Show Grid Fit` or :menuselection:`Hints --> Debug` |
| 505 |
is on) |
| 506 |
|
| 507 |
.. object:: fontforge.CharView.RasterDarkColor |
| 508 |
|
| 509 |
When doing anti-aliased debugging, sets the color used for the darkest pixel. |
| 510 |
Other pixels will be interpolated between this and the background. |
| 511 |
|
| 512 |
.. object:: fontforge.CharView.BackgroundImageColor |
| 513 |
|
| 514 |
Sets the color used to draw background images. |
| 515 |
|
| 516 |
Palettes |
| 517 |
~~~~~~~~ |
| 518 |
|
| 519 |
.. object:: fontforge.CharView.CVPaletteForegroundColor |
| 520 |
|
| 521 |
The foreground color of the tools and layers palettes. |
| 522 |
|
| 523 |
.. object:: fontforge.CharView.CVPaletteBackgroundColor |
| 524 |
|
| 525 |
The background color of the tools and layers palettes. |
| 526 |
|
| 527 |
.. object:: fontforge.CharView.Button3DEdgeLightColor |
| 528 |
|
| 529 |
The color of the light edge of palette buttons when Button3d is True. |
| 530 |
|
| 531 |
.. object:: fontforge.CharView.Button3DEdgeDarkColor |
| 532 |
|
| 533 |
The color of the dark edge of palette buttons when Button3d is True. |
| 534 |
|
| 535 |
.. object:: fontforge.CharView.Button3D |
| 536 |
|
| 537 |
When True palette buttons are displayed with a 3D effect. |
| 538 |
|
| 539 |
.. object:: fontforge.LayersPalette.Font |
| 540 |
|
| 541 |
The font used in the layers palettes dialog. |
| 542 |
|
| 543 |
.. object:: fontforge.ToolsPalette.Font |
| 544 |
|
| 545 |
The font used in the Tools Palette dialog for labelling tool options. |
| 546 |
|
| 547 |
Bitmap View |
| 548 |
~~~~~~~~~~~ |
| 549 |
|
| 550 |
.. object:: fontforge.BitmapView.BitmapColor |
| 551 |
|
| 552 |
The color of the large bitmap. |
| 553 |
|
| 554 |
.. object:: fontforge.BitmapView.OverviewColor |
| 555 |
|
| 556 |
The color of the small bitmap view. |
| 557 |
|
| 558 |
.. object:: fontforge.BitmapView.GuideColor |
| 559 |
|
| 560 |
The color of the guide lines for glyph metrics. |
| 561 |
|
| 562 |
.. object:: fontforge.BitmapView.WidthGuideColor |
| 563 |
|
| 564 |
The color of the guide line for the advance width. |
| 565 |
|
| 566 |
.. object:: fontforge.BitmapView.GridColor |
| 567 |
|
| 568 |
The color of the guide lines for the bitmap grid. |
| 569 |
|
| 570 |
.. object:: fontforge.BitmapView.OutlineColor |
| 571 |
|
| 572 |
The color of the outline. |
| 573 |
|
| 574 |
.. object:: fontforge.BitmapView.ActiveToolColor |
| 575 |
|
| 576 |
The color of the preview for drawing lines, rectangles, and ellipses. |
| 577 |
|
| 578 |
.. object:: fontforge.BitmapView.SelectedRegionColor |
| 579 |
|
| 580 |
The color of the selected region. |
| 581 |
|
| 582 |
.. object:: fontforge.BitmapView.ReferenceColor |
| 583 |
|
| 584 |
The color of a reference. |
| 585 |
|
| 586 |
.. object:: fontforge.BitmapView.SelectedReferenceColor |
| 587 |
|
| 588 |
The color of the selected reference. |
| 589 |
|
| 590 |
.. object:: fontforge.BitmapView.ReferenceBorderColor |
| 591 |
|
| 592 |
The color used to outline a reference. |
| 593 |
|
| 594 |
.. object:: fontforge.BitmapView.SelectedReferenceBorderColor |
| 595 |
|
| 596 |
The color used to outline the selected reference. |
| 597 |
|
| 598 |
Metrics View |
| 599 |
~~~~~~~~~~~~ |
| 600 |
|
| 601 |
.. object:: fontforge.MetricsView.Font |
| 602 |
|
| 603 |
The font used to display labels in the metrics view. |
| 604 |
|
| 605 |
.. object:: fontforge.MetricsView.GlyphColor |
| 606 |
|
| 607 |
The foreground color of the glyph display area. |
| 608 |
|
| 609 |
.. object:: fontforge.MetricsView.SelectedGlyphColor |
| 610 |
|
| 611 |
The color for the currently selected glyph. |
| 612 |
|
| 613 |
.. object:: fontforge.MetricsView.AdvanceWidthColor |
| 614 |
|
| 615 |
The color of field divider lines. |
| 616 |
|
| 617 |
.. object:: fontforge.MetricsView.AdvanceWidthColor |
| 618 |
|
| 619 |
Sets the color for the grid lines in the metrics view when nothing special |
| 620 |
is happening to them. |
| 621 |
|
| 622 |
.. object:: fontforge.MetricsView.ItalicAdvanceColor |
| 623 |
|
| 624 |
In an italic font, this will be the color used to draw the line at the |
| 625 |
italicAngle which corresponds to the italic advance width. |
| 626 |
|
| 627 |
.. object:: fontforge.MetricsView.KernLineColor |
| 628 |
|
| 629 |
Sets the color for the grid line in the metrics view which currently may be |
| 630 |
moved to change a glyph's kerning. |
| 631 |
|
| 632 |
.. object:: fontforge.MetricsView.SideBearingLneColor |
| 633 |
|
| 634 |
Sets the color for the grid line in the metrics view which currently may be |
| 635 |
moved to change a glyph's right side bearing (or bottom side bearing). |
| 636 |
|
| 637 |
Misc Windows |
| 638 |
~~~~~~~~~~~~ |
| 639 |
|
| 640 |
.. object:: fontforge.BDFProperties.Font |
| 641 |
|
| 642 |
Sets the font used in the BDF Properties dialog for stand alone text |
| 643 |
|
| 644 |
.. object:: fontforge.Combinations.Font |
| 645 |
|
| 646 |
Sets the font used in the kern and anchor combinations dialog for labelling |
| 647 |
the combinations |
| 648 |
|
| 649 |
.. object:: fontforge.CVT.Font |
| 650 |
|
| 651 |
Sets the font used in the 'cvt ' table dialog |
| 652 |
|
| 653 |
.. object:: fontforge.DebugView.Background |
| 654 |
|
| 655 |
The background of the TTF debugging window. |
| 656 |
|
| 657 |
.. object:: fontforge.DebugView.Font |
| 658 |
|
| 659 |
The font used to display the truetype instructions being debugged. |
| 660 |
|
| 661 |
.. object:: fontforge.FontInfo.OriginLineColor |
| 662 |
|
| 663 |
The color used for the baseline and x=0 line in kerning dialogs. |
| 664 |
|
| 665 |
.. object:: fontforge.FontInfo.Font |
| 666 |
|
| 667 |
The font used for Font Info dialog scrolling lists. |
| 668 |
|
| 669 |
.. object:: fontforge.GlyphInfo.Font |
| 670 |
|
| 671 |
Sets the font used in the glyph info dialog for stand alone text |
| 672 |
|
| 673 |
.. object:: fontforge.Groups.Font |
| 674 |
|
| 675 |
Sets the font used in the Groups dialog |
| 676 |
|
| 677 |
.. object:: fontforge.KernClass.TextColor |
| 678 |
|
| 679 |
Color for kerning class names. |
| 680 |
|
| 681 |
.. object:: fontforge.KernClass.Font |
| 682 |
|
| 683 |
Sets the font used in the kern class and pair dialogs |
| 684 |
|
| 685 |
.. object:: fontforge.KernFormat.Font |
| 686 |
|
| 687 |
The normal font used in the kernig format dialog. |
| 688 |
|
| 689 |
.. object:: fontforge.KernFormat.BoldFont |
| 690 |
|
| 691 |
The bold font used in the kernig format dialog. |
| 692 |
|
| 693 |
.. object:: fontforge.Math.Font |
| 694 |
|
| 695 |
The normal font used in the Math dialog. |
| 696 |
|
| 697 |
.. object:: fontforge.Math.BoldFont |
| 698 |
|
| 699 |
The bold font used in the Math dialog. |
| 700 |
|
| 701 |
Misc Windows 2 |
| 702 |
~~~~~~~~~~~~~~ |
| 703 |
|
| 704 |
.. object:: fontforge.Prefs.MonoFont |
| 705 |
|
| 706 |
The monospace font used in the preferences dialog. |
| 707 |
|
| 708 |
.. object:: fontforge.SearchView.Font |
| 709 |
|
| 710 |
Sets the font used in the find and replace dialog |
| 711 |
|
| 712 |
.. object:: fontforge.SearchView.BoldFont |
| 713 |
|
| 714 |
Sets the bold font used in the find and replace dialog |
| 715 |
|
| 716 |
.. object:: fontforge.ShowATT.SelectColor |
| 717 |
|
| 718 |
Color used for currently selected entry in the Show ATT dialog. |
| 719 |
|
| 720 |
.. object:: fontforge.ShowATT.GlyphNameColor |
| 721 |
|
| 722 |
Color used for (some) glyph names in the Show ATT dialog. |
| 723 |
|
| 724 |
.. object:: fontforge.ShowATT.Font |
| 725 |
|
| 726 |
Sets the font used in the Show ATT dialog |
| 727 |
|
| 728 |
.. object:: fontforge.ShowATT.MonoFont |
| 729 |
|
| 730 |
Sets the monospaced font used in the Show ATT dialog |
| 731 |
|
| 732 |
.. object:: fontforge.StateMachine.Font |
| 733 |
|
| 734 |
Sets the font used in the Apple state machine dialog |
| 735 |
|
| 736 |
.. object:: fontforge.TilePath.Font |
| 737 |
|
| 738 |
Sets the font used in the Tile Path dialog |
| 739 |
|
| 740 |
.. object:: fontforge.TilePath.BoldFont |
| 741 |
|
| 742 |
Sets the bold font used in the Tile Path dialog |
| 743 |
|
| 744 |
.. object:: fontforge.TTInstruction.Font |
| 745 |
|
| 746 |
Sets the font used in the various dialogs which edit truetype instructions |
| 747 |
('fpgm' table, glyph instructions, etc.) |
| 748 |
|
| 749 |
.. object:: fontforge.Validate.Font |
| 750 |
|
| 751 |
Sets the font used in the Validate dialog |
| 752 |
|
| 753 |
.. object:: fontforge.Warnings.Font |
| 754 |
|
| 755 |
Sets the font used in the Warnings dialog |
| 756 |
|
| 757 |
Splash Screen |
| 758 |
~~~~~~~~~~~~~ |
| 759 |
|
| 760 |
.. object:: fontforge.Splash.Foreground |
| 761 |
|
| 762 |
The foreground color of the About dialog. |
| 763 |
|
| 764 |
.. object:: fontforge.Splash.Background |
| 765 |
|
| 766 |
The background color of the About... dialog. |
| 767 |
|
| 768 |
.. object:: fontforge.Splash.Font |
| 769 |
|
| 770 |
Sets the font used in the splash screen and About FontForge dialog. |
| 771 |
|
| 772 |
.. object:: fontforge.Splash.ItalicFont |
| 773 |
|
| 774 |
Sets the italic font used in the About... dialog. |
| 775 |
|
| 776 |
.. object:: fontforge.Splash.MonoFont |
| 777 |
|
| 778 |
The monospace font used in the About... dialog. |
| 779 |
|
| 780 |
.. object:: fontforge.Splash.Image |
| 781 |
|
| 782 |
The image used on the splash screen and About... dialog. |
| 783 |
|
| 784 |
SFTextArea |
| 785 |
~~~~~~~~~~ |
| 786 |
|
| 787 |
.. object:: fontforge.SFTextArea.Box.ActiveInner |
| 788 |
.. object:: fontforge.SFTextArea.Box.Padding |
| 789 |
|
| 790 |
See the :ref:`GGadget Box <xres.GGadgetBox>` section. |
| 791 |
|
| 792 |
.. object:: fontforge.SFTextArea.Font |
| 793 |
|
| 794 |
Sets the font used in the Print dialog and its variants dialog -- except I |
| 795 |
don't think this ever gets used. |
| 796 |
|
| 797 |
GDraw |
| 798 |
~~~~~ |
| 799 |
|
| 800 |
.. object:: Gdraw.Background |
| 801 |
|
| 802 |
The default background color in contexts other than View windows and GGadgets. |
| 803 |
|
| 804 |
.. object:: Gdraw.Foreground |
| 805 |
|
| 806 |
The default foreground color in contexts other than View windows and GGadgets. |
| 807 |
|
| 808 |
.. object:: Gdraw.WarningForeground |
| 809 |
|
| 810 |
A color appropriate for displaying warning and error messages relative to |
| 811 |
GDraw.Background and other background colors. |
| 812 |
|
| 813 |
.. object:: Gdraw.ScreenResolution |
| 814 |
|
| 815 |
The resolution of the screen in dots per inch. (Don't set this or set it to |
| 816 |
zero for the system default resolution.) |
| 817 |
|
| 818 |
.. object:: Gdraw.MultiClickTime |
| 819 |
|
| 820 |
An integer (milliseconds) |
| 821 |
|
| 822 |
The maximum amount of time allowed between two clicks for them to be |
| 823 |
considered a double (triple, etc.) click. |
| 824 |
|
| 825 |
.. object:: Gdraw.MultiClickWiggle |
| 826 |
|
| 827 |
An integer (pixels) |
| 828 |
|
| 829 |
The maximum number of pixels the mouse is allowed to move between two clicks |
| 830 |
and have them still be considered a double click. |
| 831 |
|
| 832 |
.. object:: Gdraw.SelectionNotifyTimeout |
| 833 |
|
| 834 |
An integer (seconds) |
| 835 |
|
| 836 |
Gdraw will wait this many seconds after making a request for a selection (ie. |
| 837 |
when doing a Paste). If it gets no responce after that period it reports a |
| 838 |
failure. |
| 839 |
|
| 840 |
.. object:: Gdraw.TwoButtonFixup |
| 841 |
|
| 842 |
A boolean |
| 843 |
|
| 844 |
On a windows keyboard use the modifier key with the flag on it to simulate |
| 845 |
mouse button 2 (middle button). If this key is depressed when a mouse button |
| 846 |
is pressed or released then pretend it was button 2 that was pressed or |
| 847 |
release. |
| 848 |
|
| 849 |
.. object:: Gdraw.MacOSXCmd |
| 850 |
|
| 851 |
A boolean |
| 852 |
|
| 853 |
On Mac OS X the user will probably expect to use the Command (apple, |
| 854 |
cloverleaf) key to control the menu (rather than the Control key). If this is |
| 855 |
set then the command key will be mapped to the control key internally. |
| 856 |
|
| 857 |
.. object:: Gdraw.Synchronize |
| 858 |
|
| 859 |
A boolean |
| 860 |
|
| 861 |
Whether to synchronize the display before raising the first window. |
| 862 |
|
| 863 |
Popup |
| 864 |
~~~~~ |
| 865 |
|
| 866 |
.. object:: Gdraw.GGadget.Popup.Font |
| 867 |
|
| 868 |
A :ref:`font <xres.font>` |
| 869 |
|
| 870 |
Specifies the font to use in a popup (tooltip) message. |
| 871 |
|
| 872 |
.. object:: Gdraw.GGadget.Popup.Foreground |
| 873 |
|
| 874 |
A :ref:`color <xres.color>` |
| 875 |
|
| 876 |
Specifies the foreground color of popup (tooltip) messages. |
| 877 |
|
| 878 |
.. object:: Gdraw.GGadget.Popup.Background |
| 879 |
|
| 880 |
A :ref:`color <xres.color>` |
| 881 |
|
| 882 |
Specifies the background color of popup (tooltip) messages. |
| 883 |
|
| 884 |
.. object:: Gdraw.GGadget.Popup.Delay |
| 885 |
|
| 886 |
An integer (milliseconds). |
| 887 |
|
| 888 |
Specifies the amount of time the cursor must remain motionless before a popup |
| 889 |
message pops up. |
| 890 |
|
| 891 |
.. object:: Gdraw.GGadget.Popup.LifeTime |
| 892 |
|
| 893 |
An integer (milliseconds). |
| 894 |
|
| 895 |
Specifies the length of time the message will display. |
| 896 |
|
| 897 |
Progress |
| 898 |
~~~~~~~~ |
| 899 |
|
| 900 |
.. object:: Gdraw.GGadget.Progress.Font |
| 901 |
|
| 902 |
A :ref:`font <xres.font>` |
| 903 |
|
| 904 |
Specifies the font to use in a progress window. |
| 905 |
|
| 906 |
.. object:: Gdraw.GGadget.Progress.Background |
| 907 |
|
| 908 |
A :ref:`color <xres.color>` |
| 909 |
|
| 910 |
Specifies the background color of progress window. |
| 911 |
|
| 912 |
.. object:: Gdraw.GGadget.Progress.Foreground |
| 913 |
|
| 914 |
A :ref:`color <xres.color>` |
| 915 |
|
| 916 |
Specifies the foreground color of progress window. |
| 917 |
|
| 918 |
.. object:: Gdraw.GGadget.Progress.FillCol |
| 919 |
|
| 920 |
A :ref:`color <xres.color>` |
| 921 |
|
| 922 |
Specifies the color of the progress bar in the progress window. |
| 923 |
|
| 924 |
GGadget |
| 925 |
~~~~~~~ |
| 926 |
|
| 927 |
.. _xres.GGadgetBox: |
| 928 |
|
| 929 |
.. object:: Gdraw.GGadget... |
| 930 |
|
| 931 |
Every ggadget in enclosed in a box. No gadget is actually a GGadget, but |
| 932 |
every other gadget inherits (potentially with modification) from this |
| 933 |
abstract class. The following information may be supplied for any box: |
| 934 |
|
| 935 |
.. object:: ...Box.BorderType |
| 936 |
|
| 937 |
one of "none", "box", "raised", "lowered", "engraved", "embossed", |
| 938 |
"double" |
| 939 |
|
| 940 |
For a description of these see the css manual. |
| 941 |
|
| 942 |
.. object:: ...Box.BorderShape |
| 943 |
|
| 944 |
one of "rect", "roundrect", "ellipse", "diamond" |
| 945 |
|
| 946 |
Describes the basic shape of the box. (some ggadgets must be in |
| 947 |
rectangles). |
| 948 |
|
| 949 |
.. object:: ...Box.BorderWidth |
| 950 |
|
| 951 |
An integer (points) |
| 952 |
|
| 953 |
Specifies the width of the box's border in points (NOT pixels) |
| 954 |
|
| 955 |
.. object:: ...Box.Padding |
| 956 |
|
| 957 |
An integer (points) |
| 958 |
|
| 959 |
Specifies the padding between the interior of the box and the border |
| 960 |
|
| 961 |
.. object:: ...Box.Radius |
| 962 |
|
| 963 |
An integer (points) |
| 964 |
|
| 965 |
Specifies the radius of a roundrect. Ignored for everything else. |
| 966 |
|
| 967 |
.. object:: ...Box.BorderInner |
| 968 |
|
| 969 |
A boolean (true, on or 1, false, off or 0) |
| 970 |
|
| 971 |
Specifies whether a line should be drawn inside the border. |
| 972 |
|
| 973 |
.. object:: ...Box.BorderInnerCol |
| 974 |
|
| 975 |
A :ref:`color <xres.color>` |
| 976 |
|
| 977 |
Specifies a color of line that should be drawn inside a border. |
| 978 |
|
| 979 |
.. object:: ...Box.BorderOuter |
| 980 |
|
| 981 |
A boolean (true, on or 1, false, off or 0) |
| 982 |
|
| 983 |
Specifies whether a black line should be drawn outside the border. |
| 984 |
|
| 985 |
.. object:: ...Box.BorderOuterCol |
| 986 |
|
| 987 |
A :ref:`color <xres.color>` |
| 988 |
|
| 989 |
Specifies a color of line that should be drawn outside a border. |
| 990 |
|
| 991 |
.. object:: ...Box.ActiveInner |
| 992 |
|
| 993 |
A boolean (true, on or 1, false, off or 0) |
| 994 |
|
| 995 |
Specifies whether a yellow line should be drawn inside the border when the |
| 996 |
gadget is active (not all gadgets support this). |
| 997 |
|
| 998 |
.. object:: ...Box.DoDepressedBackground |
| 999 |
|
| 1000 |
A boolean (true, on or 1, false, off or 0) |
| 1001 |
|
| 1002 |
Changes the color of the background while a button is depressed. |
| 1003 |
|
| 1004 |
.. object:: ...Box.GradientBG |
| 1005 |
|
| 1006 |
A boolean (true, on or 1, false, off or 0) |
| 1007 |
|
| 1008 |
Draws a gradient from GradientStartCol (at top and bottom edge) to |
| 1009 |
Background (in the center). |
| 1010 |
|
| 1011 |
.. object:: ...Box.BorderBrightest |
| 1012 |
|
| 1013 |
A :ref:`color <xres.color>` |
| 1014 |
|
| 1015 |
The color of the brightest edge of the border (usually the left edge) |
| 1016 |
|
| 1017 |
.. object:: ...Box.BorderBrighter |
| 1018 |
|
| 1019 |
A :ref:`color <xres.color>` |
| 1020 |
|
| 1021 |
The color of the next to brightest edge of the border (usually the top |
| 1022 |
edge) |
| 1023 |
|
| 1024 |
.. object:: ...Box.BorderDarkest |
| 1025 |
|
| 1026 |
A :ref:`color <xres.color>` |
| 1027 |
|
| 1028 |
The color of the darkest edge of the border (usually the right edge) |
| 1029 |
|
| 1030 |
.. object:: ...Box.BorderDarker |
| 1031 |
|
| 1032 |
A :ref:`color <xres.color>` |
| 1033 |
|
| 1034 |
The color of the next to next to darkest edge of the border. (usually the |
| 1035 |
bottom edge) |
| 1036 |
|
| 1037 |
.. object:: ...Box.NormalBackground |
| 1038 |
|
| 1039 |
A :ref:`color <xres.color>` |
| 1040 |
|
| 1041 |
The color of a normal background (not disabled, not depressed) |
| 1042 |
|
| 1043 |
.. object:: ...Box.NormalForeground |
| 1044 |
|
| 1045 |
A :ref:`color <xres.color>` |
| 1046 |
|
| 1047 |
The color of a normal foreground (not disabled) |
| 1048 |
|
| 1049 |
.. object:: ...Box.DisabledBackground |
| 1050 |
|
| 1051 |
A :ref:`color <xres.color>` |
| 1052 |
|
| 1053 |
The color of a disabled background . |
| 1054 |
|
| 1055 |
.. object:: ...Box.DisabledForeground |
| 1056 |
|
| 1057 |
A :ref:`color <xres.color>` |
| 1058 |
|
| 1059 |
The color of a normal foreground. |
| 1060 |
|
| 1061 |
.. object:: ...Box.ActiveBorder |
| 1062 |
|
| 1063 |
A :ref:`color <xres.color>` |
| 1064 |
|
| 1065 |
The color of an ActiveInner border. |
| 1066 |
|
| 1067 |
.. object:: ...Box.PressedBackground |
| 1068 |
|
| 1069 |
A :ref:`color <xres.color>` |
| 1070 |
|
| 1071 |
The color of a depressed background. |
| 1072 |
|
| 1073 |
.. object:: ...Box.GradientStartCol |
| 1074 |
|
| 1075 |
A :ref:`color <xres.color>` |
| 1076 |
|
| 1077 |
Only meaningful if GradientBG is set. Draws a gradient of colors for the |
| 1078 |
background with this color as the start point at the top and bottom edges |
| 1079 |
of the gadget, and Background as the end point in the center of it. |
| 1080 |
|
| 1081 |
.. object:: ...Font |
| 1082 |
|
| 1083 |
A :ref:`font <xres.font>` |
| 1084 |
|
| 1085 |
Specifies the default font for a ggadget. |
| 1086 |
|
| 1087 |
GGadget 2 |
| 1088 |
~~~~~~~~~ |
| 1089 |
|
| 1090 |
.. object:: Gdraw.GGadget.Skip |
| 1091 |
|
| 1092 |
Space (in points) to skip between gadget elements. |
| 1093 |
|
| 1094 |
.. object:: Gdraw.GGadget.LineSkip |
| 1095 |
|
| 1096 |
Space (in points) to skip after a line. |
| 1097 |
|
| 1098 |
.. object:: Gdraw.GGadget.FirstLine |
| 1099 |
|
| 1100 |
Space (in points) to skip before a line when it is the first element |
| 1101 |
|
| 1102 |
.. object:: Gdraw.GGadget.LeftMargin |
| 1103 |
|
| 1104 |
The default left margin (in points) |
| 1105 |
|
| 1106 |
.. object:: Gdraw.GGadget.TextImageSkip |
| 1107 |
|
| 1108 |
Space (in points) left between images and text any labels, buttons, |
| 1109 |
menu items, etc. that have both. |
| 1110 |
|
| 1111 |
.. object:: Gdraw.GGadget.ImagePath |
| 1112 |
|
| 1113 |
A unix style path string, with directories separated by ":". The sequence |
| 1114 |
"~/" at the start of a directory will be interpreted as the user's home |
| 1115 |
directory. If a directory is "=" then the installed pixmap directory will be |
| 1116 |
used. |
| 1117 |
|
| 1118 |
Specifies the search path for images. Specifically those used in the menus, |
| 1119 |
and those used in various gadgets listed below. |
| 1120 |
|
| 1121 |
The Gadgets |
| 1122 |
~~~~~~~~~~~ |
| 1123 |
|
| 1124 |
.. object:: Gdraw.GListMark... controls the shape of the mark used to show the menu of a combo box. |
| 1125 |
|
| 1126 |
.. image:: /images/GListMark.png |
| 1127 |
|
| 1128 |
See below for additional directives. |
| 1129 |
.. object:: Gdraw.GLabel... |
| 1130 |
|
| 1131 |
.. image:: /images/GLabel.png |
| 1132 |
.. object:: Gdraw.GButton... |
| 1133 |
|
| 1134 |
.. image:: /images/GButton.png |
| 1135 |
|
| 1136 |
See below for additional directives. |
| 1137 |
.. object:: Gdraw.GDefaultButton... Inherits from GButton |
| 1138 |
|
| 1139 |
.. image:: /images/GDefaultButton.png |
| 1140 |
.. object:: Gdraw.GCancelButton... Inherits from GButton |
| 1141 |
|
| 1142 |
.. image:: /images/GCancelButton.png |
| 1143 |
.. object:: Gdraw.GDropList... |
| 1144 |
|
| 1145 |
.. image:: /images/GDropList.png |
| 1146 |
.. object:: Gdraw.GRadio... |
| 1147 |
|
| 1148 |
.. image:: /images/GRadio.png |
| 1149 |
.. object:: Gdraw.GCheckBox... |
| 1150 |
Gdraw.GVisibilityBox... |
| 1151 |
|
| 1152 |
Two forms of checkbox-like element, the first a traditional checkbox |
| 1153 |
and the second an visibility switch in the layer palette. |
| 1154 |
|
| 1155 |
.. object:: Gdraw.GRadioOn... |
| 1156 |
Gdraw.GRadioOff... |
| 1157 |
Gdraw.GCheckBoxOn... |
| 1158 |
Gdraw.GCheckBoxOff... |
| 1159 |
Gdraw.GVisibilityBoxOn... |
| 1160 |
Gdraw.GVisibilityBoxOff... |
| 1161 |
|
| 1162 |
These are mostly means of specifiying images for the radio button and |
| 1163 |
checkboxes, but you can also use them to customize how an activated |
| 1164 |
button looks vs a deactivated one. |
| 1165 |
|
| 1166 |
See below for additional directives. |
| 1167 |
.. object:: Gdraw.GTextField... |
| 1168 |
|
| 1169 |
.. image:: /images/GTextField.png |
| 1170 |
.. object:: Gdraw.GComboBox... Inherits from GTextField |
| 1171 |
|
| 1172 |
.. image:: /images/GComboBox.png |
| 1173 |
|
| 1174 |
Also called a "List Field" |
| 1175 |
.. object:: Gdraw.GComboBoxMenu... Inherits from GComboBox (This is the box drawn around the GListMark in a ComboBox) |
| 1176 |
|
| 1177 |
.. image:: /images/GComboBoxMenu.png |
| 1178 |
.. object:: Gdraw.GNumericField... Inherits from GTextField |
| 1179 |
|
| 1180 |
.. image:: /images/GNumericField.png |
| 1181 |
.. object:: Gdraw.GNumericFieldSpinner... Inherits from GNumericField |
| 1182 |
|
| 1183 |
.. image:: /images/GNumericFieldSpinner.png |
| 1184 |
.. object:: Gdraw.GScrollBar... |
| 1185 |
|
| 1186 |
A scroll bar widget. See below for additional directives. |
| 1187 |
.. object:: Gdraw.GList... |
| 1188 |
Gdraw.GScrollBarThumb... |
| 1189 |
Gdraw.GGroup... -- a frame around groups of gadgets. |
| 1190 |
Gdraw.GLine... |
| 1191 |
Gdraw.GMenu... |
| 1192 |
Gdraw.GMenuBar... |
| 1193 |
Gdraw.GTabSet... |
| 1194 |
Gdraw.GVTabSet... |
| 1195 |
|
| 1196 |
As above. |
| 1197 |
|
| 1198 |
Specifies the box, font, color, etc. for this particular type of ggadget. |
| 1199 |
See below for additional GMenu directives. |
| 1200 |
|
| 1201 |
.. object:: Gdraw.GHVBox |
| 1202 |
|
| 1203 |
A group of gadgets that sits inside ``GGroup`` and supports graceful reflow |
| 1204 |
of window contents in event of resizing. Modelled after GTK boxes. It's |
| 1205 |
supposed to be invisible, but interface developers might actually want to |
| 1206 |
style it. |
| 1207 |
|
| 1208 |
.. object:: Gdraw.GScrollBar.Width |
| 1209 |
|
| 1210 |
An integer (points) |
| 1211 |
|
| 1212 |
Specifies the scrollbar width in points (for horizontal scrollbars it |
| 1213 |
specifies the height) |
| 1214 |
|
| 1215 |
.. object:: Gdraw.GScrollBar.StartTime |
| 1216 |
|
| 1217 |
An integer specifying the repeat latency in milliseconds. |
| 1218 |
|
| 1219 |
.. object:: Gdraw.GScrollBar.RepeatTime |
| 1220 |
|
| 1221 |
An integer specifying the time between repeats in milliseconds. |
| 1222 |
|
| 1223 |
.. object:: Gdraw.GListMark.Width |
| 1224 |
|
| 1225 |
An integer (points) |
| 1226 |
|
| 1227 |
Specifies the width for the little mark at the end of comboboxes and drop |
| 1228 |
lists. |
| 1229 |
|
| 1230 |
.. object:: Gdraw.GListMark.Image |
| 1231 |
|
| 1232 |
A filename of an image file |
| 1233 |
|
| 1234 |
Will be used instead of GListMark.Box if present. This is either a fully |
| 1235 |
qualified pathname, or the filename of an image in the pixmap directory. |
| 1236 |
|
| 1237 |
.. object:: Gdraw.GListMark.DisabledImage |
| 1238 |
|
| 1239 |
A filename of an image file |
| 1240 |
|
| 1241 |
Will be used instead of GListMark.Box for disabled (non-clickable) instances, |
| 1242 |
if present. This is either a fully qualified pathname, or the filename of an |
| 1243 |
image in the pixmap directory. |
| 1244 |
|
| 1245 |
.. object:: Gdraw.GMenu.Grab |
| 1246 |
|
| 1247 |
A boolean |
| 1248 |
|
| 1249 |
Controls whether menus do pointer grabs. Debugging is easier if they don't. |
| 1250 |
Default is for them to do grabs. |
| 1251 |
|
| 1252 |
.. object:: Gdraw.GMenu.MacIcons |
| 1253 |
|
| 1254 |
A boolean |
| 1255 |
|
| 1256 |
Controls whether menus show shortcuts as the standard mac icons (cloverleaf |
| 1257 |
for Command key, up arrow for shift, ^ for control and weird squiggle for |
| 1258 |
Option(Meta/Alt)) or as text ("Cnt-Shft-A"). Default is True on the mac and |
| 1259 |
False elsewhere. |
| 1260 |
|
| 1261 |
.. list-table:: |
| 1262 |
|
| 1263 |
* - .. figure:: /images/MenuWithMacIcons.png |
| 1264 |
|
| 1265 |
True |
| 1266 |
- .. figure:: /images/MenuWithoutMacIcons.png |
| 1267 |
|
| 1268 |
False |
| 1269 |
|
| 1270 |
.. object:: Gdraw.GRadioOn.Image |
| 1271 |
|
| 1272 |
A filename of an image file. |
| 1273 |
|
| 1274 |
Used for drawing the "On" state of a radio button. (This is drawn within the |
| 1275 |
``GRadioOn`` box, if you intend the image to be the entire radio marker you |
| 1276 |
should probably make the ``GRadioOn`` box be a blank rectangle). This is |
| 1277 |
either a fully qualified pathname, or the filename of an image in the pixmap |
| 1278 |
directory. |
| 1279 |
|
| 1280 |
.. object:: Gdraw.GRadioOn.DisabledImage |
| 1281 |
|
| 1282 |
A filename of an image file. |
| 1283 |
|
| 1284 |
Used for drawing the "On" state of a disabled (non-clickable) radio button. |
| 1285 |
(This is drawn within the ``GRadioOn`` box, if you intend the image to be the |
| 1286 |
entire radio marker you should probably make the ``GRadioOn`` box be a blank |
| 1287 |
rectangle). This is either a fully qualified pathname, or the filename of an |
| 1288 |
image in the pixmap directory. |
| 1289 |
|
| 1290 |
.. object:: Gdraw.GRadioOff.Image |
| 1291 |
|
| 1292 |
A filename of an image file. |
| 1293 |
|
| 1294 |
Used for drawing the "Off" state of a radio button. (This is drawn within the |
| 1295 |
``GRadioOff`` box, if you intend the image to be the full radio marker you |
| 1296 |
should probably make the ``GRadioOff`` box be a blank rectangle). This is |
| 1297 |
either a fully qualified pathname, or the filename of an image in the pixmap |
| 1298 |
directory. |
| 1299 |
|
| 1300 |
.. object:: Gdraw.GRadioOff.DisabledImage |
| 1301 |
|
| 1302 |
A filename of an image file. |
| 1303 |
|
| 1304 |
Used for drawing the "Off" state of a disabled (non-clickable) radio button. |
| 1305 |
(This is drawn within the ``GRadioOff`` box, if you intend the image to be |
| 1306 |
the full radio marker you should probably make the ``GRadioOff`` box be a |
| 1307 |
blank rectangle). This is either a fully qualified pathname, or the filename |
| 1308 |
of an image in the pixmap directory. |
| 1309 |
|
| 1310 |
.. object:: Gdraw.GCheckBoxOn.Image |
| 1311 |
|
| 1312 |
A filename of an image file. |
| 1313 |
|
| 1314 |
Used for drawing the "On" state of a check box button. (This is drawn within |
| 1315 |
the ``GCheckBoxOn`` box, if you intend the image to be the complete check box |
| 1316 |
marker you should probably make the ``GCheckBoxOn`` box be a blank |
| 1317 |
rectangle). This is either a fully qualified pathname, or the filename of an |
| 1318 |
image in the pixmap directory. |
| 1319 |
|
| 1320 |
.. object:: Gdraw.GCheckBoxOn.DisabledImage |
| 1321 |
|
| 1322 |
A filename of an image file. |
| 1323 |
|
| 1324 |
Used for drawing the "On" state of a disabled (non-clickable) check box |
| 1325 |
button. (This is drawn within the ``GCheckBoxOn`` box, if you intend the |
| 1326 |
image to be the complete check box marker you should probably make the |
| 1327 |
``GCheckBoxOn`` box be a blank rectangle). This is either a fully qualified |
| 1328 |
pathname, or the filename of an image in the pixmap directory. |
| 1329 |
|
| 1330 |
.. object:: Gdraw.GCheckBoxOff.Image |
| 1331 |
|
| 1332 |
A filename of an image file. |
| 1333 |
|
| 1334 |
Used for drawing the "Off" state of a check box button. (This is drawn within |
| 1335 |
the ``GCheckBoxOff`` box, if you intend the image to be the sole check box |
| 1336 |
marker you should probably make the ``GCheckBoxOff`` box be a blank |
| 1337 |
rectangle). This is either a fully qualified pathname, or the filename of an |
| 1338 |
image in the pixmap directory. |
| 1339 |
|
| 1340 |
.. object:: Gdraw.GCheckBoxOff.DisabledImage |
| 1341 |
|
| 1342 |
A filename of an image file. |
| 1343 |
|
| 1344 |
Used for drawing the "Off" state of a disabled )non-clickable) check box |
| 1345 |
button. (This is drawn within the ``GCheckBoxOff`` box, if you intend the |
| 1346 |
image to be the sole check box marker you should probably make the |
| 1347 |
``GCheckBoxOff`` box be a blank rectangle). This is either a fully qualified |
| 1348 |
pathname, or the filename of an image in the pixmap directory. |
| 1349 |
|
| 1350 |
.. object:: Gdraw.GVisibilityBoxOn.Image |
| 1351 |
|
| 1352 |
A filename of an image file. |
| 1353 |
|
| 1354 |
Used for drawing the "On" state of a visibility box button. (This is the |
| 1355 |
"eye" drawn within the layers palette of glyph view). This is either a fully |
| 1356 |
qualified pathname, or the filename of an image in the pixmap directory. |
| 1357 |
|
| 1358 |
.. object:: Gdraw.GVisibilityBoxOn.DisabledImage |
| 1359 |
|
| 1360 |
A filename of an image file. |
| 1361 |
|
| 1362 |
Used for drawing the "On" state of a disabled (non-clickable) visibility box |
| 1363 |
button. (This is the "eye" drawn within the layers palette of glyph view). |
| 1364 |
This is either a fully qualified pathname, or the filename of an image in the |
| 1365 |
pixmap directory. |
| 1366 |
|
| 1367 |
.. object:: Gdraw.GVisibilityBoxOff.Image |
| 1368 |
|
| 1369 |
A filename of an image file. |
| 1370 |
|
| 1371 |
Used for drawing the "Off" state of a visibility box button. (This is the |
| 1372 |
"eye" drawn within the layers palette of glyph view). This is either a fully |
| 1373 |
qualified pathname, or the filename of an image in the pixmap directory. |
| 1374 |
|
| 1375 |
.. object:: Gdraw.GVisibilityBoxOff.DisabledImage |
| 1376 |
|
| 1377 |
A filename of an image file. |
| 1378 |
|
| 1379 |
Used for drawing the "Off" state of a disabled (non-clickable) visibility box |
| 1380 |
button. (This is the "eye" drawn within the layers palette of glyph view). |
| 1381 |
This is either a fully qualified pathname, or the filename of an image in the |
| 1382 |
pixmap directory. |
| 1383 |
|
| 1384 |
.. object:: Gdraw.GMatrixEdit.TitleFont |
| 1385 |
|
| 1386 |
A font. |
| 1387 |
|
| 1388 |
The font used to draw titles in a GMatrixEdit. By default this is smaller and |
| 1389 |
bolder than the font used for text in the matrix edit. |
| 1390 |
|
| 1391 |
.. object:: Gdraw.GMatrixEdit.TitleBG |
| 1392 |
|
| 1393 |
A color. |
| 1394 |
|
| 1395 |
Background color used for the titles of a matrix edit. |
| 1396 |
|
| 1397 |
.. object:: Gdraw.GMatrixEdit.TitleFG |
| 1398 |
|
| 1399 |
A color. |
| 1400 |
|
| 1401 |
Foreground color used to draw the text of the titles of a matrix edit. |
| 1402 |
|
| 1403 |
.. object:: Gdraw.GMatrixEdit.TitleDivider |
| 1404 |
|
| 1405 |
A color. |
| 1406 |
|
| 1407 |
Color used to draw the divider lines in the titles of a matrix edit. |
| 1408 |
|
| 1409 |
.. object:: Gdraw.GMatrixEdit.RuleCol |
| 1410 |
|
| 1411 |
A color. |
| 1412 |
|
| 1413 |
Used to draw the horizontal and vertical lines in the body of a matrix edit. |
| 1414 |
|
| 1415 |
.. object:: Gdraw.GMatrixEdit.FrozenCol |
| 1416 |
|
| 1417 |
A color. |
| 1418 |
|
| 1419 |
Used to draw text in a cell which is frozen (cannot but updated by the user) |
| 1420 |
|
| 1421 |
.. object:: Gdraw.GMatrixEdit.ActiveCol |
| 1422 |
|
| 1423 |
A color. |
| 1424 |
|
| 1425 |
Used to draw text in the cell which is active (and used for the "<New>" |
| 1426 |
entry). |
| 1427 |
|
| 1428 |
.. object:: Gdraw.GMatrixEdit.ActiveBG |
| 1429 |
|
| 1430 |
A color. |
| 1431 |
|
| 1432 |
The background color of a cell that is active (and used for the "<New>" |
| 1433 |
entry). |
| 1434 |
|
| 1435 |
.. object:: Gdraw.GMatrixEdit.TitleFont |
| 1436 |
|
| 1437 |
A font. |
| 1438 |
|
| 1439 |
Used in the title area of a GMatrixEdit. |
| 1440 |
|
| 1441 |
.. object:: ... |
| 1442 |
|
| 1443 |
.. _xres.deprecated: |
| 1444 |
|
| 1445 |
.. object:: Deprecated |
| 1446 |
|
| 1447 |
The following resources are deprecated and will be silently ignored. |
| 1448 |
|
| 1449 |
* ``fontforge.FontView.FontSize`` |
| 1450 |
* ``fontforge.FontView.FontFamily`` |
| 1451 |
* ``fontforge.FontView.SerifFamily`` |
| 1452 |
* ``fontforge.FontView.ScriptFamily`` |
| 1453 |
* ``fontforge.FontView.FrakturFamily`` |
| 1454 |
* ``fontforge.FontView.DoubleStruckFamily`` |
| 1455 |
* ``fontforge.FontView.SansFamily`` |
| 1456 |
* ``fontforge.FontView.MonoFamily`` |
| 1457 |
* ``Gdraw.GHVGroupBox`` |
| 1458 |
* ``Gdraw.ScreenWidthCentimeters`` |
| 1459 |
* ``Gdraw.ScreenWidthInches`` |
| 1460 |
|
| 1461 |
.. _xres.color: |
| 1462 |
|
| 1463 |
.. object:: Colors |
| 1464 |
|
| 1465 |
Colors may be specified as: |
| 1466 |
|
| 1467 |
* rgb(r,g,b) |
| 1468 |
|
| 1469 |
where r,g and b are doubles between 0 and 1.0 |
| 1470 |
* argb(a,r,g,b) |
| 1471 |
|
| 1472 |
where a,r,g, and b are doubles between 0 and 1.0 |
| 1473 |
|
| 1474 |
(The alpha channel is only supported in windows with cairo -- that is the |
| 1475 |
glyph view. Alpha 1.0 is fully opaque, alpha 0.0 should be fully transparent, |
| 1476 |
values in between are translucent. Since drawing something fully transparent |
| 1477 |
has no effect, FontForge treats transparent spot colors as fully opaque). |
| 1478 |
* rgb(r%,g%,b%) |
| 1479 |
|
| 1480 |
where r, g, and b are doubles between 0% and 100% |
| 1481 |
* hsv(h,s,v) |
| 1482 |
|
| 1483 |
A color expressed as hue (between 0 and 360), saturation (0.0 and 1.0) and |
| 1484 |
value (0.0 and 1.0) |
| 1485 |
* hsl(h,s,l) |
| 1486 |
|
| 1487 |
A color expressed as hue (between 0 and 360), saturation (0.0 and 1.0) and |
| 1488 |
luminosity (0.0 and 1.0) |
| 1489 |
* r g b |
| 1490 |
|
| 1491 |
where r, g, and b are decimal integers between 0 and 255 |
| 1492 |
* #rgb |
| 1493 |
|
| 1494 |
where r, g, and b are hex digits between 0 and 15 (0xf) |
| 1495 |
* #rrggbb |
| 1496 |
|
| 1497 |
where rr, gg, bb are hex numbers between 0x00 and 0xff |
| 1498 |
* #aarrggbb |
| 1499 |
|
| 1500 |
where aa, rr, gg, bb are hex numbers between 0x00 and 0xff |
| 1501 |
|
| 1502 |
(The alpha channel is only supported in cairo windows. If alpha is 0, then |
| 1503 |
fontforge will treat the color as opaque because drawing a completely |
| 1504 |
transparent spot color does nothing). |
| 1505 |
* #rrrrggggbbbb |
| 1506 |
|
| 1507 |
where rrrr, gggg, bbbb are hex numbers between 0x0000 and 0xffff |
| 1508 |
* or one of the color names accepted on the net (red, green, blue, cyan, |
| 1509 |
magenta, yellow, white, black, maroon, olive, navy, purple, lime, aqua, teal, |
| 1510 |
fuchsia, silver) |
| 1511 |
|
| 1512 |
.. _xres.Keyboards: |
| 1513 |
|
| 1514 |
Keyboards and Mice. |
| 1515 |
------------------- |
| 1516 |
|
| 1517 |
FontForge assumes that your keyboard has a control key and some equivalent of a |
| 1518 |
meta key. FontForge works best with a three button mouse. |
| 1519 |
|
| 1520 |
Almost all keyboards now-a-days will have the needed modifier keys, but which |
| 1521 |
key is used for what will depend on the keyboard and the OS (for instance |
| 1522 |
XDarwin and suse linux use quite different mappings for the modifier keys on the |
| 1523 |
mac keyboard). Usually this is only relevant for menus (and mnemonics). |
| 1524 |
|
| 1525 |
Mice are more problematic. On PCs we usually have two button mice and on mac |
| 1526 |
single button mice. Many linuxes that run on a PC will give you an option of |
| 1527 |
simulating the middle button of the mouse by depressing the left and right |
| 1528 |
buttons simultaneously. FontForge will also allow you to simulate it by holding |
| 1529 |
down the super key (usually this is the one with the picture of a windows flag |
| 1530 |
on it) while depressing either mouse button. |
| 1531 |
|
| 1532 |
On the mac I don't see any good way of simulating a three button mouse... |