Function: org-get-level-face
org-get-level-face is a byte-compiled function defined in org.el.gz.
Signature
(org-get-level-face N)
Documentation
Get the right face for match N in font-lock matching of headlines.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-get-level-face (n)
"Get the right face for match N in font-lock matching of headlines."
(let* ((org-l0 (- (match-end 2) (match-beginning 1) 1))
(org-l (if org-odd-levels-only (1+ (/ org-l0 2)) org-l0))
(org-f (if org-cycle-level-faces
(nth (% (1- org-l) org-n-level-faces) org-level-faces)
(nth (1- (min org-l org-n-level-faces)) org-level-faces))))
(cond
((eq n 1) (if org-hide-leading-stars 'org-hide org-f))
((eq n 2) org-f)
(t (unless org-level-color-stars-only org-f)))))