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

Side by Side Diff: Source/core/platform/graphics/AlternateFontFamily.h

Issue 48113009: Move Font related classes to Source/platform/fonts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mac export Created 7 years, 1 month 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
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/core/platform/graphics/Font.h » ('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 Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
4 * Copyright (C) 2013 Google, Inc. All rights reserved. 4 * Copyright (C) 2013 Google, Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 13 matching lines...) Expand all
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef AlternateFontFamily_h 31 #ifndef AlternateFontFamily_h
32 #define AlternateFontFamily_h 32 #define AlternateFontFamily_h
33 33
34 #include "core/platform/graphics/FontDescription.h" 34 #include "platform/fonts/FontDescription.h"
35 #include "wtf/text/AtomicString.h" 35 #include "wtf/text/AtomicString.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 // We currently do not support bitmap fonts on windows (with GDI_FONTS_ON_WINDOW S enabled). 39 // We currently do not support bitmap fonts on windows (with GDI_FONTS_ON_WINDOW S enabled).
40 // Instead of trying to construct a bitmap font and then going down the fallback path map 40 // Instead of trying to construct a bitmap font and then going down the fallback path map
41 // certain common bitmap fonts to their truetype equivalent up front. This also allows the 41 // certain common bitmap fonts to their truetype equivalent up front. This also allows the
42 // GDI_FONTS_ON_WINDOWS disabled code path to match our current behavior. 42 // GDI_FONTS_ON_WINDOWS disabled code path to match our current behavior.
43 static const AtomicString& alternateFamilyNameAvoidingBitmapFonts(const AtomicSt ring& familyName) 43 static const AtomicString& alternateFamilyNameAvoidingBitmapFonts(const AtomicSt ring& familyName)
44 { 44 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 case FontDescription::SansSerifFamily: 119 case FontDescription::SansSerifFamily:
120 return sansStr; 120 return sansStr;
121 default: 121 default:
122 return AtomicString(); 122 return AtomicString();
123 } 123 }
124 } 124 }
125 125
126 } // namespace WebCore 126 } // namespace WebCore
127 127
128 #endif // AlternateFontFamily_h 128 #endif // AlternateFontFamily_h
OLDNEW
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/core/platform/graphics/Font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698