[racket] Creating PDF files in Racket
Thanks Jens,
Looking at this cairo documentation page I think that Cairo always embeds
fonts.
https://www.rforge.net/doc/packages/Cairo/Cairo.html
......
"Cairo initializes a new graphics device that uses the cairo graphics
library for rendering. The current implementation produces high-quality
PNG, JPEG, TIFF bitmap files, *high resolution PDF files with embedded
fonts*,"
......
Arguments
.......
type
output type. This version of Cario supports "png", "jpeg" and "tiff"
bitmaps (png/tiff with transparent background), "pdf" PDF-file with
embedded fonts, ......
On Tue, Dec 10, 2013 at 1:10 PM, Jens Axel Søgaard <jensaxel at soegaard.net>wrote:
> 2013/12/10 Harry Spier <vasishtha.spier at gmail.com>:
> > Thank you John for your example below. I'm still not clear where (if
> > possible) the parameter is for whether the font is embedded in the PDF
> > document or not. Is the font embedded by default.
>
> I think it depends on the type of font. I found this in the changelog for
> Cairo 1.2.0 (and Racket uses 1.10.x).
>
> And in the PDF and PostScript backends, both type1 and TrueType fonts
> will be directly embedded in the output file. This results in
> higher-quality
> previews and better performance.
>
> /Jens Axel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131210/4baf826d/attachment.html>