blob: 192242fcd37feefdd0ae61a82c1defe6dc0ecff7 [file] [log] [blame]
// Copyright 2014 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WebFontRendering_h
#define WebFontRendering_h
#include "public/platform/WebCommon.h"
#include "third_party/skia/include/core/SkFontHost.h"
class SkFontMgr;
class SkTypeface;
namespace blink {
class WebFontRendering {
public:
BLINK_EXPORT static void setSkiaFontManager(SkFontMgr*);
BLINK_EXPORT static void setDeviceScaleFactor(float);
BLINK_EXPORT static void addSideloadedFontForTesting(SkTypeface*);
BLINK_EXPORT static void setMenuFontMetrics(const wchar_t* familyName, int32_t fontHeight);
BLINK_EXPORT static void setSmallCaptionFontMetrics(const wchar_t* familyName, int32_t fontHeight);
BLINK_EXPORT static void setStatusFontMetrics(const wchar_t* familyName, int32_t fontHeight);
BLINK_EXPORT static void setLCDOrder(SkFontHost::LCDOrder);
BLINK_EXPORT static void setLCDOrientation(SkFontHost::LCDOrientation);
BLINK_EXPORT static void setAntialiasedTextEnabled(bool);
BLINK_EXPORT static void setLCDTextEnabled(bool);
BLINK_EXPORT static void setUseSkiaFontFallback(bool);
};
} // namespace blink
#endif