1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "public/web/win/WebFontRendering.h"
8 #include "platform/fonts/FontCache.h"
13 void WebFontRendering::setUseDirectWrite(bool useDirectWrite)
15 blink::FontCache::setUseDirectWrite(useDirectWrite);
19 void WebFontRendering::setDirectWriteFactory(IDWriteFactory* factory)
21 blink::FontCache::setDirectWriteFactory(factory);
25 void WebFontRendering::setDeviceScaleFactor(float deviceScaleFactor)
27 blink::FontCache::setDeviceScaleFactor(deviceScaleFactor);
31 void WebFontRendering::setUseSubpixelPositioning(bool useSubpixelPositioning)
33 blink::FontCache::setUseSubpixelPositioning(useSubpixelPositioning);
37 void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface)
39 blink::FontCache::addSideloadedFontForTesting(typeface);