Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: Source/platform/fonts/FontCache.h

Issue 113193005: Use SkFontMgr for webfont construction on windows (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698