OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 unsigned short generation(); | 91 unsigned short generation(); |
92 void invalidate(); | 92 void invalidate(); |
93 | 93 |
94 #if OS(WIN) | 94 #if OS(WIN) |
95 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); | 95 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); |
96 #endif | 96 #endif |
97 | 97 |
98 #if OS(WIN) && !ENABLE(GDI_FONTS_ON_WINDOWS) | 98 #if OS(WIN) && !ENABLE(GDI_FONTS_ON_WINDOWS) |
99 bool useSubpixelPositioning() const { return m_useSubpixelPositioning; } | 99 bool useSubpixelPositioning() const { return m_useSubpixelPositioning; } |
| 100 SkFontMgr* fontManager() { return m_fontManager.get(); } |
100 #endif | 101 #endif |
101 | 102 |
102 #if ENABLE(OPENTYPE_VERTICAL) | 103 #if ENABLE(OPENTYPE_VERTICAL) |
103 typedef uint32_t FontFileKey; | 104 typedef uint32_t FontFileKey; |
104 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); | 105 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); |
105 #endif | 106 #endif |
106 | 107 |
107 #if OS(ANDROID) | 108 #if OS(ANDROID) |
108 static AtomicString getGenericFamilyNameForScript(const AtomicString& family
Name, UScriptCode); | 109 static AtomicString getGenericFamilyNameForScript(const AtomicString& family
Name, UScriptCode); |
109 #else | 110 #else |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 158 |
158 class PLATFORM_EXPORT FontCachePurgePreventer { | 159 class PLATFORM_EXPORT FontCachePurgePreventer { |
159 public: | 160 public: |
160 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 161 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
161 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 162 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
162 }; | 163 }; |
163 | 164 |
164 } | 165 } |
165 | 166 |
166 #endif | 167 #endif |
OLD | NEW |