diff options
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_; |