mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 09:38:40 +00:00
clean
This commit is contained in:
parent
ecebfb46e8
commit
a846598ba3
|
@ -33,6 +33,15 @@ struct HTMLState
|
||||||
|
|
||||||
double x,y;
|
double x,y;
|
||||||
double transform_matrix[4];
|
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
|
} // namespace pdf2htmlEX
|
||||||
|
|
|
@ -602,16 +602,6 @@ int TextLineBuffer::State::diff(const State & s) const
|
||||||
return d;
|
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)
|
long long TextLineBuffer::State::umask_by_id(int id)
|
||||||
{
|
{
|
||||||
return (((long long)0xff) << (8*id));
|
return (((long long)0xff) << (8*id));
|
||||||
|
|
|
@ -35,10 +35,6 @@ public:
|
||||||
void hash(void);
|
void hash(void);
|
||||||
// calculate the difference between another State
|
// calculate the difference between another State
|
||||||
int diff(const State & s) const;
|
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 {
|
enum {
|
||||||
FONT_ID,
|
FONT_ID,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user