X Resources
Every X application has an inordinate number of resources that you can tweak.
This one is no exception. However I don't follow standard conventions, so
it's all different. Sorry (a little anyway).
To use an X resource add a series of lines to your .Xdefaults file and then
run "$ xrdb ~/.Xdefaults". For example:
Gdraw.ScreenWidthInches: 14.7
Gdraw.GGadget.Popup.Font: 10pt helvetica
Gdraw.Background: white
pfaedit.FontView.FontFamily: Helvetica, GillSans
If a resource begins with "Gdraw.
" or "pfaedit.
"
then the program will look at it.
-
pfaedit.FontView.FontFamily
-
A list of font family names to be used in the font view to display an example
character over each user character.
-
pfaedit.CharView.InfoFamily
-
A list of font family names to be used in the outline and bitmap character
views for information messages.
-
pfaedit.CharView.PointColor
-
Sets the color used to draw curved, corner or tangent points in the outline
character view.
-
pfaedit.CharView.FirstPointColor
-
Sets the color of the first point on a contour.
-
pfaedit.CharView.SelectedPointColor
-
Sets the color used to draw selected curved, corner or tangent points in
the outline character view.
-
pfaedit.CharView.SelectedPointWidth
-
Sets the width of the line used to outline selected curved, corner or tangent
points in the outline character view.
-
pfaedit.CharView.ExtremePointColor
-
Sets the color of a point which is an extremum.
-
pfaedit.CharView.NextCPColor
-
Sets the color used to draw the "Next" control point.
-
pfaedit.CharView.PrevCPColor
-
Sets the color used to draw the "Previous" control point.
-
pfaedit.CharView.SelectedCPColor
-
Sets the color used to draw a control point that has been selected.
-
pfaedit.CharView.CoordinateLineColor
-
Sets the color used to draw the coordinate axes.
-
pfaedit.CharView.WidthColor
-
Sets the color used to draw the advance width line.
-
pfaedit.CharView.WidthSelColor
-
Sets the color used to draw the advance width if it is selected.
-
pfaedit.CharView.GridFitWidthColor
-
Sets the color used to draw the advance width once it has been grid fit (if
View->Show Grid Fit
is on)
-
pfaedit.CharView.LigatureCaretColor
-
Sets the color used to draw ligature caret lines.
-
pfaedit.CharView.RasterColor
-
Sets the color used to draw the pixels of a rasterized bitmap (if
View->Show Grid Fit
is on)
-
pfaedit.CharView.RasterGridColor
-
Sets the color used to draw the pixel grid used by the rasterizer (if
View->Show Grid Fit
is on)
-
pfaedit.CharView.ItalicCoordColor
-
Sets the color used to draw various horizontal metrics lines when they have
been skewed appropriately for an italic font.
-
pfaedit.CharView.MetricsLabelColor
-
Sets the color used to label metrics lines
-
pfaedit.CharView.HintLabelColor
-
Sets the color used to label hint lines (and blue value lines)
-
pfaedit.CharView.BlueValuesStippledCol
-
Sets the color used to draw the BlueValues and OtherBlues zones.
-
pfaedit.CharView.FamilyBlueStippledColor
-
Sets the color used to draw the FamilyBlueValues and FamilyOtherBlues zones.
-
pfaedit.CharView.MDHintColor
-
Sets the color used to draw minimum distance hints
-
pfaedit.CharView.DHintColor
-
Sets the color used to draw diagonal hints
-
pfaedit.CharView.HHintColor
-
Sets the color used to draw horizontal stem hints
-
pfaedit.CharView.VHintColor
-
Sets the color used to draw vertical stem hints
-
pfaedit.CharView.ConflictHintColor
-
Sets the color used to draw hints when they conflict
-
pfaedit.CharView.HHintActiveColor
-
Sets the color used to draw a horizontal stem hint when it is active in the
review hints dlg.
-
pfaedit.CharView.VHintActiveColor
-
Sets the color used to draw a vertical stem hint when it is active in the
review hints dlg.
-
pfaedit.CharView.AnchorColor
-
Sets the color used to draw an anchor point
-
pfaedit.CharView.TemplateOutlineColor
-
Sets the color used to draw a template outline. (not currently used)
-
pfaedit.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.)
-
pfaedit.CharView.TransformOriginColor
-
Sets the color used to draw the origin of the current transformation.
-
pfaedit.CharView.GuideOutlineColor
-
Sets the color used to draw outlines in the Guide layer.
-
pfaedit.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).
-
pfaedit.CharView.BackgroundOutlineColor
-
Sets the color used to draw background outlines.
-
pfaedit.CharView.ForegroundOutlineColor
-
Sets the color used to draw foreground outlines.
-
pfaedit.CharView.BackgroundImageColor
-
Sets the color used to draw background images.
-
pfaedit.CharView.FillColor
-
Sets the color used to draw a character's fill
-
pfaedit.CharView.TraceColor
-
Sets the color used to draw the trace of the freehand tool.
-
Gdraw.ScreenWidthCentimeters
-
A double. (centimeters)
X usually does not know the physical width of a screen (it knows the logical,
pixel width). Gdraw's internals are based on points rather than pixels, and
it will sometimes pick a font that is too small or too large if it relies
on X's idea of how wide the screen is.
-
Gdraw.ScreenWidthInches
-
A double. (inches)
Same as the above, except measured in inches.
-
Gdraw.ScreenWidthPixels
-
An integer (pixels)
When X creates a virtual screen it may not be possible for Gdraw to find
the actual number of pixels on the screen. This again will throw off point
calculations.
-
Gdraw.ScreenHeightPixels
-
An integer (pixels)
When X creates a virtual screen it may not be possible for Gdraw to find
the actual number of pixels on the screen. This is not used in point
calculations.
-
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 PfaEdit can't find a visual with the
desired depth it will use the default depth.
-
Gdraw.VisualClass
-
A string ("StaticGray", "GrayScale", "StaticColor", "PsuedoColor", "TrueColor",
"DirectColor")
PfaEdit will search for a visual with the given class (and possibly depth
if the depth argument is specified too).
-
Gdraw.Colormap
-
An string ("Current", "Copy", "Private")
You can use this to control what PfaEdit does about the colormap on an 8bit
screen
-
Current -- PfaEdit will attempt to allocate its colors in the current colormap.
-
Copy -- PfaEdit will allocate what colors it can and then copy the current
color map into a private copy. This means PfaEdit has access to a much wider
range of colors, and (as long as the shared colormap doesn't change) PfaEdit's
colormap will match that of the rest of the screen.
-
Private -- PfaEdit will allocate a private colormap and set the colors just
as it wants them. It will almost certainly not match the shared colormap.
-
Gdraw.DoDithering
-
An integer (0 or 1)
You can use this to turn off dithering of images on an 8bit screen.
-
Gdraw.MultiClickTime
-
An integer (milliseconds)
The maximum amount of time allowed between two clicks for them to be considered
a double (triple, etc.) click.
-
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.
-
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.
-
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.
-
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.
-
Gdraw.Keyboard
-
ibm | mac | sun | ppc | 0 | 1 | 2 | 3
Allows you to specify the type of keyboard. Currently this is only relevent
when generating menus. The modifier keys are in different locations on different
keyboards (under different operating systems) and if PfaEdit 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
-
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.
-
Gdraw.Background
-
A color
Gdraw will use this as the default background color for the windows.
-
Gdraw.Foreground
-
A color
Gdraw will use this as the default foreground color for dialogs.
-
Gdraw.GGadget.Popup.Foreground
-
A color
Specifies the foreground color of popup (tooltip) messages.
-
Gdraw.GGadget.Popup.Background
-
A color
Specifies the background color of popup messages.
-
Gdraw.GGadget.Popup.Delay
-
An integer (milliseconds).
Specifies the amount of time the cursor must remain motionless before a popup
message pops up.
-
Gdraw.GGadget.Popup.LifeTime
-
An integer (milliseconds).
Specifies the length of time the message will display.
-
Gdraw.GGadget.Popup.Font
-
A font
Specifies the font to use in a popup message.
-
Gdraw.GGadget...
-
Every ggadget in enclosed in a box. The following information may be supplied
for any box:
-
...Box.BorderType
-
one of "none", "box", "raised", "lowered", "engraved", "embossed", "double"
For a description of these see the css manual.
-
...Box.BorderShape
-
one of "rect", "roundrect", "ellipse", "diamond"
Describes the basic shape of the box. (some ggadgets must be in rectangles).
-
...Box.BorderWidth
-
An integer (points)
Specifies the width of the box's border in points (NOT pixels)
-
...Box.Padding
-
An integer (points)
Specifies the padding between the interior of the box and the border
-
...Box.Radius
-
An integer (points)
Specifies the radius of a roundrect. Ignored for everything else.
-
...Box.BorderInner
-
A boolean (true, on or 1, false, off or 0)
Specifies whether a black line should be drawn inside the border.
-
...Box.BorderOuter
-
A boolean (true, on or 1, false, off or 0)
Specifies whether a black line should be drawn outside the border.
-
...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).
-
...Box.DoDepressedBackground
-
A boolean (true, on or 1, false, off or 0)
Changes the color of the background while a button is depressed.
-
...Box.BorderBrightest
-
A color
The color of the brightest edge of the border (usually the left edge)
-
...Box.BorderBrighter
-
A color
The color of the next to brightest edge of the border (usually the top edge)
-
...Box.BorderDarkest
-
A color
The color of the darkest edge of the border (usually the right edge)
-
...Box.BorderDarker
-
A color
The color of the next to next to darkest edge of the border. (usually the
bottom edge)
-
...Box.NormalBackground
-
A color
The color of a normal background (not disabled, not depressed)
-
...Box.NormalForeground
-
A color
The color of a normal foreground (not disabled)
-
...Box.DisabledBackground
-
A color
The color of a disabled background .
-
...Box.DisabledForeground
-
A color
The color of a normal foreground.
-
...Box.ActiveBorder
-
A color
The color of an ActiveInner border.
-
...Box.PressedBackground
-
A color
The color of a depressed background.
-
...Font
-
A font
Specifies the default font for a ggadget.
-
Gdraw.GButton...
Gdraw.GLabel...
Gdraw.GRadio...
Gdraw.GCheckBox...
Gdraw.GTextField...
Gdraw.GList...
Gdraw.GScrollBar...
Gdraw.GScrollBarThumb...
Gdraw.GGroup...
Gdraw.GLine...
Gdraw.GMenu...
Gdraw.GMenuBar...
Gdraw.GTabSet...
-
As above.
Specifies the box, font, color, etc. for this particular type of ggadget.
-
Gdraw.GScrollBar.Width
-
An integer (points)
Specifies the scrollbar width in points (for horizontal scrollbars it specifies
the height)
-
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.
-
Gdraw.GWidget.BrokenPalettes
-
A boolean
On many window managers the palette code doesn't work (they steal focus from
menus, they don't track the main window properly, ...). Use this resource
to turn off the broken bits. The results are non-optimal, but they should
be functional. (this is now irrelevant to pfaedit)
-
...
-
Colors
-
Colors may be specified as:
-
rgb(r%,g%,b%)
where r, g, and b are doubles between 0% and 100%
-
r g b
where r, g, and b are 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
-
#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)
-
Fonts
-
A font may be specified as:
<boldness> <italicness> <pointsize>
<familyname>
(I know the order looks a bit weird but that's what is used by css).
-
<boldness> can be:
-
nothing -- the font is not bold
-
bold -- the font is bold
-
a number -- (between 0 and 999), a numeric value that gives some idea of
how bold the font should be. 200 would be a light font, 400 an normal font,
700 a bold font and 999 and ultra-black font.
-
<italicness> can be:
-
nothing -- the font is not italic
-
italic -- the font is italic
-
oblique -- the font is oblique (italic)
-
<pointsize> can be:
-
nothing -- a default point size is chosen
-
a number followed by "pt" -- specifies the point size.
Examples
-
bold 14pt helvetica
Helvetica Bold at 14 points
-
italic 10pt times
Times italic at 10 points
PfaEdit assumes that your keyboard has a control key and some equivalent
of a meta key. PfaEdit 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).
PfaEdit tries to guess the keyboard from the environment in which it was
compiled. But with X this may not always be appropriate. So the
"Gdraw.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. PfaEdit 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...
-- Prev -- TOC
-- Next --