[cairo] Embedding phonetic symbols in R

Sverre Stausland johnsen at fas.harvard.edu
Wed Jul 20 15:34:40 PDT 2011


When I attempt your CairoFonts() call, I get this error message:

Warning message:
In CairoFonts(regular = "Doulos Sil:style=Regular", bold = "Doulos
Sil:style=Bold",  :
  the R Cairo package was not installed with fontconfig. Please
consider installing the cairo graphics engine (www.cairographics.org)
with freetype and fontconfig support

I have been to the cairographics.org, but it's unfortunately not easy
to understand what I'm supposed to do to "install the cairo graphics
engine with freetype and fontconfig support". I'm using Windows XP, so
I followed the guide under "From Daniel Keep" on this site:
http://www.cairographics.org/download/

I put those .dll files in Windows/system32/, which is what I took
"into your [...] system PATH" to mean. But that changed nothing.

Further help would be much appreciated.

Best
Sverre

On Wed, Jul 20, 2011 at 6:03 PM, James Cloos <cloos at jhcloos.com> wrote:
> 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