bdfedit.help
来自「Very very small GUI. Usefull for small s」· HELP 代码 · 共 200 行
HELP
200 行
Usage: bdfedit [font]Running bdfedit brings up the font editing window. If a font was specifiedon the command line, this font is loaded. The font must be a BDF font,and can be specified as a filename. It may also be the name of a font, anda fontserver, in one of the following forms: font@server:port font@server (defaults to port 7100) font@ (defaults to localhost:7100and "font" should be the name of the font.(In order to use this method, you must have "fstobdf" installed on yoursystem and in your PATH, and you must have a fontserver running somewhere.)Fonts loaded this way will assume the filename is the same as the fontname(without the server or port), with ".bdf" appended.This method of specifying fonts may also be used when opening fonts withthe "Load" option in the "File" menu.When you are specifying a filename wifh the Load or Save dialogs, you canuse tab completion similar to most Unix shells: Hit the tab key at anypoint and it will try to complete the current part of the path you aretyping, or present a list of possible completions to you.Character Selection-------------------To select a character, click with mouse button 1 on the character in thegrid at the top. The decimal character number and the character name willbe displayed above the editing area at the bottom of the window. A red boxhighlights the current character in the font grid.Control- with the arrow keys will also alter the currently selected character.Character Editing-----------------In the editing area, the mouse has the following actions: button 1: draw button 2: invert button 3: eraseThe arrow keys will move the entire editing area up or down, left or right.As bits scroll off of one side, they appear again on the opposite side.The editing area can also be flipped and rotated by using the menu itemsunder "Edit".To apply the changes to the current character, click the "Apply" button.Prior to applying, you can use the "Reset" button to restore the editingarea to the current value of the character. You can also use the "Orig"button to set the editing area to the value of the character whenthe font was originally loaded. You can also save your current versionto the Hold buffer by clicking the "Hold" button.To rename the character, click on the character name above the editingarea, and you'll get a window that will let you edit the name.Hold Buffer-----------The line of characters (initially pink boxes) between the font and theediting area is a hold space for temporarily storing characters you areworking on. This area is updated automatically whenever you switchcharacters without saving the character you are working on. It alsosaves the previous version every time you apply changes.When the buffer fills up, the oldest character in the hold buffer isoverwritten. Don't depend on this area as a place to keep a sparecharacter for a while; instead, rely on it as a kind of undo, and alsoas spare space when you need to re-order characters.Drag and Drop-------------Characters can be dragged from anywhere except the editing area. Theycan be dropped anywhere including the editing area. Characters droppedonto the editing area replace the current data, but do not alter thecurrently selected character. Characters dropped onto the hold spacewill occupy the least recently used hold space (rather than the spaceunder your mouse).If you are dragging from one spot in the font grid to another spot inthe font grid, there will be a delay before the drop is allowed. Thisis done to prevent accidentally dragging and dropping while you aresimply trying to select a new character in the font. Wait a couple ofseconds, and a green box will appear as you move the mouse to show youthat you can now drop on this character.Note that this does NOT do a swap operation between the two characters,rather it does a copy. If you need to do a swap, remember that thecopy you just did will also force the overwritten character to be savedto the hold buffer. You can then drag that character from the holdbuffer to the first character where you started the drag.Deleting Characters-------------------If you want to make a character undefined, use Control-mouse button 3 on thecharacter in the font. This same method can also be used to clean up slotsin the hold buffer.Resizing the Font-----------------Select "Resize" from the "File" menu. A new window will appear with agrid, a green box, and a blue line. You can grab any edge of the greenbox and move it. When you do this, you'll see that the original fontsize is left underneath as black lines. Keep in mind that the edge youmove determines where data will be added or deleted. For instance, ifyou move the left edge one pixel to the right, you will lose the leftcolumn of data off of all of your characters after the resize.The blue lines control the location of the font origin. The y-axis isnormally the baseline of the font, letters sit on it and descendersfall below it. The x-axis is usuall the left edge, but if the fontcharacters should overlap, this is one way to achieve that (anotherway is to set the individual character display widths, see belowin "Proportional (Variable) Width Characters").When done, click "Resize" and wait a few seconds while your font isresized. Be careful, there is no undo for this. (The hold buffer willalso be resized!)If you can't drag the lines far enough in the resize window to make thefont as big as you want, just make it as big as you can. If you resizeagain, the resize window will be bigger.Proportional (Variable) Width Characters----------------------------------------To use proportional width characters, simply use the mouse to move the greenbar in the editing area to the desired width for that character. This barrepresents the _display_ width of the character, i.e. the next character'sorigin will be drawn where the green bar is. The character data can extendto the right of the green bar (this would be typical for italic fonts).For fixed width fonts, leave this bar all the way to the right.A proportional font can be quickly converted to fixed width by using the"Convert to Fixed" menu item in the "File" menu. Beware: there is noway to undo this operation.Font Properties and Comment---------------------------The Font Properties and Comment can be edited by selected these optionsfrom the "File" menu. The Comment is a field that contains variouscomments, usually including copyright and licensing information.The Font Properties includes the name of the font used by X11 (this isNOT the same as the filename where you store the font), and alsosome items often used to describe X11 fonts.Customization-------------bdfedit will read from a configuration file in your home directory called.bdfeditrc, if it exists. Currently this is simply a Tcl/Tk script whichis sourced. In theory you can do all sorts of fun things, but mostlikely you'll just want to set up a default comment field that says thatyou are the font author. A sample .bdfeditrc was included with thisdistribution.BUGS----Selecting an undefined character causes it to be defined as a blankcharacter upon the next save.Using X11 Fonts===============So what do you do with a BDF file?> mkdir $HOME/fonts> cd $HOME/fonts> chmod 755 .> mv somebdffont.bdf .> mkfontdir> chmod 644 *> xset fp+ $HOME/fonts> xset fp rehashNow you can use this font. You will be using it by the name found withinthe file, NOT by the filename. Each time you add a font to the fontdirectory you will need to do the mkfontdir command (in the fonts directory)and the "xset fp rehash" command.Make sure you don't put in two font files that have the same fontnamein them (the default font name is UNTITLED, so this can easily happen).If you do, mkfontdir will fail. Use the "File" menu "Properties"dialog to change the font name.You will probably also want to put the two xset commands into your X11startup files (possibly .xinitrc or .xsession) so that these fonts willbe available to you every time you log in.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?