From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Garvin Newsgroups: gmane.emacs.help Subject: How to load a font from a file? Date: Thu, 29 Jan 2009 09:56:53 -0800 (PST) Organization: http://groups.google.com Message-ID: <47b358c1-f314-442e-a263-b9a7b8d1a377@d36g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233289451 15876 80.91.229.12 (30 Jan 2009 04:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2009 04:24:11 +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 Jan 30 05:25:25 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LSkwV-0001Ch-EL for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2009 05:25:23 +0100 Original-Received: from localhost ([127.0.0.1]:44152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSkvD-0002lK-79 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 23:24:03 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d36g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 7 Original-NNTP-Posting-Host: 146.113.67.152 Original-X-Trace: posting.google.com 1233251813 14673 127.0.0.1 (29 Jan 2009 17:56:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Jan 2009 17:56:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d36g2000prf.googlegroups.com; posting-host=146.113.67.152; posting-account=qSH2cQoAAACciL8XHVYvHB0-WNYnOEYN User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166443 X-Mailman-Approved-At: Thu, 29 Jan 2009 23:22:01 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61771 Archived-At: In the interest of making my emacs setup more portable, I'd like to be able to set the current font by specifying a file rather than a font name, i.e. "Load ~/config/myfont.ttf and use size 12". Is there a way to do that in my .emacs? All the instructions I've found assume the font is already installed on the system. I'm using the XFT support on Linux, so a linux specific hack would be OK but I'd prefer something that would work on all targets.