| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Holger Hans Peter Freyther | 3 * Copyright (C) 2008 Holger Hans Peter Freyther |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 Vector<SVGGlyph::ArabicForm>& arabicForms() { return m_arabicForms; } | 59 Vector<SVGGlyph::ArabicForm>& arabicForms() { return m_arabicForms; } |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 static bool supportsTypesettingFeatures(const Font& font) | 62 static bool supportsTypesettingFeatures(const Font& font) |
| 63 { | 63 { |
| 64 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 1080 | 64 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 1080 |
| 65 if (!font.isPrinterFont()) | 65 if (!font.isPrinterFont()) |
| 66 return !font.typesettingFeatures(); | 66 return !font.typesettingFeatures(); |
| 67 | 67 |
| 68 return !(font.typesettingFeatures() & ~(Kerning | Ligatures)); | 68 return !(font.typesettingFeatures() & ~(Kerning | Ligatures)); |
| 69 #elif PLATFORM(QT) && QT_VERSION >= 0x050100 | |
| 70 return !(font.typesettingFeatures() & ~Kerning) && !font.isSmallCaps(); | |
| 71 #else | 69 #else |
| 72 return !font.typesettingFeatures(); | 70 return !font.typesettingFeatures(); |
| 73 #endif | 71 #endif |
| 74 } | 72 } |
| 75 | 73 |
| 76 const Font* m_font; | 74 const Font* m_font; |
| 77 | 75 |
| 78 const TextRun& m_run; | 76 const TextRun& m_run; |
| 79 | 77 |
| 80 unsigned m_currentCharacter; | 78 unsigned m_currentCharacter; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 102 float m_maxGlyphBoundingBoxY; | 100 float m_maxGlyphBoundingBoxY; |
| 103 float m_minGlyphBoundingBoxY; | 101 float m_minGlyphBoundingBoxY; |
| 104 float m_firstGlyphOverflow; | 102 float m_firstGlyphOverflow; |
| 105 float m_lastGlyphOverflow; | 103 float m_lastGlyphOverflow; |
| 106 bool m_forTextEmphasis; | 104 bool m_forTextEmphasis; |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 } | 107 } |
| 110 | 108 |
| 111 #endif | 109 #endif |
| OLD | NEW |