From 3506805092033fdb0b4312cf70accd77bd0e8bf1 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Fri, 24 Aug 2012 08:21:20 +0200 Subject: [PATCH] .. --- src/HTMLRenderer/text.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HTMLRenderer/text.cc b/src/HTMLRenderer/text.cc index 2d53e4f..2e6f8ca 100644 --- a/src/HTMLRenderer/text.cc +++ b/src/HTMLRenderer/text.cc @@ -185,7 +185,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s) while (len > 0) { auto n = font->getNextChar(p, len, &code, &u, &uLen, &dx1, &dy1, &ox, &oy); - + if(!(_equal(ox, 0) && _equal(oy, 0))) { cerr << "TODO: non-zero origins" << endl; @@ -195,6 +195,8 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s) { ++nSpaces; } + + // TODO: don't use ToUnicode Map for nonttf fonts if((uLen > 0) && (all_of(u, u+uLen, isLegalUnicode))) {