mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(mac-atsu-font-table): Remove defvar.
(mac-handle-font-selection): Use mac-atsu-font-face-attributes instead of mac-atsu-font-table. (fontset-default): Specify argument MAXIMUM in x-list-fonts calls.
This commit is contained in:
parent
216f14d30e
commit
5fecafe707
@ -82,7 +82,6 @@
|
||||
(defvar mac-service-selection)
|
||||
(defvar mac-system-script-code)
|
||||
(defvar mac-apple-event-map)
|
||||
(defvar mac-atsu-font-table)
|
||||
(defvar mac-font-panel-mode)
|
||||
(defvar mac-ts-active-input-overlay)
|
||||
(defvar x-invocation-args)
|
||||
@ -1791,7 +1790,8 @@ With numeric ARG, display the font panel if and only if ARG is positive."
|
||||
(let* ((ae (mac-event-ae event))
|
||||
(fm-font-size (mac-ae-number ae "fmsz"))
|
||||
(atsu-font-id (mac-ae-number ae "auid"))
|
||||
(attribute-values (gethash atsu-font-id mac-atsu-font-table)))
|
||||
(attribute-values (and atsu-font-id
|
||||
(mac-atsu-font-face-attributes atsu-font-id))))
|
||||
(if fm-font-size
|
||||
(setq attribute-values
|
||||
`(:height ,(* 10 fm-font-size) ,@attribute-values)))
|
||||
@ -2459,7 +2459,7 @@ It returns a name of the created fontset."
|
||||
|
||||
;; Setup the default fontset.
|
||||
(setup-default-fontset)
|
||||
(cond ((x-list-fonts "*-iso10646-1")
|
||||
(cond ((x-list-fonts "*-iso10646-1" nil nil 1)
|
||||
;; Use ATSUI (if available) for the following charsets.
|
||||
(dolist
|
||||
(charset '(latin-iso8859-1
|
||||
@ -2471,7 +2471,7 @@ It returns a name of the created fontset."
|
||||
vietnamese-viscii-lower vietnamese-viscii-upper
|
||||
lao ethiopic tibetan))
|
||||
(set-fontset-font nil charset '(nil . "iso10646-1"))))
|
||||
((null (x-list-fonts "*-iso8859-1"))
|
||||
((null (x-list-fonts "*-iso8859-1" nil nil 1))
|
||||
;; Add Mac-encoding fonts unless ETL fonts are installed.
|
||||
(fontset-add-mac-fonts "fontset-default")))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user