unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Incorrect TAB width
Date: Tue, 14 Jun 2005 18:31:44 -0400	[thread overview]
Message-ID: <E1DiJwe-0008PG-0V@fencepost.gnu.org> (raw)
In-Reply-To: <20050613191014.GB99682@memo.frmug.org> (message from Bertrand Petit on Mon, 13 Jun 2005 21:10:14 +0200)

	    We can arrange for a private access to my font server if it
    may help you.

It would not be feasible for me to access it, but maybe someone else
here can.

	    It seems so. The tabulation width calculation method was
    reported on the 27th of December, 2004, by Kenichi Handa:

      Tab width is calculated as this (x_produce_glyphs):
	int tab_width = it->tab_width * FRAME_COLUMN_WIDTH (it->f);
      and, x_new_font sets the column width (i.e. the
      canonical character width) of a frame as this:
	FRAME_COLUMN_WIDTH (f) = FONT_WIDTH (FRAME_FONT (f));
      and FONT_WIDTH is defined as this:
	#define FONT_WIDTH(f) ((f)->max_bounds.width)

As I thought, it is not using the width of tab in the font.  However,
I wonder if the problem is that the width of canonical character width
of the font does not equal the width of a space?

      reply	other threads:[~2005-06-14 22:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-12 13:22 Incorrect TAB width Bertrand Petit
2005-06-13 15:03 ` Richard Stallman
2005-06-13 19:10   ` Bertrand Petit
2005-06-14 22:31     ` Richard Stallman [this message]

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=E1DiJwe-0008PG-0V@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).