KHTML
Go to the documentation of this file.
23#include "wtf/Platform.h"
38using namespace SVGNames;
40SVGHKernElement::SVGHKernElement(
const QualifiedName& tagName, Document* doc)
41 : SVGElement(tagName, doc)
45SVGHKernElement::~SVGHKernElement()
49void SVGHKernElement::insertedIntoDocument()
51 Node* fontNode = parentNode();
52 if (fontNode && fontNode->hasTagName(fontTag)) {
53 if (SVGFontElement* element =
static_cast<SVGFontElement*
>(fontNode))
54 element->invalidateGlyphCache();
58void SVGHKernElement::removedFromDocument()
60 Node* fontNode = parentNode();
61 if (fontNode && fontNode->hasTagName(fontTag)) {
62 if (SVGFontElement* element =
static_cast<SVGFontElement*
>(fontNode))
63 element->invalidateGlyphCache();
67SVGHorizontalKerningPair SVGHKernElement::buildHorizontalKerningPair()
const
69 SVGHorizontalKerningPair kerningPair;
71 kerningPair.unicode1 = getAttribute(u1Attr);
72 kerningPair.glyphName1 = getAttribute(g1Attr);
73 kerningPair.unicode2 = getAttribute(u2Attr);
74 kerningPair.glyphName2 = getAttribute(g2Attr);
75 kerningPair.kerning = getAttribute(kAttr).string().toDouble();
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.