0

How to change my font to get the same result in Ubuntu than I used to get in Windows.

M-x describe-fonts in Windows returns:

    name (opened by): -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1
       full name: Courier New-10.0
            size: 13
          height: 16
 baseline-offset:  0
relative-compose:  0
  default-ascent: 12
          ascent: 12
         descent:  4
   average-width:  8
     space-width:  8
       max-width: 10

I added in my .emacs files in Ubuntu:

(set-face-font 'default "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")

But I don't have exactly the same sizes, M-x describe-fonts in Ubuntu returns:

    name (opened by): -Mono-Courier New-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1
       full name: Courier New:pixelsize=13:foundry=Mono:weight=normal:slant=normal:width=normal:spacing=100:scalable=true
       file name: /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf
            size: 13
          height: 15
 baseline-offset:  0
relative-compose:  0
  default-ascent:  0
          ascent: 11
         descent:  4
   average-width:  8
     space-width:  8
       max-width:  8

So how to get exactly the same sizes height / ascent / descent, ..., ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.