1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-03 08:38:39 +00:00
This commit is contained in:
Lu Wang 2013-04-06 17:10:18 +08:00
parent ecebfb46e8
commit a846598ba3
3 changed files with 9 additions and 14 deletions

View File

@ -33,6 +33,15 @@ struct HTMLState
double x,y;
double transform_matrix[4];
// the offset cause by a single ' ' char
double single_space_offset(void) const {
return word_space + letter_space + font_info->space_width * font_size;
}
// calculate em_size of this state
double em_size(void) const {
return font_size * (font_info->ascent - font_info->descent);
}
};
} // namespace pdf2htmlEX

View File

@ -602,16 +602,6 @@ int TextLineBuffer::State::diff(const State & s) const
return d;
}
double TextLineBuffer::State::single_space_offset(void) const
{
return word_space + letter_space + font_info->space_width * font_size;
}
double TextLineBuffer::State::em_size(void) const
{
return font_size * (font_info->ascent - font_info->descent);
}
long long TextLineBuffer::State::umask_by_id(int id)
{
return (((long long)0xff) << (8*id));

View File

@ -35,10 +35,6 @@ public:
void hash(void);
// calculate the difference between another State
int diff(const State & s) const;
// the offset cause by a single ' ' char
double single_space_offset(void) const;
// calculate em_size of this state
double em_size(void) const;
enum {
FONT_ID,