unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 10178@debbugs.gnu.org
Subject: bug#10178: 24.0.92; emacs -q frame too short for fancy splash image
Date: Sat, 10 Dec 2011 16:13:20 +0100	[thread overview]
Message-ID: <87ehwctq7j.fsf@escher.fritz.box> (raw)
In-Reply-To: <7A28C1C8-7C61-4723-B1DA-0C8003561CA6@swipnet.se> ("Jan \=\?utf-8\?Q\?Dj\=C3\=A4rv\=22's\?\= message of "Sat, 10 Dec 2011 14:13:25 +0100")

On Sat, 10 Dec 2011 14:13:25 +0100 Jan Djärv <jan.h.d@swipnet.se> wrote:

> 7 dec 2011 kl. 22:54 skrev Stephen Berman:
[...]
>> I just installed my GNU/Linux distribution's (openSUSE 12.1) Emacs 23.3,
>> and it shows the same behavior as my build from the trunk: no fancy splash
>> image with -q, frame-height = 35, image-size returns (38.57142857142857
>> . 15.5).  With Emacs 23.2 from openSUSE 11.4, emacs -q does display the
>> splash image.  Could this have to do with the GTK+ version (2.24.7 in
>> openSUSE 12.1)?
>
> I doubt it, as Gtk+ is not used for any font metrics or image handling (except
> for tool bar images).  But different versions of freetype2 and/or the image
> libraries might influence this.
>
> With your font (-unknown-DejaVu Sans
> Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1, aka monospace-9) i get:
>
> (38.57142857142857 . 14.466666666666667)
>
> So the width is the same as what you get, but the height differs.  Strange.
>
> Does (image-size (create-image "splash.xpm") t) return (270 . 217) ?

Yes.

> Go to *scratch* and evaluate (assuming there is a character at pos 1):
>
> (font-info (font-at 1))
>
> It should return:
>
> ["-unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1"
> "DejaVu Sans
> Mono:pixelsize=12:foundry=unknown:weight=normal:slant=normal:width=normal:spacing=100:scalable=true"
> 12 15 0 0 0]

I get:

["-unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1" "DejaVu Sans Mono:pixelsize=12:foundry=unknown:weight=normal:slant=normal:width=normal:spacing=100:scalable=true" 12 14 0 0 0]

> 15 is the font height (i.e. 217 / 15 = 14.466666...).  Do you have that?

No, but 217/14 = 15.5, which is what image-size shows here.

I have DejaVu version 2.33, Freetype2 version 2.4.7, and
xorg-x11-libXpm-devel version 7.6.

Steve Berman





  reply	other threads:[~2011-12-10 15:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01  8:45 bug#10178: 24.0.92; emacs -q frame too short for fancy splash image Stephen Berman
2011-12-04 13:42 ` Jan Djärv
2011-12-04 14:09   ` Stephen Berman
2011-12-07 16:47     ` Juri Linkov
2011-12-07 21:54       ` Stephen Berman
2011-12-10 13:13         ` Jan Djärv
2011-12-10 15:13           ` Stephen Berman [this message]
2011-12-11 12:00             ` Jan Djärv
2011-12-11 16:40               ` Stephen Berman
2011-12-15 21:27                 ` Juri Linkov
2011-12-16  6:29                   ` Jan Djärv
2012-01-07  9:15                     ` Chong Yidong
2019-09-26 17:35   ` Lars Ingebrigtsen

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=87ehwctq7j.fsf@escher.fritz.box \
    --to=stephen.berman@gmx.net \
    --cc=10178@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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).