OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/BinaryDataFontFaceSource.h" | 5 #include "core/css/BinaryDataFontFaceSource.h" |
6 | 6 |
7 #include "platform/SharedBuffer.h" | 7 #include "platform/SharedBuffer.h" |
8 #include "platform/fonts/FontCustomPlatformData.h" | 8 #include "platform/fonts/FontCustomPlatformData.h" |
9 #include "platform/fonts/FontDescription.h" | 9 #include "platform/fonts/FontDescription.h" |
10 #include "platform/fonts/SimpleFontData.h" | 10 #include "platform/fonts/SimpleFontData.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 bool BinaryDataFontFaceSource::isValid() const { | 21 bool BinaryDataFontFaceSource::isValid() const { |
22 return m_customPlatformData.get(); | 22 return m_customPlatformData.get(); |
23 } | 23 } |
24 | 24 |
25 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData( | 25 PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData( |
26 const FontDescription& fontDescription) { | 26 const FontDescription& fontDescription) { |
27 return SimpleFontData::create( | 27 return SimpleFontData::create( |
28 m_customPlatformData->fontPlatformData( | 28 m_customPlatformData->fontPlatformData( |
29 fontDescription.effectiveFontSize(), | 29 fontDescription.effectiveFontSize(), |
30 fontDescription.isSyntheticBold(), | 30 fontDescription.isSyntheticBold(), |
31 fontDescription.isSyntheticItalic(), fontDescription.orientation()), | 31 fontDescription.isSyntheticItalic(), fontDescription.orientation(), |
| 32 fontDescription.variationSettings()), |
32 CustomFontData::create()); | 33 CustomFontData::create()); |
33 } | 34 } |
34 | 35 |
35 } // namespace blink | 36 } // namespace blink |
OLD | NEW |