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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 sk_sp<SkTypeface> typeface = decoder.Decode(buffer); | 114 sk_sp<SkTypeface> typeface = decoder.Decode(buffer); |
115 if (!typeface) { | 115 if (!typeface) { |
116 ots_parse_message = decoder.GetErrorString(); | 116 ots_parse_message = decoder.GetErrorString(); |
117 return nullptr; | 117 return nullptr; |
118 } | 118 } |
119 return AdoptRef( | 119 return AdoptRef( |
120 new FontCustomPlatformData(std::move(typeface), decoder.DecodedSize())); | 120 new FontCustomPlatformData(std::move(typeface), decoder.DecodedSize())); |
121 } | 121 } |
122 | 122 |
123 bool FontCustomPlatformData::SupportsFormat(const String& format) { | 123 bool FontCustomPlatformData::SupportsFormat(const String& format) { |
124 return EqualIgnoringCase(format, "truetype") || | 124 return DeprecatedEqualIgnoringCase(format, "truetype") || |
125 EqualIgnoringCase(format, "opentype") || | 125 DeprecatedEqualIgnoringCase(format, "opentype") || |
126 WebFontDecoder::SupportsFormat(format); | 126 WebFontDecoder::SupportsFormat(format); |
127 } | 127 } |
128 | 128 |
129 } // namespace blink | 129 } // namespace blink |
OLD | NEW |