| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 String u2 = fastGetAttribute(SVGNames::u2Attr); | 59 String u2 = fastGetAttribute(SVGNames::u2Attr); |
| 60 String g2 = fastGetAttribute(SVGNames::g2Attr); | 60 String g2 = fastGetAttribute(SVGNames::g2Attr); |
| 61 if ((u1.isEmpty() && g1.isEmpty()) || (u2.isEmpty() && g2.isEmpty())) | 61 if ((u1.isEmpty() && g1.isEmpty()) || (u2.isEmpty() && g2.isEmpty())) |
| 62 return; | 62 return; |
| 63 | 63 |
| 64 SVGKerningPair kerningPair; | 64 SVGKerningPair kerningPair; |
| 65 if (parseGlyphName(g1, kerningPair.glyphName1) | 65 if (parseGlyphName(g1, kerningPair.glyphName1) |
| 66 && parseGlyphName(g2, kerningPair.glyphName2) | 66 && parseGlyphName(g2, kerningPair.glyphName2) |
| 67 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) | 67 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) |
| 68 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { | 68 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { |
| 69 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); | 69 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).toFloat(); |
| 70 kerningPairs.append(kerningPair); | 70 kerningPairs.append(kerningPair); |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 } | 74 } |
| 75 | 75 |
| 76 #endif // ENABLE(SVG_FONTS) | 76 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |