OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2006-2008 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 "build/build_config.h" | |
vandebo (ex-Chrome)
2011/11/22 21:07:05
nit: I don't think you need build_config any more.
arthurhsu
2011/11/22 22:06:34
Done.
| |
6 | |
7 #include "skia_sandbox_support_win.h" | |
8 #include "SkFontHost.h" | |
9 #include "SkTypeface_win.h" | |
10 | |
11 static SkiaEnsureTypefaceAccessible g_skia_ensure_typeface_accessible; | |
vandebo (ex-Chrome)
2011/11/22 21:07:05
nit: = NULL - I know the C spec already does it, b
arthurhsu
2011/11/22 22:06:34
Done.
| |
12 | |
13 SK_API void SetSkiaEnsureTypefaceAccessible(SkiaEnsureTypefaceAccessible func) { | |
14 g_skia_ensure_typeface_accessible = func; | |
15 } | |
16 | |
17 // static | |
18 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { | |
19 if (g_skia_ensure_typeface_accessible) { | |
20 LOGFONT lf; | |
21 SkLOGFONTFromTypeface(&typeface, &lf); | |
22 g_skia_ensure_typeface_accessible(lf); | |
23 } | |
24 } | |
OLD | NEW |