OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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. |
| 4 |
| 5 #include "SkFontHost.h" |
| 6 #include "SkTypeface.h" |
| 7 |
| 8 #ifdef WIN32 |
| 9 |
| 10 #include "SkFontHost_sandbox_win.h" |
| 11 |
| 12 #include <windows.h> |
| 13 |
| 14 #include "SkTypeface_win.h" |
| 15 |
| 16 // static |
| 17 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { |
| 18 LOGFONT lf; |
| 19 SkLOGFONTFromTypeface(&typeface, &lf); |
| 20 skia::SandboxSupport::EnsureFontLoad(lf); |
| 21 } |
| 22 |
| 23 #else |
| 24 |
| 25 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { |
| 26 // No-op for all other platforms |
| 27 } |
| 28 |
| 29 #endif // WIN32 |
OLD | NEW |