This source file includes following definitions.
- LoadDefaults
- GetDefaultFontRenderParams
- GetDefaultWebKitFontRenderParams
#include "ui/gfx/font_render_params_linux.h"
namespace gfx {
namespace {
void LoadDefaults(FontRenderParams* params) {
params->antialiasing = true;
params->autohinter = true;
params->use_bitmaps = true;
params->subpixel_rendering = FontRenderParams::SUBPIXEL_RENDERING_NONE;
params->subpixel_positioning = true;
params->hinting = FontRenderParams::HINTING_SLIGHT;
}
}
const FontRenderParams& GetDefaultFontRenderParams() {
static bool loaded_defaults = false;
static FontRenderParams default_params;
if (!loaded_defaults)
LoadDefaults(&default_params);
loaded_defaults = true;
return default_params;
}
const FontRenderParams& GetDefaultWebKitFontRenderParams() {
return GetDefaultFontRenderParams();
}
}