On Sep 10, 1:00 pm, Pavel Kosina <[EMAIL PROTECTED]> wrote:
> ralsina napsal(a):> Well, rst2pdf does work with unicode characters as long 
> as your font
> > has
> > the right glyphs. The dfault PDF fonts mostly don't, but embedding any
> > Type1
> > of TrueType font is/(should be) fairly simple.
>
> Well, half an hour should be enough to entitle me ask ;-)
> Pls, how to make rst2pdf use say font verdana.ttf saved in c:/windows/fonts?
>
> C:\WINDOWS\Fonts>dir verdana*
> 02.03.2006  14:00           171 792 verdana.ttf
> 02.03.2006  14:00           137 616 verdanab.ttf
> 02.03.2006  14:00           155 076 verdanai.ttf
> 02.03.2006  14:00           154 800 verdanaz.ttf

This is using rst2pdf as a command line tool, which is not what sphinx
would use,
the docutils writer interface needs some work:

rst2pdf -s verdana.style --font-path=c:/windows/fonts

And verdana.style should have something like this in it (from memory,
may be missing
a brace or something):

{
  "styles" : [
    [ "bodytext" , { "fontName" : "Verdana" } ]
  ]
}

The stylesheet syntax is JSON.

If you always want these settings you put them in a config file
( only on SVN, not in the released version)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to