Quantcast

Kerning of italic text in plotmath

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Kerning of italic text in plotmath

Fisher Dennis
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?

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)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Kerning of italic text in plotmath

David Winsemius

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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Kerning of italic text in plotmath

Fisher Dennis
David

You missed the point -- the issue was not the spacing between WORDS.  It was the spacing between LETTERS (as noted in the original email)
Other suggestions would be helpful.

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
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Kerning of italic text in plotmath

baptiste auguie-5
For better typography, try tikzDevice, it uses LaTeX to render the text.

b.

On 16 May 2012 07:23, Fisher Dennis <[hidden email]> wrote:

> David
>
> You missed the point -- the issue was not the spacing between WORDS.  It was the spacing between LETTERS (as noted in the original email)
> Other suggestions would be helpful.
>
> 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
>>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Kerning of italic text in plotmath

Bert Gunter
In reply to this post by Fisher Dennis
I believe that this depends on the font in use and the graphics engine
doing the rendering, which I believe may depend on the OS. You
supplied none of this information -- it _is_ asked for in the posting
guide --  but you might try changing your fonts,font size, and/or
graphics device to see whether that gives you something more to your
liking.

HTH.

-- Bert

On Tue, May 15, 2012 at 12:23 PM, Fisher Dennis <[hidden email]> wrote:

> David
>
> You missed the point -- the issue was not the spacing between WORDS.  It was the spacing between LETTERS (as noted in the original email)
> Other suggestions would be helpful.
>
> 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
>>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Kerning of italic text in plotmath

David Winsemius
In reply to this post by Fisher Dennis

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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Loading...