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