This source file includes following definitions.
- setHinting
- setAutoHint
- setUseBitmaps
- setAntiAlias
- setSubpixelRendering
- setSubpixelPositioning
- setLCDOrder
- setLCDOrientation
#include "config.h"
#include "public/web/linux/WebFontRendering.h"
#include "platform/fonts/FontDescription.h"
#include "platform/fonts/FontPlatformData.h"
#if OS(LINUX)
#include "public/platform/linux/WebFontInfo.h"
#endif
using WebCore::FontDescription;
using WebCore::FontPlatformData;
namespace blink {
void WebFontRendering::setHinting(SkPaint::Hinting hinting)
{
FontPlatformData::setHinting(hinting);
}
void WebFontRendering::setAutoHint(bool useAutoHint)
{
FontPlatformData::setAutoHint(useAutoHint);
}
void WebFontRendering::setUseBitmaps(bool useBitmaps)
{
FontPlatformData::setUseBitmaps(useBitmaps);
}
void WebFontRendering::setAntiAlias(bool useAntiAlias)
{
FontPlatformData::setAntiAlias(useAntiAlias);
}
void WebFontRendering::setSubpixelRendering(bool useSubpixelRendering)
{
FontPlatformData::setSubpixelRendering(useSubpixelRendering);
}
void WebFontRendering::setSubpixelPositioning(bool useSubpixelPositioning)
{
FontDescription::setSubpixelPositioning(useSubpixelPositioning);
#if OS(LINUX)
WebFontInfo::setSubpixelPositioning(useSubpixelPositioning);
#endif
}
void WebFontRendering::setLCDOrder(SkFontHost::LCDOrder order)
{
SkFontHost::SetSubpixelOrder(order);
}
void WebFontRendering::setLCDOrientation(SkFontHost::LCDOrientation orientation)
{
SkFontHost::SetSubpixelOrientation(orientation);
}
}