[racket] Generating Type 1 PDF fonts from plot

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Wed Jul 17 20:45:14 EDT 2013

I have generated PDF files from some plots with labels.  The font for 
the label ends up embedded as a PostScript font (according to pdffonts). 
  Is there a way to use Type 1 fonts?

Here's an example:

 > more sin.rkt
#lang racket
(require plot)
(plot (function sin (- pi) pi #:label "y = sin(x)")
       #:out-file "sin.pdf")

 > racket sin.rkt
(object:2d-plot-snip% ...)

 > pdffonts sin.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
OZFXPV+CairoFont-0-0                 CID Type 0C       yes yes yes      5  0
UEATNW+CairoFont-1-0                 CID Type 0C       yes yes yes      6  0


Posted on the users mailing list.