mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
Clang fixes to earlier changes and build compatability with Google environment part 2
This commit is contained in:
parent
d174c4fd33
commit
0ee178d79b
@ -140,6 +140,14 @@ void StringRenderer::set_resolution(const int resolution) {
|
||||
font_.set_resolution(resolution);
|
||||
}
|
||||
|
||||
void StringRenderer::set_underline_start_prob(const double frac) {
|
||||
underline_start_prob_ = min(max(frac, 0.0), 1.0);
|
||||
}
|
||||
|
||||
void StringRenderer::set_underline_continuation_prob(const double frac) {
|
||||
underline_continuation_prob_ = min(max(frac, 0.0), 1.0);
|
||||
}
|
||||
|
||||
StringRenderer::~StringRenderer() {
|
||||
ClearBoxes();
|
||||
FreePangoCairo();
|
||||
|
Loading…
Reference in New Issue
Block a user