mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-11 23:19:04 +08:00
Remove unused local function CharCoverageMapToBitmap
Signed-off-by: Stefan Weil <sw@weil.de>
This commit is contained in:
parent
83d97ffc80
commit
fbc807ce99
@ -610,21 +610,6 @@ const std::vector<std::string>& FontUtils::ListAvailableFonts() {
|
||||
return available_fonts_;
|
||||
}
|
||||
|
||||
|
||||
static void CharCoverageMapToBitmap(PangoCoverage* coverage,
|
||||
std::vector<bool>* unichar_bitmap) {
|
||||
const int kMinUnicodeValue = 33;
|
||||
const int kMaxUnicodeValue = 0x10FFFF;
|
||||
unichar_bitmap->resize(kMaxUnicodeValue + 1, false);
|
||||
// Mark off characters that the font can render.
|
||||
for (int i = kMinUnicodeValue; i <= kMaxUnicodeValue; ++i) {
|
||||
if (IsInterchangeValid(i)) {
|
||||
(*unichar_bitmap)[i]
|
||||
= (pango_coverage_get(coverage, i) == PANGO_COVERAGE_EXACT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Utilities written to be backward compatible with StringRender
|
||||
|
||||
/* static */
|
||||
|
Loading…
Reference in New Issue
Block a user