mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
working on fonts without ToUnicode
This commit is contained in:
parent
4fa6a89925
commit
86578b4c67
@ -12,7 +12,7 @@ if [ -f convert.pe ]; then
|
||||
echo -n "Converting fonts: "
|
||||
fontforge -script convert.pe 2>/dev/null
|
||||
echo "."
|
||||
rm convert.pe
|
||||
# rm convert.pe
|
||||
fi
|
||||
|
||||
rm *.encoding 2>/dev/null
|
||||
|
@ -306,7 +306,6 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
||||
|
||||
//debug
|
||||
//real pos & hori_scale
|
||||
if(0)
|
||||
{
|
||||
html_fout << "\"";
|
||||
double x,y;
|
||||
@ -348,7 +347,25 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
||||
std::cerr << "TODO: non-zero origins" << std::endl;
|
||||
}
|
||||
|
||||
if(uLen == 0)
|
||||
{
|
||||
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;
|
||||
dy += dy1;
|
||||
|
Loading…
Reference in New Issue
Block a user