On Sep 10, 1:09 pm, ralsina <[EMAIL PROTECTED]> wrote:
> 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" } ]
>   ]
>
> }

Ok, I misspoke. In Windows it's slightly more complex unless you
install fontconfig, which I am not even sure is possible.

The stylesheet would have to be like this, because you need to embed 4
fonts and declare them as variants (bold/italic/etc):

{
  "embeddedFonts" :
["verdana.ttf","verdanai.ttf","verdanab.ttf","verdanaz.ttf"],
  "styles" : [
    [ "bodytext" , { "fontName" : "verdana" } ]
  ]
}


--~--~---------~--~----~------------~-------~--~----~
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