From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help Subject: set-face-font and custom-set-font, DejaVu, fonts for hebrew Date: Fri, 24 Jul 2015 16:43:27 +0000 Message-ID: <87oaj1zets.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1437756246 12087 80.91.229.3 (24 Jul 2015 16:44:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2015 16:44:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 18:43:58 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZIg4h-0004Va-9d for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2015 18:43:55 +0200 Original-Received: from localhost ([::1]:46087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIg4g-0007Ll-M3 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2015 12:43:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIg4R-0007LF-E6 for help-gnu-emacs@gnu.org; Fri, 24 Jul 2015 12:43:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIg4O-0002O9-8G for help-gnu-emacs@gnu.org; Fri, 24 Jul 2015 12:43:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIg4O-0002O2-2A for help-gnu-emacs@gnu.org; Fri, 24 Jul 2015 12:43:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZIg4M-0004HV-Mr for help-gnu-emacs@gnu.org; Fri, 24 Jul 2015 18:43:34 +0200 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jul 2015 18:43:34 +0200 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jul 2015 18:43:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 57 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es Mail-Copies-To: never User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:P6eIjbwkg73jkLtbgrRatO9+2PQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105971 Archived-At: Hello I am using Kubuntu 10.04 and GNU emacs 24.4 I am still used to the (old-fashion) setting of font, I find via xfontsel, for example (set-face-font 'default "-*-courier-bold-r-*-*-20-180-*-*-*-*-*-*") Now I also have tried out via the menu Options-->Set Default Font and I liked especially Deja Vu Sans Mono, but only for Hebrew, for European language I prefer courier bold, which I set as above via set-face-font When I set the Deja Vu font via Options-->Save Options the following is written into my custom file: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :height 143 :width normal))))) Now I want to modify a function, I use to turning on Hebrew writing which also switches the font. For example I have (defun my-turn-bidi-paragraph-direction-on () "Just start with to R2L `bidi-paragraph-direction' set and turn the hebrew (qwerty) keyboard on" (interactive) (setq bidi-paragraph-direction 'right-to-left) (set-face-font 'default "-etl-*-*-*-*-*-*-240-*-*-*-*-ISO8859-8") (setq org-mime-bidi-support t) (set-input-method "hebrew-phonetic-qwerty" t) (message "R2L on and the hebrew qwerty keyboard!")) However I want now to replace the «etl» font by the nicer Deja Vu font, but how? I cannot find the DejaVu font via xfontsel. I could of course use the (custom-set-faces '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :height 143 :width normal))))) But this seems to me a abuse of custom-set-faces? Thanks Uwe Brauer