mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
working on encoding
This commit is contained in:
parent
910c89c378
commit
c9085c5ad4
@ -12,6 +12,7 @@ echo -n "Converting fonts: "
|
||||
|
||||
for f in *.ttf; do
|
||||
if [ -f $f ]; then
|
||||
cp $f $f.old
|
||||
fontforge -script "${SCRIPT_DIR}/convert.pe" $f 2>/dev/null
|
||||
echo -n "."
|
||||
fi
|
||||
@ -19,6 +20,7 @@ done
|
||||
|
||||
for f in *.pfa; do
|
||||
if [ -f $f ]; then
|
||||
cp $f $f.old
|
||||
fontforge -script "${SCRIPT_DIR}/convert.pe" $f 2>/dev/null
|
||||
rm $f
|
||||
echo -n "."
|
||||
|
@ -461,8 +461,21 @@ void HTMLRenderer::drawChar(GfxState *state, double x, double y,
|
||||
if(uLen > 0)
|
||||
cur_string->addUnicodes(state, x, y, dx, dy, u, uLen);
|
||||
else
|
||||
{
|
||||
if(nBytes > 0)
|
||||
{
|
||||
std::cerr << "Cannot map to Unicode!" << std::endl;
|
||||
std::cerr << cur_fn_id << std::endl;
|
||||
std::cerr << "*";
|
||||
for(int i = 0; i < nBytes; ++i)
|
||||
{
|
||||
std::cerr << (int)(((char*)&code)[i]);
|
||||
}
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
cur_string->addChars(state, x, y, dx, dy, code, nBytes);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO
|
||||
void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
||||
|
Loading…
Reference in New Issue
Block a user