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 FontCache::setUseDirectWrite(useDirectWrite
);
19 void WebFontRendering::setDirectWriteFactory(IDWriteFactory
* factory
)
21 FontCache::setDirectWriteFactory(factory
);
25 void WebFontRendering::setDeviceScaleFactor(float deviceScaleFactor
)
27 FontCache::setDeviceScaleFactor(deviceScaleFactor
);
31 void WebFontRendering::setUseSubpixelPositioning(bool useSubpixelPositioning
)
33 FontCache::setUseSubpixelPositioning(useSubpixelPositioning
);
37 void WebFontRendering::addSideloadedFontForTesting(SkTypeface
* typeface
)
39 FontCache::addSideloadedFontForTesting(typeface
);
43 void WebFontRendering::setMenuFontMetrics(const wchar_t* familyName
, int32_t fontHeight
)
45 FontCache::setMenuFontMetrics(familyName
, fontHeight
);
49 void WebFontRendering::setSmallCaptionFontMetrics(const wchar_t* familyName
, int32_t fontHeight
)
51 FontCache::setSmallCaptionFontMetrics(familyName
, fontHeight
);
55 void WebFontRendering::setStatusFontMetrics(const wchar_t* familyName
, int32_t fontHeight
)
57 FontCache::setStatusFontMetrics(familyName
, fontHeight
);
61 void WebFontRendering::setLCDOrder(SkFontHost::LCDOrder order
)
63 SkFontHost::SetSubpixelOrder(order
);
67 void WebFontRendering::setLCDOrientation(SkFontHost::LCDOrientation orientation
)
69 SkFontHost::SetSubpixelOrientation(orientation
);