summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-02-23 21:28:20 +0100
committerTor Andersson <tor@ghostscript.com>2009-02-23 21:28:20 +0100
commit6f9e2167d235a6b89ee13e3c98e5120a8c85fe29 (patch)
tree81fae599803e0ec2ff32f8098c27fd84bd63eeb2 /apps
parent5d500fad85344dcad7e6c0cf0463f5d58f6acea3 (diff)
downloadmupdf-6f9e2167d235a6b89ee13e3c98e5120a8c85fe29.tar.xz
Refactor fz_font and pdf_font mess into fz_font and pdf_fontdesc with more font logic on the PDF side and freetype rendering on the fitz side.
Diffstat (limited to 'apps')
-rw-r--r--apps/common/pdfapp.c3
-rw-r--r--apps/pdftool.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c
index 6d82ef39..b01bd485 100644
--- a/apps/common/pdfapp.c
+++ b/apps/common/pdfapp.c
@@ -635,6 +635,8 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen)
{
+ ucsbuf[0] = 0;
+#if 0 /* pdf_loadtextfromtree needs rewriting, so removing this temporarily */
fz_error *error;
pdf_textline *line, *ln;
int y, c;
@@ -687,5 +689,6 @@ void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen)
ucsbuf[p] = 0;
pdf_droptextline(line);
+#endif
}
diff --git a/apps/pdftool.c b/apps/pdftool.c
index 36bc35bc..91ecc22b 100644
--- a/apps/pdftool.c
+++ b/apps/pdftool.c
@@ -719,6 +719,7 @@ drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark *drawtimes)
void
drawtxt(int pagenum)
{
+#if 0 /* removed temporarily pending rewrite of pdf_loadtextfromtree */
fz_error *error;
pdf_textline *line;
fz_matrix ctm;
@@ -737,6 +738,7 @@ drawtxt(int pagenum)
pdf_droptextline(line);
drawfreepage();
+#endif
}
void