eminent101 · 2022-07-31 16:56
Since the Emacs version upgrade to version 28 org-mode tables have become very small in size. Their font size has been reduced. Is there a way to tell Emacs to use the default font for the tables?
Minimal example that reproduces my issue:
* The quick brown fox jumps over the lazy dog (123 456 7890)
The quick brown fox jumps over the lazy dog (123 456 7890)
| A | B |
|----+------------------------------------------------------------|
| 10 | The quick brown fox jumps over the lazy dog (123 456 7890) |
| 20 | The quick brown fox jumps over the lazy dog (123 456 7890) |
| 30 | The quick brown fox jumps over the lazy dog (123 456 7890) |
How it looks on my Emacs: https://i.imgur.com/vnx6nN5.png
Here is the `C-u C-x =` output of the normal text above the table:
position: 88 of 473 (18%), column: 25
character: p (displayed as p) (codepoint 112, #o160, #x70)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x70
script: latin
syntax: w which means: word
category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 70" or "C-x 8 RET LATIN SMALL LETTER P"
buffer code: #x70
file code: #x70 (encoded by coding system utf-8-unix)
display: by this font (glyph code):
mac-ct:-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x53)
Character code properties: customize what to show
name: LATIN SMALL LETTER P
general-category: Ll (Letter, Lowercase)
decomposition: (112) ('p')
There are text properties here:
fontified t
Here is the `C-u C-x =` output of the text in the table:
position: 361 of 473 (76%), column: 26
character: o (displayed as o) (codepoint 111, #o157, #x6f)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x6F
script: latin
syntax: w which means: word
category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 6f" or "C-x 8 RET LATIN SMALL LETTER O"
buffer code: #x6F
file code: #x6F (encoded by coding system utf-8-unix)
display: by this font (glyph code):
mac-ct:-*-Courier-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x52)
Character code properties: customize what to show
name: LATIN SMALL LETTER O
general-category: Ll (Letter, Lowercase)
decomposition: (111) ('o')
There are text properties here:
face org-table
fontified t
Phil-Hudson · 2022-08-01 10:16
Can you reproduce the problem after launching `emacs -q`?
eminent101 · 2022-08-01 15:29
Yes, with `emacs -q`, org-mode normal text has this font:
mac-ct:-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x51)
But org-mode table has this font:
mac-ct:-*-Courier-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x10)
How can I make org-mode table use the same font as normal text?
Phil-Hudson · 2022-08-01 16:39
I have to say I'm not seeing anything like this, and it's several months since 28.1 was released, with no other users experiencing this issue (AFAIK), which makes me think this is something specific to your config. We could be sure if you were to post a minimal example Org file: if others see nothing different, the problem is with your config.
BTW, I deduce you are on a Mac; you should say so clearly in your question. It may or may not be relevant, but it's best practice anyway.
eminent101 · 2022-08-01 20:55
Minimal example that reproduces my issue:
* The quick brown fox jumps over the lazy dog (123 456 7890)
The quick brown fox jumps over the lazy dog (123 456 7890)
| A | B |
|----+------------------------------------------------------------|
| 10 | The quick brown fox jumps over the lazy dog (123 456 7890) |
| 20 | The quick brown fox jumps over the lazy dog (123 456 7890) |
| 30 | The quick brown fox jumps over the lazy dog (123 456 7890) |
How it looks on my Emacs: https://i.imgur.com/vnx6nN5.png
Phil-Hudson · 2022-08-01 23:15
I have Solarized Dark theme, and the only differences I see between the three faces are the foreground color of `org-level-1` and `org-table`. Same typeface, same weight, same size, same everything except color.
JDRiverRun · 2022-08-02 00:43
Try C-u C-x = on each area and look at the properties. Then click on org-table face and see what it specifies.
yantar92 · 2022-08-02 13:02
The reason is likely a monospace font being used for tables in Org that is shipped together with Emacs 28. This has been reverted in later version of Org. You can just install the latest Org from ELPA. The ELPA version will also be used with the next bugfix release of Emacs.
Or you can change the table font in your config to no inherit monospace.
eminent101 · 2022-08-03 07:50
Here is the `C-u C-x =` output of the normal text above the table:
position: 88 of 473 (18%), column: 25
character: p (displayed as p) (codepoint 112, #o160, #x70)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x70
script: latin
syntax: w which means: word
category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 70" or "C-x 8 RET LATIN SMALL LETTER P"
buffer code: #x70
file code: #x70 (encoded by coding system utf-8-unix)
display: by this font (glyph code):
mac-ct:-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x53)
Character code properties: customize what to show
name: LATIN SMALL LETTER P
general-category: Ll (Letter, Lowercase)
decomposition: (112) ('p')
There are text properties here:
fontified t
Here is the `C-u C-x =` output of the text in the table:
position: 361 of 473 (76%), column: 26
character: o (displayed as o) (codepoint 111, #o157, #x6f)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x6F
script: latin
syntax: w which means: word
category: .:Base, L:Strong L2R, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 6f" or "C-x 8 RET LATIN SMALL LETTER O"
buffer code: #x6F
file code: #x6F (encoded by coding system utf-8-unix)
display: by this font (glyph code):
mac-ct:-*-Courier-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x52)
Character code properties: customize what to show
name: LATIN SMALL LETTER O
general-category: Ll (Letter, Lowercase)
decomposition: (111) ('o')
There are text properties here:
face org-table
fontified t