OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Computer, Inc. | 2 * Copyright (C) 2007 Apple Computer, Inc. |
3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. | 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. |
4 * Copyright (C) 2010 Company 100, Inc. | 4 * Copyright (C) 2010 Company 100, Inc. |
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 are | 7 * modification, are permitted provided that the following conditions are |
8 * met: | 8 * met: |
9 * | 9 * |
10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "config.h" | 33 #include "config.h" |
34 #include "FontCustomPlatformData.h" | 34 #include "FontCustomPlatformData.h" |
35 | 35 |
36 #if OS(WINDOWS) | 36 #if OS(WINDOWS) |
37 #include "core/platform/graphics/opentype/OpenTypeUtilities.h" | 37 #include "core/platform/graphics/opentype/OpenTypeUtilities.h" |
38 #elif OS(UNIX) | 38 #elif OS(UNIX) |
39 #include "SkStream.h" | 39 #include "SkStream.h" |
40 #endif | 40 #endif |
41 | 41 |
42 #include "LayoutTestSupport.h" | 42 #include "core/platform/LayoutTestSupport.h" |
43 #include "NotImplemented.h" | 43 #include "core/platform/NotImplemented.h" |
44 #include "SharedBuffer.h" | 44 #include "core/platform/SharedBuffer.h" |
45 #include "core/platform/graphics/FontPlatformData.h" | 45 #include "core/platform/graphics/FontPlatformData.h" |
46 #include "core/platform/graphics/opentype/OpenTypeSanitizer.h" | 46 #include "core/platform/graphics/opentype/OpenTypeSanitizer.h" |
47 | 47 |
48 #if OS(WINDOWS) | 48 #if OS(WINDOWS) |
49 #include <objbase.h> | 49 #include <objbase.h> |
50 #include <wtf/text/Base64.h> | 50 #include <wtf/text/Base64.h> |
51 #elif OS(UNIX) | 51 #elif OS(UNIX) |
52 #include <cstring> | 52 #include <cstring> |
53 #endif | 53 #endif |
54 | 54 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 bool FontCustomPlatformData::supportsFormat(const String& format) | 203 bool FontCustomPlatformData::supportsFormat(const String& format) |
204 { | 204 { |
205 return equalIgnoringCase(format, "truetype") || equalIgnoringCase(format, "o
pentype") | 205 return equalIgnoringCase(format, "truetype") || equalIgnoringCase(format, "o
pentype") |
206 #if USE(OPENTYPE_SANITIZER) | 206 #if USE(OPENTYPE_SANITIZER) |
207 || equalIgnoringCase(format, "woff") | 207 || equalIgnoringCase(format, "woff") |
208 #endif | 208 #endif |
209 ; | 209 ; |
210 } | 210 } |
211 | 211 |
212 } | 212 } |
OLD | NEW |