[cairo] Embedding phonetic symbols in R

James Cloos cloos at jhcloos.com
Wed Jul 20 15:03:58 PDT 2011


I played around a bit.

 library(Cairo)
 help(Cairo)
 help(CairoPDF)
 help(CairoFonts)

was illustrative.

This R code:

library(grid)
library(Cairo)
CairoPDF("DoulosCairo.pdf")
CairoFonts(regular="Doulos Sil:style=Regular",
 bold="Doulos Sil:style=Bold",
 italic="Doulos Sil:style=Italic",
 bolditalic="Doulos Sil:style=Bold Italic,BoldItalic",
 symbol="Symbol"
)
grid.text("Some (disfunctional) IPA: /ðɛɻ ɡoʐ θɪ nɛbɤʀɦʉɖ/")
dev.off()

works here:

:; pdffonts DoulosCairo.pdf 
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
GHFYRV+DoulosSIL                     TrueType          yes yes yes      5  0
ATVDXQ+DoulosSIL                     CID TrueType      yes yes yes      6  0

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the cairo mailing list