unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "knubee" <knubee@gmail.com>
Subject: Re: quick change of face-size?
Date: 8 Nov 2005 12:56:13 -0800	[thread overview]
Message-ID: <1131483373.233647.250280@g44g2000cwa.googlegroups.com> (raw)
In-Reply-To: mailman.14390.1131461852.20277.help-gnu-emacs@gnu.org

>     How can I ensure that my emacs has the correct fonts (or font
>     definitions) so that your zoom utility will do the right thing?
>
> I dunno. Zooming in this way just changes the font _size_ parameter. If you
> try to set a font size that you don't have, you'll get an error.

Ok. I poked around a bit in the different files associated with
zoom-frame.el and I think I see what is happening. Your code relies on
frame-parameter to extract the frame font info. In my case, this is:

"-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1"

Then, your code simply changes the frame font with the size value
incremented by value of 1 (or some user-specified value).

I understand that this makes the code fairly straight-forward to write,
but it relies on the existence of fonts that correspond to those size
increments. It seems to me that a more general solution would:

a) get a listing of the existing fonts in different sizes for the
current frame's font-family
b) zoom in/out by "one unit", where this means the next available size
of the font-family

My question: do you or someone else know how to return such a listing
of the installed fonts within emacs? I tried a few things, but wasn't
able to do it.

  parent reply	other threads:[~2005-11-08 20:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-06 21:26 quick change of face-size? knubee
2005-11-06 21:29 ` knubee
2005-11-06 22:03 ` Peter Dyballa
2005-11-07  1:13 ` Drew Adams
     [not found] ` <mailman.14214.1131326015.20277.help-gnu-emacs@gnu.org>
2005-11-08  9:46   ` knubee
2005-11-08 14:57     ` Drew Adams
     [not found]     ` <mailman.14390.1131461852.20277.help-gnu-emacs@gnu.org>
2005-11-08 20:56       ` knubee [this message]
2005-11-08 22:02         ` Drew Adams
2005-11-10  1:25         ` rgb
     [not found]         ` <mailman.14456.1131487390.20277.help-gnu-emacs@gnu.org>
2005-11-12 15:58           ` knubee
2005-11-12 17:06             ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2005-11-07  9:10 David Reitter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1131483373.233647.250280@g44g2000cwa.googlegroups.com \
    --to=knubee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).