All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
pango_font_info.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include <algorithm>
#include "pango_font_info.h"
#include "commandlineflags.h"
#include "fileio.h"
#include "normstrngs.h"
#include "tlog.h"
#include "unichar.h"
#include "util.h"
#include "pango/pango.h"
#include "pango/pangocairo.h"
#include "pango/pangofc-font.h"
#include "ocr/trainingdata/typesetting/legacy_fonts.h"

Go to the source code of this file.

Namespaces

 tesseract
 

Functions

 STRING_PARAM_FLAG (fonts_dir,"/auto/ocr-data/tesstraining/fonts","Overrides system default font location")
 
 STRING_PARAM_FLAG (fontconfig_tmpdir,"/tmp","Overrides fontconfig default temporary dir")
 
 BOOL_PARAM_FLAG (fontconfig_refresh_cache, false,"Does a one-time deletion of cache files from the ""fontconfig_tmpdir before initializing fontconfig.")
 
 BOOL_PARAM_FLAG (fontconfig_refresh_config_file, true,"Does a one-time reset of the fontconfig config file to point"" to fonts_dir before initializing fontconfig. Set to true"" if fontconfig_refresh_cache is true. Set it to false to use"" multiple instances in separate processes without having to"" rescan the fonts_dir, using a previously setup font cache")
 
 BOOL_PARAM_FLAG (use_only_legacy_fonts, false,"Overrides --fonts_dir and sets the known universe of fonts to""the list in legacy_fonts.h")
 

Function Documentation

BOOL_PARAM_FLAG ( fontconfig_refresh_cache  ,
false  ,
"Does a one-time deletion of cache files from the ""fontconfig_tmpdir before initializing fontconfig."   
)
BOOL_PARAM_FLAG ( fontconfig_refresh_config_file  ,
true  ,
"Does a one-time reset of the fontconfig config file to point"" to fonts_dir before initializing fontconfig. Set to true"" if fontconfig_refresh_cache is true. Set it to false to use"" multiple instances in separate processes without having to"" rescan the  fonts_dir,
using a previously setup font cache"   
)
BOOL_PARAM_FLAG ( use_only_legacy_fonts  ,
false  ,
"Overrides --fonts_dir and sets the known universe of fonts to""the list in legacy_fonts.h"   
)
STRING_PARAM_FLAG ( fonts_dir  ,
"/auto/ocr-data/tesstraining/fonts"  ,
"Overrides system default font location"   
)
STRING_PARAM_FLAG ( fontconfig_tmpdir  ,
"/tmp"  ,
"Overrides fontconfig default temporary dir"   
)