]> www.fi.muni.cz Git - evince.git/commitdiff
:startDoc, setPrintContext): hand through to the font map
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>
Mon, 9 Dec 2002 10:06:10 +0000 (10:06 +0000)
committerMartin Kretzschmar <mkretzschmar@src.gnome.org>
Mon, 9 Dec 2002 10:06:10 +0000 (10:06 +0000)
* xpdf/GPOutputDev.cc (GPOutputDev::startDoc, setPrintContext):
hand through to the font map
(getStreamContents): adapted from glib
(getFontFaceEmbedded): new, uses experimental
gpdf_gnome_print_add_font
(getFontFace): use getFontFaceEmbedded for fonts with embedded
font files

* xpdf/GPOutputDev.h: update declarations,
(GPOFontMap::startDoc, setPrintContext): implemented inline

* xpdf/gpdf-view.cc (gpdf_view_set_pdf_doc): call startDoc

* xpdf/gpdf-gnome-font.h, xpdf/gpdf-gnome-font.c: new files;
hackish implementation of gnome_print_add_font

* xpdf/Makefile.am (gnome_pdf_viewer_SOURCES): add
gpdf-gnome-font.[hc]

pdf/xpdf/Makefile.am

index a81214dbc9e7e5e7a7e858fa81e1fbe67f014714..b1ebd87a3adf4cb5109ca39ee5197c61a3b3cbf7 100644 (file)
@@ -109,6 +109,8 @@ gnome_pdf_viewer_SOURCES =          \
        gpdf-control.cc                 \
        gpdf-control.h                  \
        gpdf-g-switch.h                 \
+       gpdf-gnome-font.c               \
+       gpdf-gnome-font.h               \
        gpdf-persist-stream.cc          \
        gpdf-persist-stream.h           \
        gpdf-util.h                     \