From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: org-babel source code :fonts serif not working Date: Thu, 26 Mar 2015 11:15:23 -0700 Message-ID: References: <182B46AC-4D37-45AA-A576-8F3569B5080F@agrarianresearch.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbCJY-0005C9-S2 for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 14:15:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbCJV-0002va-HK for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 14:15:32 -0400 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:18460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbCJV-0002vA-1R for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 14:15:29 -0400 In-Reply-To: <182B46AC-4D37-45AA-A576-8F3569B5080F@agrarianresearch.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vikas Rawal Cc: org-mode mailing list On Thu, 26 Mar 2015, Vikas Rawal wrote: > The following code does not produce image with serif fonts for me. It > used to work earlier but it seems the behaviour has changed. Could > anyone confirm. AFAICS, it does not work in R. FWIW, the code that Babel sends to R is (after some formatting): #+BEGIN_SRC R png(filename="filename.png",width=1200,height=700,fonts="serif") tryCatch({ <<<< your plot goes here >>>> }, error=function(e){ plot(x=-1:1, y=-1:1, type='n', xlab='', ylab='', axes=FALSE) text(x=0, y=0, labels=e$message, col='red') paste('ERROR', e$message, sep=' : ')}) dev.off() #+END_SRC If you can get that or something like to work in R, report back here. Otherwise take this to one of the R lists. Also, I note that the filename "filename.png" seems troublesome even apart from the font issue. I do not have time to run down why that might be. Chuck > > #+BEGIN_SRC R :results output graphics :exports results :file filename.png :width 1200 :height 700 :fonts serif > <> > #+END_SRC >