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.

Related posts:

  1. Xemacs fonts issue
  2. Loving Xemacs
  3. Fedora Japanese Font lssue resolved!
  4. Fonts for web
  5. Memory Watch Howto in Linux
This entry was posted in Linux, Mac, and LAMP Open Source. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Welcome to Daigo’s Daily Digital Diorama. I blog about... whatever that comes to my mind.
  • Change color

    Purple Red Green Blue No Style

  • Archives

  • Calendar

    January 2005
    M T W T F S S
    « Dec   Feb »
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
    31  
  • Categories