diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 14:19:53 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 14:19:53 +0000 |
commit | 923fa31b683d2c8059be7481695023348fba58e4 (patch) | |
tree | f475a47664c01dd9feb324920a0e7476f742564b /printing/pdf_ps_metafile_linux.h | |
parent | c10cdbdd3201adf12e39b873d3075a879625e105 (diff) | |
download | chromium_src-923fa31b683d2c8059be7481695023348fba58e4.zip chromium_src-923fa31b683d2c8059be7481695023348fba58e4.tar.gz chromium_src-923fa31b683d2c8059be7481695023348fba58e4.tar.bz2 |
Embed fonts information into resulting PDF file for printing.
BUG=9847
TEST=printing on linux should have right font in pdf
Patch contributed by Min-Yu Huang <minyu.huang@gmail.com>
Review URL: http://codereview.chromium.org/196071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_ps_metafile_linux.h')
-rw-r--r-- | printing/pdf_ps_metafile_linux.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/printing/pdf_ps_metafile_linux.h b/printing/pdf_ps_metafile_linux.h index bb1ac75..04b0ca1e 100644 --- a/printing/pdf_ps_metafile_linux.h +++ b/printing/pdf_ps_metafile_linux.h @@ -64,6 +64,10 @@ class PdfPsMetafile { // Closes resulting PDF/PS file. No further rendering is allowed. void Close(); + // Selects the font associated with |font_id| in |context|. + // Return true on success. + static bool SelectFontById(cairo_t* context, uint32_t font_id); + // Returns size of PDF/PS contents stored in buffer |all_pages_|. // This function should ONLY be called after PDF/PS file is closed. unsigned int GetDataSize() const; @@ -80,7 +84,7 @@ class PdfPsMetafile { private: // Cleans up all resources. - void CleanUp(); + void CleanUpAll(); FileFormat format_; |