mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
restrict letter space optimization
This commit is contained in:
parent
d238b78e07
commit
86961b2a80
|
@ -351,7 +351,7 @@ void HTMLRenderer::TextLineBuffer::optimize()
|
||||||
}
|
}
|
||||||
|
|
||||||
// negative letter space may cause problems
|
// negative letter space may cause problems
|
||||||
if(!is_positive(state_iter1->letter_space + most_used_width))
|
if((max_count <= text_count / 2) || (!is_positive(state_iter1->letter_space + most_used_width)))
|
||||||
{
|
{
|
||||||
// the old value is the best
|
// the old value is the best
|
||||||
// just copy old offsets
|
// just copy old offsets
|
||||||
|
|
Loading…
Reference in New Issue
Block a user