Xemacs Font howto on OS X
I am excited! This is pretty amazing for me. first I figured out right syntax for setting the font in .emacs/init.el. Which is (set-face-font ‘default “-fndry-fmly-wght-slant-sWdth-adstyl-pxlsz- ↵
ptSz-resx-resy-spc-avgWdth-rgstry-encdng“).
To find out what the heck that is? Use xfontsel. It came standard in both Fedora Core 3 and X11 for Mac OS X (Two OS of choice for me).
AWESOME website: for OS X, go to Hiroto Sakai’s website and download jx11. Amazing. jafont package contains 4 of free (or ok to distribute license) fonts. Naga10, Mona, M+ and Shinonome fonts. this is awesome
Once the fonts are in there you need to activate it. Fonts are typically in somewhere like /usr/X11R6/lib/X11/fonts/, so find dir you want and xset +fp /usr/X11R6/lib/X11/fonts/local then xset fp rehash. Better yet, you can add those 2 lines in ~/.xinitrc
After this is done, my .xemacs/init.el has following lines
(set-face-font 'default ;; face "-mplus-gothic-medium-r-normal-*-12-*-*-*-*-*-jisx0208.1983-*" ;; font 'global ;; locale '(mule-fonts) ;; tag-set 'prepend) ;; how-to-add (set-face-font 'bold ;; face "-mplus-gothic-bold-r-normal-*-12-*-*-*-*-*-jisx0208.1983-*" ;; font 'global ;; locale '(mule-fonts) ;; tag-set 'prepend) ;; how-to-add
UPDATE: Mr Hiroto Sasaki’s website no longer hosts the jafont package. I’ve uploaded the 14.2MB file to my home server if you need it but I don’t take credit nor responsibility… use it at your own risk please. Oh, and my upload speed sucks so it may take a while to download it. Also I’ve learned that the writing following two lines
xset +fp /usr/X11R6/lib/X11/fonts/local
xset fp rehash
to ~/.xinitrc doesn’t work. Only way I got it to work is to (1) execute those commands manually every time, or (2) add it to /etc/X11/xinit/xinitrc. Again, maybe it is not a good idea. Don’t hold it against me.
