[Tikzdevice-bugs] Arial and Other Things

Cameron Bracken cameron.bracken at gmail.com
Fri Jul 30 20:34:37 CEST 2010


Hi Lorenzo,

I hacked together a quick fix that forces the use of helvetica in the
metic calculations,

http://github.com/cameronbracken/rtikzdevice/tree/fonts

You will need to use the following:

    #either set to NULL to recalculate the metrics everytime (inefficient)
    #OR set to a specific file e.g. '~/.tikzMetricsHelvetica'
    #just make sure you are not using an old one
options( tikzMetricsDictionary = NULL )

library(tikzDevice)

    #temporary option to force the use of helvetica in metric calcualtions
options(tikzUseHelvetica=TRUE)
    #still need to select helvetica for the displayed font
options(tikzLatexPackages=c(getOption("tikzLatexPackages"),'\\renewcommand{\\rmdefault}{phv}\n'))

###...ploting stuff

Thanks for your patience, let me know if you have any problems. I
would not expect this to stay the same in the future, but we will keep
you in the loop with future changes.

-Cameron



On Fri, Jul 30, 2010 at 6:29 AM, Lorenzo Isella
<lorenzo.isella at gmail.com> wrote:
> I see. Would it be possible to find out more about how you fixed the
> plot (i.e.: is there a patch or something I can use as a temporary quick
> and dirty solution)?
> Last but not least: once this glitch has been ironed out, will it be
> communicated via this mailing list?
> Cheers and have a nice weekend
>
> Lorenzo


More information about the Tikzdevice-bugs mailing list