update readme

This commit is contained in:
Lu Wang 2012-08-07 01:22:25 +08:00
parent fb24349449
commit 965c5d4c5a
2 changed files with 9 additions and 5 deletions

View File

@ -19,15 +19,15 @@ Features
----------------------------
* Text Selection
* Font embedding
* Proper styling
* Proper styling (Color, Transformation...)
* Optimization for Web
* Transformation
Not supported yet
----------------------------
* Non-text object (Don't worry, they will be rendered as images)
* Color
* Blend Mode
* CJK
* ...
Dependency
----------------------------

View File

@ -7,7 +7,6 @@
/*
* TODO
* color
* font base64 embedding
*/
@ -246,7 +245,7 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
html_fout << "\">";
if(param->readable) html_fout << endl;
cur_fn_id = cur_fs_id = cur_tm_id = 0;
cur_fn_id = cur_fs_id = cur_tm_id = cur_color_id = 0;
cur_line_x_offset = 0;
cur_line_y = 0;
cur_font_size = 0;
@ -547,6 +546,11 @@ long long HTMLRenderer::install_font(GfxFont * font)
return new_fn_id;
}
//debug
{
std::cerr << "install font: " << new_fn_id << ' ' << font->getID()->num << std::endl;
}
string new_fn = (boost::format("f%|1$x|") % new_fn_id).str();
if(font->getType() == fontType3) {