emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* default face org-column
@ 2013-05-30  2:43 Xiao-Yong Jin
  2013-06-01  6:17 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Xiao-Yong Jin @ 2013-05-30  2:43 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hi,

In org-faces.el,

(when (fboundp 'set-face-attribute)
  ;; Make sure that a fixed-width face is used when we have a column table.
  (set-face-attribute 'org-column nil
		      :height (face-attribute 'default :height)
		      :family (face-attribute 'default :family)))

I understand why you did this, but it is not quite logical, and somewhat invasive.  First, you certainly do not do this with org-table.  Then why org-column specifically?  Second, it overwrites the the value I set in the emacs theme or custom-set-faces.  Third, the end result is quite bizarre and odd-looking.  The "default" height and "default" family is some how not what I set for the frame, because the font family and size is set when emacs starts up and loaded the org-mode.  When I use set-frame-font or text-scale-adjust, org-column will stick with the old font family and size.  In fact, because the font family for org-column and org-column-title are different, the result is just bad.

I don't think it is only my problem, but I'll describe my setup for themes/font.  I use default-frame-alist to set the font family and size—The above code will not pick up this setup.  I use load-theme and enable-theme to load the theme I want.  Sometimes I use set-frame-font or text-scale-adjust to get a pleasantly looking texts temporary.  I usually use fixed-width font, so the above code is not doing any good.

For the time being, I commented out the above code.

Best,
Xiao-Yong


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

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

end of thread, other threads:[~2013-06-28 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30  2:43 default face org-column Xiao-Yong Jin
2013-06-01  6:17 ` Carsten Dominik
2013-06-28  4:55   ` Xiao-Yong Jin
2013-06-28 11:05     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).