[R] Kerning of italic text in plotmath
David Winsemius
dwinsemius at comcast.net
Tue May 15 22:35:41 CEST 2012
On May 15, 2012, at 3:23 PM, Fisher Dennis wrote:
> David
>
> You missed the point -- the issue was not the spacing between WORDS.
Or perhaps the point was obscured by your extraneous code.
> It was the spacing between LETTERS (as noted in the original email)
> Other suggestions would be helpful.
>
Kerning is not determined by plotmath parameters, but by the font
construction. Install a different font that behaves in the manner you
desire:
?plotmath
?pdfFonts
?quartzFonts
> quartzFonts("serif")
$serif
[1] "Times-Roman" "Times-Bold" "Times-Italic" "Times-
BoldItalic"
> quartzFonts("sans")
$sans
[1] "Helvetica" "Helvetica-Bold" "Helvetica-Oblique"
[4] "Helvetica-BoldOblique"
You do know how to use FontBook.app? It looks like HelveticaNeue-
LightItalic has tighter kerning than Helvetic-Oblique.
... or edit the one that is on your device:
http://lmgtfy.com/?q=editing+fonts+mac
--
david.
> Dennis
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone: 1-866-PLessThan (1-866-753-7784)
> Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
>
> On May 15, 2012, at 12:01 PM, David Winsemius wrote:
>
>>
>> On May 15, 2012, at 2:39 PM, Dennis Fisher wrote:
>>
>>> R 2.14.0
>>> OS X and Windows
>>>
>>> Colleagues
>>>
>>> I am trying to add some italicized text to a graphic using the
>>> code that appears below.
>>> For the italic text, kerning is not ideal -- spacing between
>>> letters is larger than I expected.
>>> Is there a simple solution to this?
>>
>> Use fewer tildes?
>>
>>
>>>
>>> Dennis
>>>
>>> plot(1, type="n", axes=F, xlab="", ylab="")
>>> mtext(side=3, line=-0, "Some Text")
>>> mtext(side=3, line=-1, expression(italic(Some) ~~ Text))
>>> mtext(side=3, line=-2, expression(italic(Some) ~~ italic(Text)))
>>>
>>>
>>>
>>> Dennis Fisher MD
>>> P < (The "P Less Than" Company)
>>
>> --
>>
>> David Winsemius, MD
>> West Hartford, CT
>>
>
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list