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: Re: set-face-font and custom-set-font, DejaVu, fonts for hebrew Date: Fri, 07 Aug 2015 07:43:16 +0000 Message-ID: <87k2t735nv.fsf@mat.ucm.es> References: <87oaj1zets.fsf@mat.ucm.es> <83bnf12zm8.fsf@gnu.org> 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 1438933439 27871 80.91.229.3 (7 Aug 2015 07:43:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 07:43:59 +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 Aug 07 09:43:50 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 1ZNcJc-00073c-C0 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2015 09:43:44 +0200 Original-Received: from localhost ([::1]:48269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNcJb-0008UQ-P6 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2015 03:43:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNcJR-0008Tt-KA for help-gnu-emacs@gnu.org; Fri, 07 Aug 2015 03:43:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNcJN-00059T-SQ for help-gnu-emacs@gnu.org; Fri, 07 Aug 2015 03:43:33 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNcJN-00059C-MO for help-gnu-emacs@gnu.org; Fri, 07 Aug 2015 03:43:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZNcJL-0006qa-4V for help-gnu-emacs@gnu.org; Fri, 07 Aug 2015 09:43:27 +0200 Original-Received: from 2.160.113.108 ([2.160.113.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Aug 2015 09:43:27 +0200 Original-Received: from oub by 2.160.113.108 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Aug 2015 09:43:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.160.113.108 Mail-Copies-To: never User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:H8gZlTvXMSfcZQwqjQl/Y7Ooms4= 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:106313 Archived-At: >>>>> "Eli" == Eli Zaretskii writes: >> >> 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. > Doesn't the following work for you? > (set-face-font 'default "DejaVu Sans Mono") It does, but the size is too big for my purposes, so I would need to add the fonts size as an option, but that seems not to be possible with set-face-font So I just have now (defun my-turn-bidi-on () "Just turn R2L on (`bidi-paragraph-direction' is NIL) and turn the hebrew (qwerty) keyboard on." (interactive) (setq bidi-paragraph-direction nil) (custom-set-faces '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :height 143 :width normal)))))) Which does what I want. > Btw, changing the font of the default face is not the recommended > procedure when all you want is to request that font for a certain > script. For that, define your fontset-default to use DejaVu Sans Mono > only for the Hebrew script. There are several examples of how to do > that in the "Modifying Fontsets" node of the Emacs manual. Right. I am getting used to the DejaVu font, at least for reading and writing mail, not so much for programming, so I will follow your advice and look into the manual. Thanks