all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System)
To: Jason Rumney <jasonr@gnu.org>
Subject: bug#119: marked as done (modify-frame-parameters in Emacs 23 for  fonts)
Date: Thu, 01 Jan 2009 02:20:04 +0000	[thread overview]
Message-ID: <handler.119.D1562.12307758834159.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 000201c8978c$69739fe0$0200a8c0@us.oracle.com

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]


Your message dated Thu, 01 Jan 2009 10:10:49 +0800
with message-id <495C2629.40504@gnu.org>
and subject line Re: bug#1562: 23.0.60; modify-frame-parameters in Emacs 23 for fonts
has caused the Emacs bug report #1562,
regarding modify-frame-parameters in Emacs 23 for fonts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
1562: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1562
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 8038 bytes --]

From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: modify-frame-parameters in Emacs 23 for fonts
Date: Sat, 5 Apr 2008 19:17:49 -0700
Message-ID: <000201c8978c$69739fe0$0200a8c0@us.oracle.com>

I'm using this: GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-04-04 on
LENNART-69DE564.

(frame-parameter nil 'font) ->
"-*-Lucida Console-normal-r-*-*-14-*-96-96-c-*-iso8859-1"

(modify-frame-parameters
 nil
 (list
  (cons 
   'font
   "-*-Lucida Console-normal-r-*-*-15-*-96-96-c-*-iso8859-1")))

(frame-parameter nil 'font) ->
"-outline-lucida console-normal-roman-normal-mono-15-*-*-*-*-*-fontset-startup"

What's that about? In Emacs 20, 21, and 22, the result is just the font I
specified.

I have code that zooms frames (font size). I change just the point size in the
font spec, using `x-decompose-font-name' and `x-compose-font-name'. I check that
the result is a legitimate font using `x-list-fonts'. If not, I increase or
decrease the increment until I find the font that works with the closest size.

[Yes, I know there are other ways to adjust font size, but I've found that this
method is flexible for users and provides certain benefits.]

My code no longer works without change, because after one call to
`modify-frame-parameters' the font is no longer something recognized by
`x-list-fonts'. I can comment out the part that iterates until it finds a size
that works (recognized by `x-list-fonts'). That works, but I'm still curious
about this. (Is there perhaps a bug in `x-list-fonts' or in
`modify-frame-parameters'?)

I couldn't find anything that helps me understand this in the manuals. I haven't
tried to dig through any code. Can someone light my lantern about this?

I looked in NEWS also, and saw something about a font backend (I didn't follow
the threads here about that). But I couldn't find anything in the Elisp or Emacs
manuals about "backend" or "back?end", except for version-control back ends.

A NEWS entry also says this: "the configure option `--disable-font-backend'
(also available as a run-time option)." But I can't find any such option
(variable) with `backend' or `back-end' in its name (except for
`vc-handled-backends'). I see, in both NEWS and in my frames, a parameter named
`font-backend', but I have no idea what it is. For me, its value is
(font-backend uniscribe gdi), FWIW.

Finding the function `fontp' mentioned in NEWS (but not in the Elisp manual,
alas), I also tried that in place of `x-list-fonts'. But it too does not
indicate that "-outline-lucida
console-normal-roman-normal-mono-15-*-*-*-*-*-fontset-startup" is a legitimate
font.

I see font terms in NEWS that I don't see explained in the manual: font-entity
object, font-spec object, font property value. I also see functions mentioned,
such as `font-font', that my Emacs does not recognize. Are they perhaps only for
X?

This whole area is a murky one, for me. Do others feel that this stuff is
explained well enough - in either the manuals or NEWS? Am I the only dummy about
this? Is this is a hidden subject for some secret club? ;-) If not, how about
some explanation?






[-- Attachment #3: Type: message/rfc822, Size: 3379 bytes --]

From: Jason Rumney <jasonr@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 1562-done@emacsbugs.donarmstrong.com
Subject: Re: bug#1562: 23.0.60; modify-frame-parameters in Emacs 23 for fonts
Date: Thu, 01 Jan 2009 10:10:49 +0800
Message-ID: <495C2629.40504@gnu.org>

Drew Adams wrote:
> After loading, (frame-parameter nil 'font) gives
> "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-iso8859-1"
>
> Then do `C-u 5 M-x enlarge-font'. (frame-parameter nil 'font) gives
> "-outline-Lucida Console-normal-normal-normal-mono-19-*-*-*-c-*-iso8859-1"
> which is correct.
>
> Then do `C-u -5 M-x enlarge-font'. (frame-parameter nil 'font) gives
> "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-fontset-auto1"
> which is NOT correct.
>   

I have fixed this now, x_new_font in w32term.c had not been updated in 
line with xterm.c.



  parent reply	other threads:[~2009-01-01  2:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4850FC42.7060305@gnu.org>
2008-04-06  2:17 ` modify-frame-parameters in Emacs 23 for fonts Drew Adams
     [not found]   ` <handler.119.C.121326703431170.notifdonectrl.0@emacsbugs.donarmstrong.com>
2008-06-12 14:50     ` bug#119 acknowledged by developer (Closing fixed bugs) Drew Adams
2008-06-12 16:11       ` Subject of closure notifications sent to submitters [Re: bug#119 acknowledged by developer (Closing fixed bugs)] Don Armstrong
2008-06-12 16:48         ` Subject of closure notifications sent to submitters [Re: bug#119acknowledged " Drew Adams
2008-06-12 17:27           ` Don Armstrong
2008-06-12 18:24             ` Subject of closure notifications sent to submitters [Re:bug#119acknowledged " Drew Adams
2008-06-12 18:32               ` Don Armstrong
2009-01-01  2:20   ` Emacs bug Tracking System [this message]
2008-06-12 10:45 ` Processed: Closing fixed bugs Emacs bug Tracking System
     [not found] <495C2629.40504@gnu.org>
2008-12-13 19:02 ` bug#1562: 23.0.60; modify-frame-parameters in Emacs 23 for fonts Drew Adams
2008-12-13 20:46   ` Glenn Morris
2008-12-13 21:21     ` Drew Adams
2008-12-14 14:48   ` Jason Rumney
2008-12-14 17:30     ` Drew Adams
2009-01-01  2:20   ` bug#1562: marked as done (23.0.60; modify-frame-parameters in Emacs 23 for fonts) Emacs bug Tracking System

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

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

  git send-email \
    --in-reply-to=handler.119.D1562.12307758834159.ackdone@emacsbugs.donarmstrong.com \
    --to=owner@emacsbugs.donarmstrong.com \
    --cc=jasonr@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.