diff options
| -rw-r--r-- | doc/emacs/msdog.texi | 104 |
1 files changed, 96 insertions, 8 deletions
diff --git a/doc/emacs/msdog.texi b/doc/emacs/msdog.texi index 81dc126ea17..206b21f9df6 100644 --- a/doc/emacs/msdog.texi +++ b/doc/emacs/msdog.texi | |||
| @@ -35,6 +35,7 @@ here. | |||
| 35 | * Windows Mouse:: Windows-specific mouse features. | 35 | * Windows Mouse:: Windows-specific mouse features. |
| 36 | * Windows Processes:: Running subprocesses on Windows. | 36 | * Windows Processes:: Running subprocesses on Windows. |
| 37 | * Windows Printing:: How to specify the printer on MS-Windows. | 37 | * Windows Printing:: How to specify the printer on MS-Windows. |
| 38 | * Windows Fonts:: Specifying fonts on MS-Windows. | ||
| 38 | * Windows Misc:: Miscellaneous Windows features. | 39 | * Windows Misc:: Miscellaneous Windows features. |
| 39 | @ifnottex | 40 | @ifnottex |
| 40 | * MS-DOS:: Using Emacs on MS-DOS (otherwise known as @dfn{MS-DOG}). | 41 | * MS-DOS:: Using Emacs on MS-DOS (otherwise known as @dfn{MS-DOG}). |
| @@ -174,8 +175,8 @@ default ignores letter-case in file names during completion. | |||
| 174 | If the variable @code{w32-get-true-file-attributes} is | 175 | If the variable @code{w32-get-true-file-attributes} is |
| 175 | non-@code{nil} (the default), Emacs tries to determine the accurate | 176 | non-@code{nil} (the default), Emacs tries to determine the accurate |
| 176 | link counts for files. This option is only useful on NTFS volumes, | 177 | link counts for files. This option is only useful on NTFS volumes, |
| 177 | and it considerably slows down Dired and other features, so use it | 178 | and it considerably slows down Dired and other features, so disable it |
| 178 | only on fast machines. | 179 | on slow machines. |
| 179 | 180 | ||
| 180 | @node ls in Lisp | 181 | @node ls in Lisp |
| 181 | @section Emulation of @code{ls} on MS-Windows | 182 | @section Emulation of @code{ls} on MS-Windows |
| @@ -332,12 +333,11 @@ When Emacs starts, it first checks whether the environment variable | |||
| 332 | directory pointed by @env{HOME}. If @env{HOME} is not defined, Emacs | 333 | directory pointed by @env{HOME}. If @env{HOME} is not defined, Emacs |
| 333 | checks for an existing @file{.emacs} file in @file{C:\}, the root | 334 | checks for an existing @file{.emacs} file in @file{C:\}, the root |
| 334 | directory of drive @file{C:}@footnote{ | 335 | directory of drive @file{C:}@footnote{ |
| 335 | The check in @file{C:\} is in preference to the application data | 336 | The check in @file{C:\} is for compatibility with older versions of Emacs, |
| 336 | directory for compatibility with older versions of Emacs, which didn't | 337 | which didn't check the application data directory. |
| 337 | check the application data directory. | ||
| 338 | }. If there's no such file in @file{C:\}, Emacs next uses the Windows | 338 | }. If there's no such file in @file{C:\}, Emacs next uses the Windows |
| 339 | system calls to find out the exact location of your application data | 339 | system calls to find out the exact location of your application data |
| 340 | directory. If that fails as well, Emacs falls back to @file{C:\}. | 340 | directory. If that system call fails, Emacs falls back to @file{C:\}. |
| 341 | 341 | ||
| 342 | Whatever the final place is, Emacs sets the value of the @env{HOME} | 342 | Whatever the final place is, Emacs sets the value of the @env{HOME} |
| 343 | environment variable to point to it, and it will use that location for | 343 | environment variable to point to it, and it will use that location for |
| @@ -588,12 +588,12 @@ variables control printing on all systems, but in some cases they have | |||
| 588 | different default values on MS-DOS and MS-Windows. | 588 | different default values on MS-DOS and MS-Windows. |
| 589 | 589 | ||
| 590 | Emacs on Windows automatically determines your default printer and | 590 | Emacs on Windows automatically determines your default printer and |
| 591 | sets the variable @var{printer-name} to that printer's name. But in | 591 | sets the variable @code{printer-name} to that printer's name. But in |
| 592 | some rare cases this can fail, or you may wish to use a different | 592 | some rare cases this can fail, or you may wish to use a different |
| 593 | printer from within Emacs. The rest of this section explains how to | 593 | printer from within Emacs. The rest of this section explains how to |
| 594 | tell Emacs which printer to use. | 594 | tell Emacs which printer to use. |
| 595 | 595 | ||
| 596 | @vindex printer-name@r{, (MS-DOS/MW-Windows)} | 596 | @vindex printer-name@r{, (MS-DOS/MS-Windows)} |
| 597 | If you want to use your local printer, then set the Lisp variable | 597 | If you want to use your local printer, then set the Lisp variable |
| 598 | @code{lpr-command} to @code{""} (its default value on Windows) and | 598 | @code{lpr-command} to @code{""} (its default value on Windows) and |
| 599 | @code{printer-name} to the name of the printer port---for example, | 599 | @code{printer-name} to the name of the printer port---for example, |
| @@ -722,6 +722,94 @@ printer, put this in your @file{.emacs} file: | |||
| 722 | (This assumes that Ghostscript is installed in the | 722 | (This assumes that Ghostscript is installed in the |
| 723 | @file{D:/gs6.01} directory.) | 723 | @file{D:/gs6.01} directory.) |
| 724 | 724 | ||
| 725 | @node Windows Fonts | ||
| 726 | @section Specifying Fonts on MS-Windows | ||
| 727 | @cindex font specification (MS Windows) | ||
| 728 | |||
| 729 | Starting with Emacs 23, fonts are specified by their name, size | ||
| 730 | and optional properties. The format for specifying fonts comes from the | ||
| 731 | fontconfig library used in modern Free desktops. | ||
| 732 | |||
| 733 | @example | ||
| 734 | [Family[-PointSize]][:Option1=Value1[:Option2=Value2[...]]] | ||
| 735 | @end example | ||
| 736 | |||
| 737 | The old XLFD based format is also supported for backwards compatibility. | ||
| 738 | |||
| 739 | Emacs 23 supports a number of backends. Currently on Windows the @code{gdi} | ||
| 740 | font backend is supported. | ||
| 741 | |||
| 742 | @cindex font properties (MS Windows) | ||
| 743 | @noindent | ||
| 744 | Optional properties common to all font backends on MS-Windows are: | ||
| 745 | |||
| 746 | @vindex font-weight-table @r{(MS-Windows)} | ||
| 747 | @code{weight} specifies the weight of the font. Special values @code{light}, | ||
| 748 | @code{medium}, @code{demibold}, @code{bold} and @code{black} can be specified | ||
| 749 | without the @code{weight=} (eg @samp{Courier New-12:bold}). Otherwise | ||
| 750 | the weight should be a numeric value between 100 and 900, or one of the | ||
| 751 | named weights in @code{font-weight-table}. If unspecified, a regular font | ||
| 752 | is assumed. | ||
| 753 | |||
| 754 | @vindex font-slant-table @r{(MS-Windows)} | ||
| 755 | @code{slant} specifies whether the font is italic. Special values | ||
| 756 | @code{roman}, @code{italic} and @code{oblique} can be specified | ||
| 757 | without the @code{slant=} (eg @samp{Courier New-12:italic}). | ||
| 758 | Otherwise the weight should be a numeric value, or one of the named | ||
| 759 | slants in @code{font-slant-table}. On Windows, any slant above 150 is | ||
| 760 | treated as italic, and anything below as roman. | ||
| 761 | |||
| 762 | @code{family} specifies the font family, but normally this will be specified | ||
| 763 | at the start of the font name. | ||
| 764 | |||
| 765 | @code{pixelsize} specifies the font size in pixels. This can be used instead | ||
| 766 | of the point size specified after the family name. | ||
| 767 | |||
| 768 | @code{adstyle} specifies additional style information for the font. | ||
| 769 | On MS-Windows, the values @code{mono}, @code{sans}, @code{serif}, | ||
| 770 | @code{script} and @code{decorative} are recognized. These are most useful | ||
| 771 | as a fallback with the font family left unspecified. | ||
| 772 | |||
| 773 | @vindex w32-charset-info-alist | ||
| 774 | @code{registry} specifies the character set registry that the font is | ||
| 775 | expected to cover. Most Truetype and Opentype fonts will be unicode fonts | ||
| 776 | that cover several national character sets, but you can narrow down the | ||
| 777 | selection of fonts to those that support a particular character set by | ||
| 778 | using a specific registry from @code{w32-charset-info-alist} here. | ||
| 779 | |||
| 780 | @code{spacing} specifies how the font is spaced. @code{p} specifies | ||
| 781 | a proportional font, and @code{m} or @code{c} specify a monospaced font. | ||
| 782 | |||
| 783 | @code{foundry} is not used on Windows, but for informational purposes and to | ||
| 784 | prevent problems with code that expects it to be set, is set internally to | ||
| 785 | @code{raster} for bitmapped fonts, @code{outline} for scalable fonts, | ||
| 786 | or @code{unknown} if the type cannot be determined as one of those. | ||
| 787 | |||
| 788 | @cindex font properties (MS Windows gdi backend) | ||
| 789 | Options specific to @code{GDI} fonts | ||
| 790 | |||
| 791 | @cindex font scripts (MS Windows) | ||
| 792 | @cindex font unicode subranges (MS Windows) | ||
| 793 | @code{script} specifies a unicode subrange the font should support. | ||
| 794 | Scripts recognized on Windows are @code{latin}, @code{greek}, @code{coptic}, | ||
| 795 | @code{cyrillic}, @code{armenian}, @code{hebrew}, @code{arabic}, | ||
| 796 | @code{syriac}, @code{nko}, @code{thaana}, @code{devanagari}, @code{bengali}, | ||
| 797 | @code{gurmukhi}, @code{gujarati}, @code{oriya}, @code{tamil}, @code{telugu}, | ||
| 798 | @code{kannada}, @code{malayam}, @code{sinhala}, @code{thai}, @code{lao}, | ||
| 799 | @code{tibetan}, @code{myanmar}, @code{georgian}, @code{hangul}, | ||
| 800 | @code{ethiopic}, @code{cherokee}, @code{canadian-aboriginal}, @code{ogham}, | ||
| 801 | @code{runic}, @code{khmer}, @code{mongolian}, @code{symbol}, @code{braille}, | ||
| 802 | @code{han}, @code{ideographic-description}, @code{cjk-misc}, @code{kana}, | ||
| 803 | @code{bopomofo}, @code{kanbun}, @code{yi}, @code{byzantine-musical-symbol}, | ||
| 804 | @code{musical-symbol}, and @code{mathematical}. | ||
| 805 | |||
| 806 | @cindex font antialiasing (MS Windows) | ||
| 807 | @code{antialias} specifies the antialiasing to use for the font. @code{none} | ||
| 808 | means no antialiasing, @code{standard} means use standard antialiasing, | ||
| 809 | @code{subpixel} means use subpixel antialiasing (known as Cleartype on Windows), | ||
| 810 | @code{natural} means use subpixel antialiasing with adjusted spacing between | ||
| 811 | letters. If unspecified, the font will use the system default antialiasing. | ||
| 812 | |||
| 725 | @node Windows Misc | 813 | @node Windows Misc |
| 726 | @section Miscellaneous Windows-specific features | 814 | @section Miscellaneous Windows-specific features |
| 727 | 815 | ||