comparison lisp/term/mac-win.el @ 89959:e301e3f2bef8

term/mac-win.el: Use mac-standard-fontset-spec to create fontset-mac (mac-standard-fontset-spec): Created
author Steven Tamm <steventamm@mac.com>
date Wed, 04 Aug 2004 06:04:04 +0000
parents 029a652ac817
children 3219f94257bc
comparison
equal deleted inserted replaced
89958:0bdb5a16ae51 89959:e301e3f2bef8
184 184
185 185
186 ;; Create a fontset that uses mac-roman font. With this fontset, 186 ;; Create a fontset that uses mac-roman font. With this fontset,
187 ;; characters decoded from mac-roman encoding (ascii, latin-iso8859-1, 187 ;; characters decoded from mac-roman encoding (ascii, latin-iso8859-1,
188 ;; and mule-unicode-xxxx-yyyy) are displayed by a mac-roman font. 188 ;; and mule-unicode-xxxx-yyyy) are displayed by a mac-roman font.
189 ;; Unnecessary in emacs22
190
191 ;; Carbon uses different fonts than commonly found on X, so
192 ;; we define our own standard fontset here.
193 (defvar mac-standard-fontset-spec
194 "-apple-Monaco-normal-r-*-*-12-*-*-*-*-*-fontset-mac"
195 "String of fontset spec of the standard fontset.
196 This defines a fontset consisting of the Monaco variations for
197 European languages which are distributed with Mac OS X.
198
199 See the documentation of `create-fontset-from-fontset-spec for the format.")
200
189 201
190 (if (fboundp 'new-fontset) 202 (if (fboundp 'new-fontset)
191 (create-fontset-from-fontset-spec 203 (progn
192 "-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac, 204 (require 'fontset)
193 ascii:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman 205 ;; Setup the default fontset.
194 mac-roman:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman")) 206 (setup-default-fontset)
207 ;; Create the standard fontset.
208 (create-fontset-from-fontset-spec mac-standard-fontset-spec t)
209 ))
195 210
196 211
197 (if (eq system-type 'darwin) 212 (if (eq system-type 'darwin)
198 ;; On Darwin filenames are encoded in UTF-8 213 ;; On Darwin filenames are encoded in UTF-8
199 (setq file-name-coding-system 'utf-8) 214 (setq file-name-coding-system 'utf-8)