mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
clean
This commit is contained in:
parent
ecebfb46e8
commit
a846598ba3
@ -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
|
||||
|
@ -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));
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user