wch / extrafont

Tools for using fonts in R graphics
315 stars 48 forks source link

Fix hyphens/minus signs that are zero width #11

Closed wch closed 12 years ago

wch commented 12 years ago

The hyphens are also missing in some fonts. Here's an example of zero-width:

set.seed(23)
z <- rnorm(500)

pdf("Arialz.pdf", family="Arial")
hist(z, main="Histogram of -- Standard Z", xlim=c(-5, 5))
text(x=-3, y=60, col="red", expression(bold(This)~underline(is)~a~italic(test.)))
dev.off()
wch commented 12 years ago

Fixed in 3bf206e0849f0e803be516ac601e5ceb605136ff.