unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53866: face-attribute giving bold for ultra-bold attribute
@ 2022-02-08  3:23 goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-08  5:54 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08  3:23 UTC (permalink / raw)
  To: 53866

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

I have called in my init file

(set-face-attribute 'default nil :height 160 :weight 'ultra-bold)

But (princ (face-attribute 'default :weight)) gives bold.

[-- Attachment #2: Type: text/html, Size: 727 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  3:23 bug#53866: face-attribute giving bold for ultra-bold attribute goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-08  5:54 ` Lars Ingebrigtsen
  2022-02-08  6:30   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-08  5:54 UTC (permalink / raw)
  To: goncholden; +Cc: 53866

goncholden <goncholden@protonmail.com> writes:

> I have called in my init file
>
>   (set-face-attribute 'default nil :height 160 :weight 'ultra-bold)
>
> But (princ (face-attribute 'default :weight)) gives bold.

Please use `M-x report-emacs-bug' when reporting bugs so that we can see
the information about your Emacs build and OS.

Does the font you use have an ultra-bold variation?  Very few fonts have
that weight (but many have the "black" weight, which is heavier).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  5:54 ` Lars Ingebrigtsen
@ 2022-02-08  6:30   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-08  6:42     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08  6:30 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 53866

------- Original Message -------
On Tuesday, February 8th, 2022 at 5:54 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> goncholden goncholden@protonmail.com writes:
>
> > I have called in my init file
> > (set-face-attribute 'default nil :height 160 :weight 'ultra-bold)
> > But (princ (face-attribute 'default :weight)) gives bold.
>
> Please use `M-x report-emacs-bug' when reporting bugs so that we can see
> the information about your Emacs build and OS.
>
> Does the font you use have an ultra-bold variation? Very few fonts have
> that weight (but many have the "black" weight, which is heavier).

Now that you mention it, I do not know exactly what font emacs is using.
I have modus-themes activated.  Are there monospace fonts which go to
ultra-bold?  I do not know whether emacs should report about whether
a weight setup fails for the font being used.

In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32) of
2021-09-28 built on fuckup Windowing system distributor 'The X.Org Foundation',
version 11.0.11906000 System Description: Trisquel GNU/Linux Etiona (9.0)

Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS GLIB NOTIFY INOTIFY GNUTLS
FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 XDBE XIM MODULES
THREADS PDUMPER GMP

Important settings:
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_NUMERIC: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  global-company-mode: t
  company-mode: t
  shell-dirtrack-mode: t
  outline-minor-mode: t
  icomplete-vertical-mode: t
  icomplete-mode: t
  richerenkov-minor-mode: t
  save-place-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
epg epg-config gnus-util rmail rmail-loaddefs text-property-search
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils face-remap company-dabbrev-code company-dabbrev company
flight-guidance flight daphne rx faddeev-texi persepolis-fort
volterra-elisp foramifer-shell org-tempo tempo ob-C ob-latex ob-awk
ob-shell shell ob-calc calc-store calc-trail calc-ext calc calc-loaddefs
calc-macs ob-lisp ob-fortran cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs ob-org matryoshka cl org ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src
ob-comint org-pcomplete pcomplete org-list org-faces org-entities
time-date org-version ob-emacs-lisp ob-core ob-eval org-table ol
org-keys org-compat org-macs org-loaddefs format-spec find-func cal-menu
calendar cal-loaddefs pachamama-org noutline outline shell-outliner
texi-outliner texinfo fort-outliner fortran f90 cus-edit cus-start
cus-load wid-edit elisp-outliner pterosaur-outliner ziggurat-protowrit
toromona-recluder checkdoc lisp-mnt thingatpt counsel xdg advice xref
project dired dired-loaddefs compile comint ansi-color swiper cl-extra
help-mode ivy derived delsel ring ivy-faces ivy-overlay colir color
orderless icomplete-vertical icomplete contrib teleport richerenkov
easy-mmode diamer marshall saveplace speedbar sb-image ezimage dframe
modus-vivendi-theme modus-operandi-theme modus-themes typex edmacro
kmacro pcase package easymenu browse-url url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded 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 threads inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 374514 14523)
 (symbols 48 38891 2)
 (strings 32 129711 4054)
 (string-bytes 1 3645382)
 (vectors 16 30391)
 (vector-slots 8 754256 22764)
 (floats 8 329 86)
 (intervals 56 436 0)
 (buffers 1000 14))





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  6:30   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-08  6:42     ` Lars Ingebrigtsen
  2022-02-08  6:56       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-08  6:42 UTC (permalink / raw)
  To: goncholden; +Cc: 53866

goncholden <goncholden@protonmail.com> writes:

> Now that you mention it, I do not know exactly what font emacs is using.
> I have modus-themes activated.  Are there monospace fonts which go to
> ultra-bold?

I have no such fonts.  But Sauce Code Pro, for instance, has a Black
variation, which is heavier than ultra-bold.

`C-u C-x =' will tell you what font you're using.

> I do not know whether emacs should report about whether
> a weight setup fails for the font being used.

Emacs chooses the nearest variation it can find -- it's very common to
not have exactly the variety requested installed, so if Emacs were to
complain about this, it'd be a lot of noise.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  6:42     ` Lars Ingebrigtsen
@ 2022-02-08  6:56       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-08  8:26         ` Stephen Berman
  2022-02-09  7:56         ` Lars Ingebrigtsen
  0 siblings, 2 replies; 12+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08  6:56 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 53866


------- Original Message -------
On Tuesday, February 8th, 2022 at 6:42 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> goncholden goncholden@protonmail.com writes:

> > Now that you mention it, I do not know exactly what font emacs is using.
> > I have modus-themes activated. Are there monospace fonts which go to
> > ultra-bold?

> I have no such fonts. But Sauce Code Pro, for instance, has a Black
> variation, which is heavier than ultra-bold.

Is there an easy way to find a font supporting some weight attribute.  Currently,
it is quite difficult to know what font one can use.

> `C-u C-x =' will tell you what font you're using.

I just get "point=146 of 145 (EOB) column=0"

> > I do not know whether emacs should report about whether
> > a weight setup fails for the font being used.

> Emacs chooses the nearest variation it can find -- it's very common to
> not have exactly the variety requested installed, so if Emacs were to
> complain about this, it'd be a lot of noise.

Ok





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  6:56       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-08  8:26         ` Stephen Berman
  2022-02-08 17:00           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-09  7:56         ` Lars Ingebrigtsen
  1 sibling, 1 reply; 12+ messages in thread
From: Stephen Berman @ 2022-02-08  8:26 UTC (permalink / raw)
  To: 53866; +Cc: larsi, goncholden

On Tue, 08 Feb 2022 06:56:12 +0000 goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:

> ------- Original Message -------
> On Tuesday, February 8th, 2022 at 6:42 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> goncholden goncholden@protonmail.com writes:
>
> Is there an easy way to find a font supporting some weight attribute.  Currently,
> it is quite difficult to know what font one can use.
>
>> `C-u C-x =' will tell you what font you're using.
>
> I just get "point=146 of 145 (EOB) column=0"

Point has to "see" a character for that command to give information
about it, so execute it with point not at the end of the buffer
(including an empty buffer).

Steve Berman





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  8:26         ` Stephen Berman
@ 2022-02-08 17:00           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-08 19:38             ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08 17:00 UTC (permalink / raw)
  To: Stephen Berman; +Cc: larsi, 53866



Sent with ProtonMail Secure Email.

------- Original Message -------

On Tuesday, February 8th, 2022 at 8:26 AM, Stephen Berman <stephen.berman@gmx.net> wrote:

> On Tue, 08 Feb 2022 06:56:12 +0000 goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors" bug-gnu-emacs@gnu.org wrote:
>
> > ------- Original Message -------
> >
> > On Tuesday, February 8th, 2022 at 6:42 AM, Lars Ingebrigtsen larsi@gnus.org wrote:
> >
> > > goncholden goncholden@protonmail.com writes:
> >
> > Is there an easy way to find a font supporting some weight attribute. Currently,
> >
> > it is quite difficult to know what font one can use.
> >
> > > `C-u C-x =' will tell you what font you're using.
> >
> > I just get "point=146 of 145 (EOB) column=0"
>
> Point has to "see" a character for that command to give information
>
> about it, so execute it with point not at the end of the buffer
>
> (including an empty buffer).
>
> Steve Berman

It is very confusing.  I loaded a random elisp file and run the command in the middle of the buffer
to get

---------

Type C-x 1 to delete the help window, C-M-v to scroll help.
Char: C-j (10, #o12, #xa) point=11866 of 22678 (52%) column=0
End of buffer

             position: 11866 of 22678 (52%), column: 0
            character: C-j (displayed as C-j) (codepoint 10, #o12, #xa)
              charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x0A
               script: latin
               syntax: > 	which means: endcomment
             to input: type "C-x 8 RET a" or "C-x 8 RET LINE FEED (LF)"
          buffer code: #x0A
            file code: #x0A (encoded by coding system prefer-utf-8-unix)
              display: no font available

Character code properties: customize what to show
  old-name: LINE FEED (LF)
  general-category: Cc (Other, Control)

There are text properties here:
  fontified            nil






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08 17:00           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-08 19:38             ` Eli Zaretskii
  2022-02-08 22:34               ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-02-08 19:38 UTC (permalink / raw)
  To: goncholden; +Cc: larsi, stephen.berman, 53866

> Cc: larsi@gnus.org, 53866@debbugs.gnu.org
> Date: Tue, 08 Feb 2022 17:00:38 +0000
> From:  goncholden via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> It is very confusing.  I loaded a random elisp file and run the command in the middle of the buffer
> to get
> 
> ---------
> 
> Type C-x 1 to delete the help window, C-M-v to scroll help.
> Char: C-j (10, #o12, #xa) point=11866 of 22678 (52%) column=0
> End of buffer
> 
>              position: 11866 of 22678 (52%), column: 0
>             character: C-j (displayed as C-j) (codepoint 10, #o12, #xa)
>               charset: ascii (ASCII (ISO646 IRV))
> code point in charset: 0x0A
>                script: latin
>                syntax: > 	which means: endcomment
>              to input: type "C-x 8 RET a" or "C-x 8 RET LINE FEED (LF)"
>           buffer code: #x0A
>             file code: #x0A (encoded by coding system prefer-utf-8-unix)
>               display: no font available

Put the cursor on a character that has a visible glyph.  You have put
it on a newline, which leaves no trace on display, so you get "no
font" for that.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08 19:38             ` Eli Zaretskii
@ 2022-02-08 22:34               ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-09  3:30                 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08 22:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, stephen.berman, 53866


------- Original Message -------
On Tuesday, February 8th, 2022 at 7:38 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Cc: larsi@gnus.org, 53866@debbugs.gnu.org
> Date: Tue, 08 Feb 2022 17:00:38 +0000
> From: goncholden via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" bug-gnu-emacs@gnu.org
>
> It is very confusing. I loaded a random elisp file and run the command in the middle of the buffer
>
> to get
>
> Type C-x 1 to delete the help window, C-M-v to scroll help.
>
> Char: C-j (10, #o12, #xa) point=11866 of 22678 (52%) column=0
>
> End of buffer
>
>              position: 11866 of 22678 (52%), column: 0
>             character: C-j (displayed as C-j) (codepoint 10, #o12, #xa)
>               charset: ascii (ASCII (ISO646 IRV))
>
>
> code point in charset: 0x0A
> script: latin
> syntax: > which means: endcomment
> to input: type "C-x 8 RET a" or "C-x 8 RET LINE FEED (LF)"
> buffer code: #x0A
> file code: #x0A (encoded by coding system prefer-utf-8-unix)
> display: no font available

Put the cursor on a character that has a visible glyph. You have put
it on a newline, which leaves no trace on display, so you get "no
font" for that.

Now I understand what I have to do.  I went on a word and I get the
font name when I execute the command C-u C-x =

Is there a way emacs can list fonts that closely match some attribute
like ultra-bold.  Deos emacs know the list of fonts one could use?







^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08 22:34               ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-09  3:30                 ` Eli Zaretskii
  2022-02-09  3:44                   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-02-09  3:30 UTC (permalink / raw)
  To: goncholden; +Cc: larsi, stephen.berman, 53866

> Date: Tue, 08 Feb 2022 22:34:39 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: larsi@gnus.org, stephen.berman@gmx.net, 53866@debbugs.gnu.org
> 
> Is there a way emacs can list fonts that closely match some attribute
> like ultra-bold.

We don't have such a command, but it could be written if needed.

However, you should really use the dedicated font tools for exploring
the fonts on your system, and Emacs is not such a tool.

> Deos emacs know the list of fonts one could use?

It does, but only in general.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-09  3:30                 ` Eli Zaretskii
@ 2022-02-09  3:44                   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 12+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-09  3:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, stephen.berman, 53866

------- Original Message -------
On Wednesday, February 9th, 2022 at 3:30 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Tue, 08 Feb 2022 22:34:39 +0000
> From: goncholden goncholden@protonmail.com
> Cc: larsi@gnus.org, stephen.berman@gmx.net, 53866@debbugs.gnu.org
>
> Is there a way emacs can list fonts that closely match some attribute
> like ultra-bold.

We don't have such a command, but it could be written if needed.

However, you should really use the dedicated font tools for exploring

the fonts on your system, and Emacs is not such a tool.

> Does emacs know the list of fonts one could use?

It does, but only in general.

Could emacs describe (with a few examples) some good tools to help users define
the font they would want to use.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#53866: face-attribute giving bold for ultra-bold attribute
  2022-02-08  6:56       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-08  8:26         ` Stephen Berman
@ 2022-02-09  7:56         ` Lars Ingebrigtsen
  1 sibling, 0 replies; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-09  7:56 UTC (permalink / raw)
  To: goncholden; +Cc: 53866

So this doesn't seem to be a bug in Emacs, and I'm therefore closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-02-09  7:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08  3:23 bug#53866: face-attribute giving bold for ultra-bold attribute goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08  5:54 ` Lars Ingebrigtsen
2022-02-08  6:30   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08  6:42     ` Lars Ingebrigtsen
2022-02-08  6:56       ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08  8:26         ` Stephen Berman
2022-02-08 17:00           ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08 19:38             ` Eli Zaretskii
2022-02-08 22:34               ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-09  3:30                 ` Eli Zaretskii
2022-02-09  3:44                   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-09  7:56         ` Lars Ingebrigtsen

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