GNU bug report logs - #18293
Emacs ignores the ":aspect=N" specification of xft fonts

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stefan Monnier <monnier@HIDDEN>; dated Tue, 19 Aug 2014 03:03:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 18293 <at> debbugs.gnu.org:


Received: (at 18293) by debbugs.gnu.org; 8 Sep 2014 02:11:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 07 22:11:58 2014
Received: from localhost ([127.0.0.1]:33083 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XQoQw-000091-0N
	for submit <at> debbugs.gnu.org; Sun, 07 Sep 2014 22:11:58 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19993)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1XQoQt-00008m-4U
 for 18293 <at> debbugs.gnu.org; Sun, 07 Sep 2014 22:11:55 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEViMQCzQSFBgNJIgM0hkXjnoHhDgEqRmBaoNMIQ
X-IPAS-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEViMQCzQSFBgNJIgM0hkXjnoHhDgEqRmBaoNMIQ
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="89047343"
Received: from 69-165-145-6.dsl.teksavvy.com (HELO ceviche.home)
 ([69.165.145.6])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 07 Sep 2014 22:11:49 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id EAB6F660C4; Sun,  7 Sep 2014 22:11:48 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Jan =?windows-1252?Q?Dj=E4rv?= <jan.h.d@HIDDEN>
Subject: Re: bug#18293: Emacs ignores the ":aspect=N" specification of xft
 fonts
Message-ID: <jwvmwaakgm7.fsf-monnier+emacsbugs@HIDDEN>
References: <jwviolpchd8.fsf@HIDDEN> <540C78F9.9060102@HIDDEN>
Date: Sun, 07 Sep 2014 22:11:48 -0400
In-Reply-To: <540C78F9.9060102@HIDDEN> ("Jan =?windows-1252?Q?Dj=E4rv?=
 =?windows-1252?Q?=22's?= message of "Sun, 07
 Sep 2014 17:25:45 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 18293
Cc: 18293 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>> % xterm -fa 'DejaVu Sans Mono:pixelsize=10'
>> % xterm -fa 'DejaVu Sans Mono:pixelsize=10:aspect=0.5'
>> See how ":aspect=0.5" changes the aspect ratio of characters.
> I tried Fedora and Mint, xterm doesn't do anything with aspect=...  It is
> exactly the same as without for any value.  What system do you run?

Debian testing.

In case it matters, I don't need this particular syntax to work.
I just need some way to change the aspect ratio of the font so that
the pixel size (both height and width) matches that of my default font.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18293; Package emacs. Full text available.

Message received at 18293 <at> debbugs.gnu.org:


Received: (at 18293) by debbugs.gnu.org; 7 Sep 2014 15:25:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 07 11:25:59 2014
Received: from localhost ([127.0.0.1]:32933 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XQeLl-00016K-Px
	for submit <at> debbugs.gnu.org; Sun, 07 Sep 2014 11:25:58 -0400
Received: from mailfe08.swip.net ([212.247.154.225]:49273 helo=swip.net)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jan.h.d@HIDDEN>) id 1XQeLh-00015z-Fg
 for 18293 <at> debbugs.gnu.org; Sun, 07 Sep 2014 11:25:55 -0400
X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00
Received: from hosdjarv.se (account mj138573@HIDDEN [46.59.42.57] verified)
 by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4)
 with ESMTPA id 531276694; Sun, 07 Sep 2014 17:25:45 +0200
Message-ID: <540C78F9.9060102@HIDDEN>
Date: Sun, 07 Sep 2014 17:25:45 +0200
From: =?windows-1252?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Stefan Monnier <monnier@HIDDEN>, 18293 <at> debbugs.gnu.org
Subject: Re: bug#18293: Emacs ignores the ":aspect=N" specification of xft
 fonts
References: <jwviolpchd8.fsf@HIDDEN>
In-Reply-To: <jwviolpchd8.fsf@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 18293
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Den 2014-08-19 05:01, Stefan Monnier skrev:
> Package: Emacs
> Version: 24.4.50
>
>
> Try:
>
>     % xterm -fa 'DejaVu Sans Mono:pixelsize=10'
>     % xterm -fa 'DejaVu Sans Mono:pixelsize=10:aspect=0.5'
>
> See how ":aspect=0.5" changes the aspect ratio of characters.

I tried Fedora and Mint, xterm doesn't do anything with aspect=...  It is 
exactly the same as without for any value.  What system do you run?

	Jan D.

>
> and then compare:
>
>     % emacs -Q -fn 'DejaVu Sans Mono:pixelsize=10'
>     % emacs -Q -fn 'DejaVu Sans Mono:pixelsize=10:aspect=0.5'
>
> and notice how Emacs does not honor the ":aspect=0.5" specification.
>
> In my particular use-case (which is probably not that uncommon in
> Emacs's mostly monospaced world), an even better feature would be to be
> able to say "choose `size' and `aspect' such that it uses the same
> number of pixels vertically and horizontally as the default face".
>
>
>          Stefan
>
>
>
>
> In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
>   of 2014-07-19 on pastel
> Repository revision: monnier@HIDDEN
> Windowing system distributor `The X.Org Foundation', version 11.0.11501000
> System Description:	Debian GNU/Linux 7.6 (wheezy)
>
> Configured using:
>   `configure -C --enable-checking --enable-check-lisp-object-type
>   'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign'
>   PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig'
>
> Configured features:
> XAW3D XPM JPEG TIFF GIF PNG SOUND GPM DBUS NOTIFY GNUTLS LIBXML2
> FREETYPE M17N_FLT LIBOTF XFT ZLIB
>
> Important settings:
>    value of $LANG: fr_CH.UTF-8
>    locale-coding-system: utf-8-unix
>
> Major mode: InactiveMinibuffer
>
> Minor modes in effect:
>    semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode semantic-idle-scheduler-mode)  S)))
>    dired-omit-mode: t
>    csv-field-index-mode: t
>    shell-dirtrack-mode: t
>    diff-auto-refine-mode: t
>    electric-pair-mode: t
>    url-handler-mode: t
>    global-reveal-mode: t
>    reveal-mode: t
>    auto-insert-mode: t
>    savehist-mode: t
>    minibuffer-electric-default-mode: t
>    electric-indent-mode: t
>    mouse-wheel-mode: t
>    global-prettify-symbols-mode: t
>    menu-bar-mode: t
>    file-name-shadow-mode: t
>    global-font-lock-mode: t
>    auto-composition-mode: t
>    auto-encryption-mode: t
>    auto-compression-mode: t
>    line-number-mode: t
>
> Recent input:
> <switch-frame> <switch-frame> <switch-frame> <help-echo>
> <switch-frame> <down-mouse-1> <mouse-movement> <mouse-1>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> a s
> p e c t = 0 . 5 <help-echo> <help-echo> <down-mouse-2>
> <switch-frame> <switch-frame> <left> <right> <right>
> <left> <left> <right> <right> <switch-frame> <switch-frame>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <help-echo> <switch-frame>
> <switch-frame> <switch-frame> M-x i e l m <return>
> <switch-frame> <switch-frame> C-h f s e t - f a c e
> - f o n <tab> <return> <help-echo> <switch-frame> <help-echo>
> <switch-frame> <switch-frame> <help-echo> <switch-frame>
> <switch-frame> <down-mouse-5> <mouse-5> <down-mouse-4>
> <mouse-4> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <help-echo> <help-echo> <down-mouse-2>
> <mouse-1> <switch-frame> <down-mouse-1> <mouse-1> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> C-e <right>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <help-echo> <switch-frame> <switch-frame>
> <switch-frame> ( s e t - f a c e - f o n <tab> SPC
> ' f o n t - l o - s t r - f <tab> SPC " D e j a V u
> SPC S a n s SPC M o n o C-e <return> M-p <left> <left>
> = <backspace> : p i x e l s i z e = 1 3 C-e <return>
> M-p <left> <left> <backspace> 0 C-e <return> M-p <left>
> <left> <backspace> 3 <return> M-p <left> <left> <backspace>
> 2 C-e <return> M-p <left> <left> : a s p e c t = 0
> . 5 C-e <return> <help-echo> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <help-echo> <switch-frame> <help-echo> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> M-x r e p o - e m - b <tab> <return
>>
>
> Recent messages:
> Creating customization setup...done
> Mark set
>
> Char: u (117, #o165, #x75) point=12366606 of 54209 (22817%) <12345678-12399887> column=24
> user-error: Node has no Up
> Mark saved where search started
> funcall-interactively: End of buffer
> Warning: turn-on-eldoc-mode is obsolete!
>
> Warning: turn-on-eldoc-mode is obsolete!
>
> Load-path shadows:
> /home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides /home/monnier/src/emacs/work/lisp/progmodes/ada-mode
>
> Features:
> (mail-extr emacsbug crm dabbrev bbdb-com bbdb timezone quail conf-mode
> reposition log-view vc-annotate tabify imenu man sh-script descr-text
> reftex-sel reftex-parse reftex-toc tramp-cache tramp-sh tramp
> tramp-compat tramp-loaddefs trampver sml-mode smie srecode/document
> semantic/doc srecode/semantic semantic/senator srecode/extract
> srecode/insert srecode/filters srecode/find srecode/map srecode/ctxt
> srecode/compile srecode/args ede/speedbar ede/files ede ede/base
> ede/auto ede/source eieio-speedbar eieio-custom srecode/dictionary
> srecode/table srecode informat texinfo bat-mode grep cmuscheme wdired
> ls-lisp find-dired dired-aux dired-x rect csv-mode parse-time sgml-mode
> two-column skeleton reftex-dcr reftex reftex-vars tex-mode compile shell
> latexenc view cal-china lunar solar cal-dst cal-bahai cal-islam
> cal-hebrew holidays hol-loaddefs cal-french diary-lib diary-loaddefs
> cal-move completion nnheader semantic/bovine/c semantic/db-mode
> semantic/decorate/include semantic/decorate/mode semantic/decorate pulse
> semantic/bovine/c-by semantic/lex-spp semantic/idle semantic/bovine/gcc
> semantic/dep semantic/bovine semantic/analyze/refs semantic/db-find
> semantic/db-ref semantic/analyze semantic/sort semantic/scope
> semantic/analyze/fcn semantic/db eieio-base semantic/ctxt
> semantic/format semantic/tag-ls semantic/find semantic/util-modes
> semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local
> cedet hideif cpp cmacexp cc-mode cc-fonts cc-awk cc-guess cc-menus
> cc-cmds cc-styles cc-align cc-engine cc-langs cc-vars cc-defs
> smerge-mode mule-diag ffap whitespace diff-mode image-file iimage
> epa-file epa derived epg epg-config misearch multi-isearch sort
> mule-util network-stream starttls tls mpc executable copyright xscheme
> warnings unsafep trace testcover shadow scheme re-builder profiler pcase
> inf-lisp ielm pp ert elp edebug cl-indent eieio-opt speedbar sb-image
> ezimage dframe org-clock org-colview org-table org-protocol org-mouse
> org-mobile org-agenda org-indent org-feed org-crypt org-capture
> org-attach vc-git org-id org-element org-rmail org-mhe org-irc org-info
> org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m org org-macro
> org-footnote org-pcomplete pcomplete org-list org-faces org-entities
> org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
> ob-keys ob-exp ob-comint comint ansi-color ob-core ob-eval org-compat
> org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs cus-edit
> cus-start cus-load wid-edit autorevert filenotify doc-view jka-compr
> image-mode debug filecache bug-reference log-edit message sendmail dired
> format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
> rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils
> mailheader ring pcvs-util add-log vc-bzr vc-sccs vc-svn vc-cvs vc-rcs
> vc-dir ewoc vc vc-dispatcher server noutline outline easy-mmode flyspell
> ispell eldoc checkdoc thingatpt help-mode advice elec-pair url-handlers
> url-parse auth-source eieio byte-opt bytecomp byte-compile cconv
> eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars
> reveal autoinsert proof-site proof-autoloads cl-macs cl gv pg-vars
> time-date savehist minibuf-eldef disp-table finder-inf edmacro kmacro
> cl-loaddefs cl-lib info easymenu package bbdb-autoloads agda2
> vm-autoloads tooltip electric uniquify ediff-hook vc-hooks
> lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
> fringe tabulated-list newcomment lisp-mode prog-mode register page
> menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
> syntax font-core frame cham georgian utf-8-lang misc-lang vietnamese
> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
> czech european ethiopic indian cyrillic chinese case-table epa-hook
> jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
> faces cus-face macroexp files text-properties overlay sha1 md5 base64
> format env code-pages mule custom widget hashtable-print-readable
> backquote make-network-process dbusbind inotify dynamic-setting
> font-render-setting x-toolkit x multi-tty emacs)
>
> Memory information:
> ((conses 8 868800 123937)
>   (symbols 24 54520 0) (miscs 20 18726 738) (strings 16 172745 19909)
>   (string-bytes 1 6163889)
>   (vectors 8 97200) (vector-slots 4 2966948 242924) (floats 8 1173 1182)
>   (intervals 28 73818 63)
>   (buffers 512 117) (heap 1024 1011592 2597))
>
>





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18293; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Aug 2014 03:02:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 18 23:02:13 2014
Received: from localhost ([127.0.0.1]:46806 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XJZga-0007Is-2G
	for submit <at> debbugs.gnu.org; Mon, 18 Aug 2014 23:02:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57785)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1XJZgV-0007Id-8Y
 for submit <at> debbugs.gnu.org; Mon, 18 Aug 2014 23:02:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1XJZgI-0006qL-FF
 for submit <at> debbugs.gnu.org; Mon, 18 Aug 2014 23:02:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50398)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1XJZgI-0006qH-Cb
 for submit <at> debbugs.gnu.org; Mon, 18 Aug 2014 23:01:54 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59498)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1XJZgB-0000qr-TI
 for bug-gnu-emacs@HIDDEN; Mon, 18 Aug 2014 23:01:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1XJZg5-0006pR-HY
 for bug-gnu-emacs@HIDDEN; Mon, 18 Aug 2014 23:01:47 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:62087)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1XJZg5-0006pD-AI
 for bug-gnu-emacs@HIDDEN; Mon, 18 Aug 2014 23:01:41 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjwIAIDvNVPAqyKr/2dsb2JhbABZgwYBOoMPqX8BjwOHOoEXF3SDAhMBSw8EIQEcDVWHW59/shoXjikBAUokhCAEjlScL4NMIYE1
X-IPAS-Result: AjwIAIDvNVPAqyKr/2dsb2JhbABZgwYBOoMPqX8BjwOHOoEXF3SDAhMBSw8EIQEcDVWHW59/shoXjikBAUokhCAEjlScL4NMIYE1
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="87137898"
Received: from 192-171-34-171.cpe.pppoe.ca (HELO pastel.home)
 ([192.171.34.171])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 18 Aug 2014 23:01:39 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id A3E5F615CF; Mon, 18 Aug 2014 23:01:39 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Emacs ignores the ":aspect=N" specification of xft fonts
Date: Mon, 18 Aug 2014 23:01:39 -0400
Message-ID: <jwviolpchd8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Package: Emacs
Version: 24.4.50


Try:

   % xterm -fa 'DejaVu Sans Mono:pixelsize=10'
   % xterm -fa 'DejaVu Sans Mono:pixelsize=10:aspect=0.5'

See how ":aspect=0.5" changes the aspect ratio of characters.

and then compare:

   % emacs -Q -fn 'DejaVu Sans Mono:pixelsize=10'
   % emacs -Q -fn 'DejaVu Sans Mono:pixelsize=10:aspect=0.5'

and notice how Emacs does not honor the ":aspect=0.5" specification.

In my particular use-case (which is probably not that uncommon in
Emacs's mostly monospaced world), an even better feature would be to be
able to say "choose `size' and `aspect' such that it uses the same
number of pixels vertically and horizontally as the default face".


        Stefan




In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-07-19 on pastel
Repository revision: monnier@HIDDEN
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description:	Debian GNU/Linux 7.6 (wheezy)

Configured using:
 `configure -C --enable-checking --enable-check-lisp-object-type
 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign'
 PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG SOUND GPM DBUS NOTIFY GNUTLS LIBXML2
FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: fr_CH.UTF-8
  locale-coding-system: utf-8-unix

Major mode: InactiveMinibuffer

Minor modes in effect:
  semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode semantic-idle-scheduler-mode)  S)))
  dired-omit-mode: t
  csv-field-index-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  electric-pair-mode: t
  url-handler-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  global-prettify-symbols-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<switch-frame> <switch-frame> <switch-frame> <help-echo> 
<switch-frame> <down-mouse-1> <mouse-movement> <mouse-1> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> a s 
p e c t = 0 . 5 <help-echo> <help-echo> <down-mouse-2> 
<switch-frame> <switch-frame> <left> <right> <right> 
<left> <left> <right> <right> <switch-frame> <switch-frame> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <help-echo> <switch-frame> 
<switch-frame> <switch-frame> M-x i e l m <return> 
<switch-frame> <switch-frame> C-h f s e t - f a c e 
- f o n <tab> <return> <help-echo> <switch-frame> <help-echo> 
<switch-frame> <switch-frame> <help-echo> <switch-frame> 
<switch-frame> <down-mouse-5> <mouse-5> <down-mouse-4> 
<mouse-4> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <help-echo> <help-echo> <down-mouse-2> 
<mouse-1> <switch-frame> <down-mouse-1> <mouse-1> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> C-e <right> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <help-echo> <switch-frame> <switch-frame> 
<switch-frame> ( s e t - f a c e - f o n <tab> SPC 
' f o n t - l o - s t r - f <tab> SPC " D e j a V u 
SPC S a n s SPC M o n o C-e <return> M-p <left> <left> 
= <backspace> : p i x e l s i z e = 1 3 C-e <return> 
M-p <left> <left> <backspace> 0 C-e <return> M-p <left> 
<left> <backspace> 3 <return> M-p <left> <left> <backspace> 
2 C-e <return> M-p <left> <left> : a s p e c t = 0 
. 5 C-e <return> <help-echo> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<help-echo> <switch-frame> <help-echo> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> M-x r e p o - e m - b <tab> <return
>

Recent messages:
Creating customization setup...done
Mark set

Char: u (117, #o165, #x75) point=12366606 of 54209 (22817%) <12345678-12399887> column=24
user-error: Node has no Up
Mark saved where search started
funcall-interactively: End of buffer
Warning: turn-on-eldoc-mode is obsolete!

Warning: turn-on-eldoc-mode is obsolete!

Load-path shadows:
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides /home/monnier/src/emacs/work/lisp/progmodes/ada-mode

Features:
(mail-extr emacsbug crm dabbrev bbdb-com bbdb timezone quail conf-mode
reposition log-view vc-annotate tabify imenu man sh-script descr-text
reftex-sel reftex-parse reftex-toc tramp-cache tramp-sh tramp
tramp-compat tramp-loaddefs trampver sml-mode smie srecode/document
semantic/doc srecode/semantic semantic/senator srecode/extract
srecode/insert srecode/filters srecode/find srecode/map srecode/ctxt
srecode/compile srecode/args ede/speedbar ede/files ede ede/base
ede/auto ede/source eieio-speedbar eieio-custom srecode/dictionary
srecode/table srecode informat texinfo bat-mode grep cmuscheme wdired
ls-lisp find-dired dired-aux dired-x rect csv-mode parse-time sgml-mode
two-column skeleton reftex-dcr reftex reftex-vars tex-mode compile shell
latexenc view cal-china lunar solar cal-dst cal-bahai cal-islam
cal-hebrew holidays hol-loaddefs cal-french diary-lib diary-loaddefs
cal-move completion nnheader semantic/bovine/c semantic/db-mode
semantic/decorate/include semantic/decorate/mode semantic/decorate pulse
semantic/bovine/c-by semantic/lex-spp semantic/idle semantic/bovine/gcc
semantic/dep semantic/bovine semantic/analyze/refs semantic/db-find
semantic/db-ref semantic/analyze semantic/sort semantic/scope
semantic/analyze/fcn semantic/db eieio-base semantic/ctxt
semantic/format semantic/tag-ls semantic/find semantic/util-modes
semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local
cedet hideif cpp cmacexp cc-mode cc-fonts cc-awk cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-langs cc-vars cc-defs
smerge-mode mule-diag ffap whitespace diff-mode image-file iimage
epa-file epa derived epg epg-config misearch multi-isearch sort
mule-util network-stream starttls tls mpc executable copyright xscheme
warnings unsafep trace testcover shadow scheme re-builder profiler pcase
inf-lisp ielm pp ert elp edebug cl-indent eieio-opt speedbar sb-image
ezimage dframe org-clock org-colview org-table org-protocol org-mouse
org-mobile org-agenda org-indent org-feed org-crypt org-capture
org-attach vc-git org-id org-element org-rmail org-mhe org-irc org-info
org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m org org-macro
org-footnote org-pcomplete pcomplete org-list org-faces org-entities
org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint comint ansi-color ob-core ob-eval org-compat
org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs cus-edit
cus-start cus-load wid-edit autorevert filenotify doc-view jka-compr
image-mode debug filecache bug-reference log-edit message sendmail dired
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils
mailheader ring pcvs-util add-log vc-bzr vc-sccs vc-svn vc-cvs vc-rcs
vc-dir ewoc vc vc-dispatcher server noutline outline easy-mmode flyspell
ispell eldoc checkdoc thingatpt help-mode advice elec-pair url-handlers
url-parse auth-source eieio byte-opt bytecomp byte-compile cconv
eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars
reveal autoinsert proof-site proof-autoloads cl-macs cl gv pg-vars
time-date savehist minibuf-eldef disp-table finder-inf edmacro kmacro
cl-loaddefs cl-lib info easymenu package bbdb-autoloads agda2
vm-autoloads tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind inotify dynamic-setting
font-render-setting x-toolkit x multi-tty emacs)

Memory information:
((conses 8 868800 123937)
 (symbols 24 54520 0) (miscs 20 18726 738) (strings 16 172745 19909)
 (string-bytes 1 6163889)
 (vectors 8 97200) (vector-slots 4 2966948 242924) (floats 8 1173 1182)
 (intervals 28 73818 63)
 (buffers 512 117) (heap 1024 1011592 2597))




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18293; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.