KHTML
Go to the documentation of this file.
21 #ifndef SVGGlyphElement_h
22 #define SVGGlyphElement_h
37 using khtml::AtomicString;
41 struct SVGGlyphIdentifier {
63 , horizontalAdvanceX(0.0f)
64 , verticalOriginX(0.0f)
65 , verticalOriginY(0.0f)
66 , verticalAdvanceY(0.0f)
71 static float inheritedValue()
73 static float s_inheritedValue = std::numeric_limits<float>::infinity();
74 return s_inheritedValue;
77 bool operator==(
const SVGGlyphIdentifier& other)
const
79 return isValid == other.isValid &&
80 orientation == other.orientation &&
81 arabicForm == other.arabicForm &&
82 glyphName == other.glyphName &&
83 horizontalAdvanceX == other.horizontalAdvanceX &&
84 verticalOriginX == other.verticalOriginX &&
85 verticalOriginY == other.verticalOriginY &&
86 verticalAdvanceY == other.verticalAdvanceY &&
87 pathData.debugString() == other.pathData.debugString() &&
88 languages == other.languages;
93 Orientation orientation : 2;
94 ArabicForm arabicForm : 3;
99 float horizontalAdvanceX;
100 float verticalOriginX;
101 float verticalOriginY;
102 float verticalAdvanceY;
105 Vector<String> languages;
108 class SVGGlyphElement :
public SVGStyledElement {
110 SVGGlyphElement(
const QualifiedName&, Document*);
111 virtual ~SVGGlyphElement();
113 virtual void insertedIntoDocument();
114 virtual void removedFromDocument();
116 virtual bool rendererIsNeeded(RenderStyle*) {
return false; }
118 SVGGlyphIdentifier buildGlyphIdentifier()
const;
121 static void inheritUnspecifiedAttributes(SVGGlyphIdentifier&,
const SVGFontData*);
122 static String querySVGFontLanguage(
const SVGElement*);
125 static SVGGlyphIdentifier buildGenericGlyphIdentifier(
const SVGElement*);
130 #endif // ENABLE(SVG_FONTS)
bool operator==(const FloatPoint &a, const FloatPoint &b)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.