1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

Revert "working on fonts without ToUnicode"

move it into devv

This reverts commit 86578b4c67.
This commit is contained in:
Lu Wang 2012-08-10 13:15:44 +08:00
parent 86578b4c67
commit 58c0a706d8
2 changed files with 3 additions and 20 deletions

View File

@ -12,7 +12,7 @@ if [ -f convert.pe ]; then
echo -n "Converting fonts: " echo -n "Converting fonts: "
fontforge -script convert.pe 2>/dev/null fontforge -script convert.pe 2>/dev/null
echo "." echo "."
# rm convert.pe rm convert.pe
fi fi
rm *.encoding 2>/dev/null rm *.encoding 2>/dev/null

View File

@ -306,6 +306,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
//debug //debug
//real pos & hori_scale //real pos & hori_scale
if(0)
{ {
html_fout << "\""; html_fout << "\"";
double x,y; double x,y;
@ -347,25 +348,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
std::cerr << "TODO: non-zero origins" << std::endl; std::cerr << "TODO: non-zero origins" << std::endl;
} }
if(uLen == 0) outputUnicodes(u, uLen);
{
CharCode c = 0;
for(int i = 0; i < n; ++i)
{
c = (c<<8) | (code&0xff);
code >>= 8;
}
for(int i = 0; i < n; ++i)
{
Unicode u = (c&0xff);
c >>= 8;
outputUnicodes(&u, 1);
}
}
else
{
outputUnicodes(u, uLen);
}
dx += dx1; dx += dx1;
dy += dy1; dy += dy1;