Emacs fonts

Discussion in 'Linux' started by fmazzanti, Sep 29, 2008.

  1. fmazzanti

    fmazzanti

    Joined:
    Sep 1, 2008
    Messages:
    8
    Likes Received:
    0
    Hi One-ers ;)

    Just a quick question: I'm regularly using emacs as my default text editor, but with the smallish screen of the ONe, I find the font too small to be comfortably seen. I actually like the font used by default on the Terminal, which is denoted as 'Monospaced Regular 12' on the configuration tool of the Options menu of the terminal, but can't recognize it by issuing an 'xlsfonts'.

    Can anyone of you please tell me the precise name of the font used by the Terminal, so that I can use it in Emacs?

    Thanks a lot,

    Ferran.
     
    fmazzanti, Sep 29, 2008
    #1
  2. fmazzanti

    kevin

    Joined:
    Sep 18, 2008
    Messages:
    274
    Likes Received:
    0
    I think the terminal you're talking about is the GTK-based one and not the standard xterm? If it is GTK then I guess it uses GTK fonts, and the Pango renderer. In which case you should be able to get an idea what font it is using by looking in the pango font aliases file (/etc/pango/pangox.aliases).

    But I think there are multiple possibilities, so the final font that gets chosen will depend on what's installed on your system.
     
    kevin, Sep 29, 2008
    #2
  3. fmazzanti

    fmazzanti

    Joined:
    Sep 1, 2008
    Messages:
    8
    Likes Received:
    0
    Hi Kevin,

    thanks a *lot* for the info. yes it looks like you're right, and that the font I'm looking for lives in this pango thing.
    I scrolled through the file you told me (/etc/pango/pangox.aliases) and found the monospace name I was talking about. However, the file lists items as follows:

    serif normal normal normal normal \
    "-*-times-medium-r-normal--*-*-*-*-*-*-*-*,\
    -*-batang-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0,\
    -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\
    -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\
    -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\
    -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\
    -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\
    -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\
    -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\
    -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\
    -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\
    -*-kannada-medium-r-normal--*-*-*-*-*-*-iso10646-kan,\
    -*-burmese-medium-r-normal--*-*-*-*-*-*-iso10646-brm,\
    -*-buginese-medium-r-normal--*-*-*-*-*-*-iso10646-bgn,\
    -*-oriya-medium-r-normal--*-*-*-*-*-*-iso10646-ori,\
    -daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0"

    how should I invoke them in emacs? These start with -*- and emacs compalins when I simply issue the command
    emacs -fn -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur
    for instance. I'm 100% sure I'm doing it wrong so... what would be the right way to call in the font?

    Best regards and thanks again,

    Ferran.
     
    fmazzanti, Sep 29, 2008
    #3
  4. fmazzanti

    kevin

    Joined:
    Sep 18, 2008
    Messages:
    274
    Likes Received:
    0
    You can probably get a full font path by running xfontsel, putting in the bits of info that you _do_ have, and then seeing what remaining options are not greyed out.
     
    kevin, Sep 29, 2008
    #4
  5. fmazzanti

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    If you know how to compile a program or if you can find a Fedora RPM for Emacs 23, you should consider moving to it- it is a lot nicer than Emacs 22. It has full native unicode support and anti-alias fonts (via the usual libfreetype, fontconfig, xft) amd gtk+ widgets.

    Here is the best place to learn how to setup and use Emacs:

    http://www.emacswiki.org/cgi-bin/wiki
     
    cpchan, Sep 29, 2008
    #5
  6. fmazzanti

    fmazzanti

    Joined:
    Sep 1, 2008
    Messages:
    8
    Likes Received:
    0
    Thanks Kevin & cpchan,

    I actually followed your adivice and installed emacs-23, which certainly did the trick without further problems.
    Now I can use my monospace regular 8 font which is the one I was looking for. I'm a happy camper now :mrgreen:

    Thans gracias gracies merci danke spaceeva

    Ferran.
     
    fmazzanti, Sep 30, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.