mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
..
This commit is contained in:
parent
820f06d940
commit
225aa23dca
@ -263,28 +263,25 @@ class HTMLRenderer : public OutputDev
|
|||||||
bool all_changed;
|
bool all_changed;
|
||||||
// current position
|
// current position
|
||||||
double cur_tx, cur_ty; // real text position, in text coords
|
double cur_tx, cur_ty; // real text position, in text coords
|
||||||
bool text_pos_changed;
|
|
||||||
|
|
||||||
// font & size
|
// cur_font_size and cur_text_tm are unscaled (the same as in PDF)
|
||||||
const FontInfo * cur_font_info;
|
|
||||||
bool font_changed;
|
|
||||||
// cur_font_size is as in GfxState,
|
|
||||||
// font_size_manager saves the final font size used in HTML
|
|
||||||
double cur_font_size;
|
double cur_font_size;
|
||||||
|
|
||||||
// transform matrix
|
|
||||||
bool ctm_changed;
|
|
||||||
bool text_mat_changed;
|
|
||||||
// horizontal scaling
|
|
||||||
bool hori_scale_changed;
|
|
||||||
// this is CTM * TextMAT in PDF
|
// this is CTM * TextMAT in PDF
|
||||||
// [4] and [5] are ignored,
|
// [4] and [5] are ignored,
|
||||||
// as we'll calculate the position of the origin separately
|
// as we'll calculate the position of the origin separately
|
||||||
double cur_text_tm[6]; // unscaled
|
double cur_text_tm[6]; // unscaled
|
||||||
|
|
||||||
// letter spacing
|
bool text_pos_changed;
|
||||||
|
bool font_changed;
|
||||||
|
bool ctm_changed;
|
||||||
|
bool text_mat_changed;
|
||||||
|
bool hori_scale_changed;
|
||||||
bool letter_space_changed;
|
bool letter_space_changed;
|
||||||
bool word_space_changed;
|
bool word_space_changed;
|
||||||
|
bool rise_changed;
|
||||||
|
|
||||||
|
// font & size
|
||||||
|
const FontInfo * cur_font_info;
|
||||||
|
|
||||||
// fill color
|
// fill color
|
||||||
long long cur_fill_color_id;
|
long long cur_fill_color_id;
|
||||||
@ -297,7 +294,7 @@ class HTMLRenderer : public OutputDev
|
|||||||
GfxRGB cur_stroke_color;
|
GfxRGB cur_stroke_color;
|
||||||
bool cur_has_stroke;
|
bool cur_has_stroke;
|
||||||
bool stroke_color_changed;
|
bool stroke_color_changed;
|
||||||
bool rise_changed;
|
|
||||||
|
|
||||||
// managers store values actually used in HTML (i.e. scaled)
|
// managers store values actually used in HTML (i.e. scaled)
|
||||||
FontSizeManager font_size_manager;
|
FontSizeManager font_size_manager;
|
||||||
|
Loading…
Reference in New Issue
Block a user