Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Export as HTML, RTF, ...
Ceniza:
I've just finished the first version of the ODT exporter.
I've exported a few files and checked how they look and it seems to be working fine so far.
The PDF exporter could be released soon thanks to wxPdfDocument @ wxCode. The drawback I've found is I'd have to force the font to be Courier or any other working one.
Well, I'll just commit it.
takeshimiya:
In PDF? But you can't embedd fonts inside a PDF (I don't remember well, but PDF wasn't a vectorial format?).
For ODT also, you can't embedd fonts?
Ceniza:
--- Quote from: takeshimiya ---In PDF? But you can't embedd fonts inside a PDF (I don't remember well, but PDF wasn't a vectorial format?).
--- End quote ---
All I know is wxPdfDocument has limited font support. I tried Courier and it works fine (but it knows nothing about "Courier New"). In fact, SciTE uses Helvetica as output for PDFs. wxPdfDocument developers seem to be working in some kind of solution, but I don't know the details.
PDF has support for vector graphics and the text is stored as such (or at least that says Wikipedia).
--- Quote from: takeshimiya ---For ODT also, you can't embedd fonts?
--- End quote ---
No idea, but just adding their name in the styles file was enough (as far as you have it installed).
utelle:
--- Quote from: Ceniza on October 24, 2005, 03:57:44 am ---All I know is wxPdfDocument has limited font support.
--- End quote ---
That's not exactly true. By default wxPdfDocument supports the standard Adobe fonts, i.e. Courier, Times, Helvetica (=Arial), Symbol and ZapfDingBats. Additionally Type1, TrueType and TrueTypeUnicode fonts are supported if the user provides at least font metric files. Usually these fonts have to be embedded in the PDF document. What's missing in the current version of wxPdfDocument is a tool to create these font metrics files from AFM or TTF files.
--- Quote from: Ceniza ---I tried Courier and it works fine (but it knows nothing about "Courier New"). In fact, SciTE uses Helvetica as output for PDFs. wxPdfDocument developers seem to be working in some kind of solution, but I don't know the details.
--- End quote ---
Courier New is essentially Courier, no need to embed the font Courier New unless you need Unicode or foreign language support; Helvetica should work without problems, too.
As the font example which comes with wxPdfDocument shows font embedding works. And the next version will include a tool to create the necessary font metric files. The release of the next version is planned for November.
Regards,
Ulrich
(Developer of wxPdfDocument)
thomas:
I would be very very careful about embedding fonts or font-related information in a PDF.
Certain companies can be get very nasty if you do that. Remember some companies even regard adjusting character stem widths or the mere drawing of cubic bezier curves as a violation of intellectual property.
It is really hilarious, but remember what happened to Dmitry Sklyarov after the DefCon 2001, too.
They might actually arrest you because you write software that enables the unauthorized copying of font metrics...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version