Current File : //proc/thread-self/root/kunden/usr/share/emacs/27.2/lisp/ps-bdf.elc |
;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\303\304!\210\305\302\306\307\310\311\312\313&\210\314>\203 \315\316 \"C\303\207" [system-type installation-directory bdf-directory-list require ps-mule custom-declare-variable (if (memq system-type '(ms-dos windows-nt)) (list (expand-file-name "fonts/bdf" installation-directory)) '("/usr/local/share/emacs/fonts/bdf")) "List of directories to search for `BDF' font files.\nThe default value is (\"/usr/local/share/emacs/fonts/bdf\")." :type (repeat :tag "BDF font directory list" (directory :tag "BDF font directory")) :group ps-print-miscellany (ms-dos windows-nt) expand-file-name "fonts/bdf"] 8)
#@141 Return an absolute path name of a `BDF' font file BDFNAME.
It searches directories listed in the variable `bdf-directory-list'
for BDFNAME.
(defalias 'bdf-expand-file-name #[(bdfname) "\305!\203 \306!\2058 \207\30728 \310\211\2056 @\311\n\"\306\f!\203- \312\307\f\"\210)A\211\204 \310*0\207" [bdfname bdf-directory-list dir --dolist-tail-- absolute-path file-name-absolute-p file-readable-p tag nil expand-file-name throw] 4 (#$ . 1026)])
#@102 Return modification time of FILENAME.
The value is a timestamp in the same format as `current-time'.
(defalias 'bdf-file-mod-time #[(filename) "\301!\3028\207" [filename file-attributes 5] 3 (#$ . 1486)])
(put 'bdf-file-mod-time 'byte-optimizer 'byte-compile-inline-expand)
#@134 Return non-nil if and only if FILENAME is newer than MOD-TIME.
MOD-TIME is a modification time in the same format as `current-time'.
(defalias 'bdf-file-newer-than-time #[(filename mod-time) "\303!\3048\262)\305\n \")\207" [filename new-mod-time mod-time file-attributes 5 time-less-p] 3 (#$ . 1769)])
#@123 Return a buffer visiting a bdf file BDFNAME.
BDFNAME must be an absolute file name.
If BDFNAME doesn't exist, return nil.
(defalias 'bdf-find-file #[(bdfname) "\303!\205 \304\305!\306r\nq\210\307!\210\n+\207" [bdfname coding-system-for-read buf file-readable-p generate-new-buffer " *bdf-work*" no-conversion insert-file-contents] 2 (#$ . 2084)])
#@68 Name of cache file which contains information of `BDF' font files.
(defvar bdf-cache-file (locate-user-emacs-file "bdfcache.el" ".bdfcache.el") (#$ . 2442))
#@317 Cached information of `BDF' font files. It is a list of FONT-INFO.
FONT-INFO is a list of the following format:
(ABSOLUTE-FILE-NAME MOD-TIME SIZE FONT-BOUNDING-BOX
RELATIVE-COMPOSE BASELINE-OFFSET CODE-RANGE MAXLEN OFFSET-VECTOR)
See the documentation of the function `bdf-read-font-info' for more detail.
(defvar bdf-cache nil (#$ . 2606))
#@180 Return a cached information about `BDF' font files from a cache file.
The variable `bdf-cache-file' holds the cache file name.
If the cache file is not readable, this return nil.
(defalias 'bdf-read-cache #[nil "\302\3031 \304 !\205 \305 !\210<\203 \202 \302\2110\207\210\302\207" [bdf-cache bdf-cache-file nil (error) file-readable-p load-file] 2 (#$ . 2964)])
#@190 Write out cached information of `BDF' font file to a file.
The variable `bdf-cache-file' holds the cache file name.
The file is written if and only if the file already exists and writable.
(defalias 'bdf-write-cache #[nil "\205 \302 !\205 \303 !\205 \304\305\306\"\307 #\207" [bdf-cache bdf-cache-file file-exists-p file-writable-p write-region format "(setq bdf-cache '%S)\n" nil] 4 (#$ . 3341)])
#@307 Cache FONT-INFO as information about one `BDF' font file.
FONT-INFO is a list of the following format:
(ABSOLUTE-FILE-NAME MOD-TIME SIZE FONT-BOUNDING-BOX
RELATIVE-COMPOSE BASELINE-OFFSET CODE-RANGE MAXLEN OFFSET-VECTOR)
See the documentation of the function `bdf-read-font-info' for more detail.
(defalias 'bdf-set-cache #[(font-info) "\303@ \"\211\203 \nA\241\202 B\211)\207" [font-info bdf-cache slot assoc] 4 (#$ . 3751)])
#@27 Initialize `bdf' library.
(defalias 'bdf-initialize #[nil "\300 \205 \301\302\303\"\207" [bdf-read-cache add-hook kill-emacs-hook bdf-write-cache] 3 (#$ . 4201)])
(defalias 'bdf-compact-code #[(code code-range) " \302HW\204 \303HV\203 \304H\305\306\" \307HZ \310H \311HZT_\312\313\" \311HZ\\\207" [code code-range 4 5 6 ash -8 0 3 2 logand 255] 4])
(defalias 'bdf-expand-code #[(code code-range) "\303H\304HZT\n \245\305H\\\306_\n \246\304H\\\\)\207" [code-range code0-range code 3 2 0 256] 4])
(defalias 'bdf-search-and-read #[(match limit) "eb\210\302 \303#\205 \304\225b\210\305p!\207" [match limit search-forward t 0 read] 4])
#@1400 Read `BDF' font file BDFNAME and return information (FONT-INFO) of the file.
BDFNAME must be an absolute file name.
FONT-INFO is a list of the following format:
(BDFFILE MOD-TIME FONT-BOUNDING-BOX
RELATIVE-COMPOSE BASELINE-OFFSET CODE-RANGE MAXLEN OFFSET-VECTOR)
MOD-TIME is last modification time in the same format as `current-time'.
SIZE is a size of the font on 72 dpi device. This value is got
from SIZE record of the font.
FONT-BOUNDING-BOX is the font bounding box as a list of four integers,
BBX-WIDTH, BBX-HEIGHT, BBX-XOFF, and BBX-YOFF.
RELATIVE-COMPOSE is an integer value of the font's property
`_MULE_RELATIVE_COMPOSE'. If the font doesn't have this property, the
value is 0.
BASELINE-OFFSET is an integer value of the font's property
`_MULE_BASELINE_OFFSET'. If the font doesn't have this property, the
value is 0.
CODE-RANGE is a vector of minimum 1st byte, maximum 1st byte, minimum
2nd byte, maximum 2nd byte, minimum code, maximum code, and default
code. For 1-byte fonts, the first two elements are 0.
MAXLEN is a maximum bytes of one glyph information in the font file.
OFFSET-VECTOR is a vector of a file position which starts bitmap data
of the glyph in the font file.
Nth element of OFFSET-VECTOR is a file position for the glyph of code
CODE, where N and CODE are in the following relation:
(bdf-compact-code CODE) => N, (bdf-expand-code N) => CODE
(defalias 'bdf-read-font-info #[(bdfname) "\306!\307\310\307\311\2114\311\21156\311\21178 \203'