Re: Scaling faces



On Mon, 27 Jun 2005 10:55:10 +0100,
Rupert Swarbrick <rupert.swarbrick@xxxxxxxxxxx> wrote:

> I'm trying to set up my emacs to give me 164 or whatever chars width
> on my screen (under X using CVS emacs with GTK), so that I can have
> two buffers 80 wide next to each other.

> This would be fine, but for the fact that changing either "scale" or
> "height" in the customise buffer works in pretty significant
> increments - i.e. scale = 120,125,130 are all the same (and slightly
> too small), but scale = 135 suddenly jumps to too big.

> It reckons it's using font-family "adobe-courier" and I assume this is
> a system font issue - presumably I'm using bitmapped fonts which can't
> be scaled dynamically and have certain preset heights.

Even with a scalable font, Emacs will scale each character to be an
integer number of pixels wide. Assuming then, that at a scale of 130, a
13.0 point font is 8 pixels wide per character, your 164 characters take
up 1312 pixels. But at a scale of 135, Emacs ends up with a 13.5 point
font that is 9 pixels wide per character, and then your 164 characters
take up 1476 pixels.

Regards,
Dan

--
Dan Sommers
<http://www.tombstonezero.net/dan/>
.



Relevant Pages

  • Re: Advice for OCR solution (or alternative)
    ... My font is not fixed width. ... between each character (sometimes more than one pixels width). ... "Roedy Green" wrote in message ...
    (comp.lang.java.help)
  • Re: How to convert font metrics to screen metrics ?
    ... (ie reading font files), to "screen metrics"? ... Character v, Arial.ttf, Size 10 ... He's trying to figure out how many pixels wide a size 10 (Points? ...
    (comp.fonts)
  • Re: Uses for Screen OCR Technology ???
    ... It works with any machine generated character glyphs that have visible pixels ... I don't know what your {"all characters are invisible" font} ...
    (comp.lang.java.programmer)
  • Re: Advice for OCR solution (or alternative)
    ... > My font is not fixed width. ... > between each character (sometimes more than one pixels width). ... A brute-force "identify glyph" would compare each glyph of ...
    (comp.lang.java.help)
  • Angband with an accent: displaying extended characters
    ... For almost as long as Angband has been in existance, people have wanted to display more than the basic ASCII set of 128 characters. ... The remaining character positions are left blank for additional customization. ... You take an existing font, edit it, add it to the font folder, and use it by ... In this case, we have a forward single quote, which means forward slant accent. ...
    (rec.games.roguelike.angband)