From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: set-face-font and custom-set-font, DejaVu, fonts for hebrew Date: Sat, 08 Aug 2015 10:18:47 -0400 Organization: A noiseless patient Spider Message-ID: References: <87oaj1zets.fsf@mat.ucm.es> <83bnf12zm8.fsf@gnu.org> <87k2t735nv.fsf@mat.ucm.es> <837fp7sdh1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439043620 11769 80.91.229.3 (8 Aug 2015 14:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2015 14:20:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 08 16:20:19 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 1ZO4yv-0007am-Ra for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Aug 2015 16:20:17 +0200 Original-Received: from localhost ([::1]:53005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO4yv-0006xs-7E for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Aug 2015 10:20:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Injection-Info: mx02.eternal-september.org; posting-host="ad871ce417d1fb2ea3c87e49e48c0ae1"; logging-data="22414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZSzTuE6PQBwNbyvUGIMmMFzmcIsm+dx0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:9c0B/gTnsQArX2FDXPLVYvlxmd0= Original-Xref: usenet.stanford.edu gnu.emacs.help:214068 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:106353 Archived-At: Uwe Brauer writes: > > Uwe Brauer writes: > > > It doesn't and that font is not bold. > > This is a bold font: > > > (set-face-font 'default "DejaVu Sans Mono-14:bold") > > > (set-face-font 'default "DejaVu Sans Mono-14") > > Thanks, > > but in my environment (set-face-font 'default "DejaVu Sans Mono-12:bold") gives > the font in 12pt with very thin letters while > (set-face-font 'default "DejaVu Sans Mono-14") > gives a larger font, with thicker letters > and Font changes are subject to the fonts installed on your machine. As far as I know, you get what the system considers the closest match. Whatever the system has for 14 point is going to look bolder (thicker) than a smaller sized font. For me, these fonts: (set-face-font 'default "DejaVu Sans Mono-12:bold") (set-face-font 'default "DejaVu Sans Mono-12") are different, but I have to be careful the order I test in. I think leaving the font weight unspecified leaves the current setting unchanged, but I tried using :normal without effect. > (set-face-font 'default "DejaVu Sans Mono-14:bold") > with still thicker letters. That is a bit confusing. > > So it boils down to: > what is the equivalent of > > (custom-set-faces > '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant > normal :weight normal :height 143 :width normal))))) > > Using set-face-font? (set-face-font 'default "DejaVu Sans Mono:bold:foundry=unknown:slant=normal:wieght=normal:height=143:width=normal") But when I test this, things like the height don't seem to do anything... Okay I did some testing, in a fresh start Emacs, that does change the font. You might want to do: export FC_DEBUG=1 (or 2) emacs then change the fonts. In the starting terminal you get information about the font matching process. -- Dan Espen