File indexing completed on 2024-04-21 14:58:24

0001 /*
0002  * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
0003  *
0004  * This library is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU Library General Public
0006  * License as published by the Free Software Foundation; either
0007  * version 2 of the License, or (at your option) any later version.
0008  *
0009  * This library is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012  * Library General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU Library General Public License
0015  * along with this library; see the file COPYING.LIB.  If not, write to
0016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017  * Boston, MA 02110-1301, USA.
0018  *
0019  */
0020 
0021 #ifndef SVGFontData_h
0022 #define SVGFontData_h
0023 
0024 #if ENABLE(SVG_FONTS)
0025 // FIXME khtml #include "SVGFontFaceElement.h"
0026 
0027 namespace WebCore
0028 {
0029 
0030 class SVGFontData
0031 {
0032 public:
0033     SVGFontData(/*FIXME khtml SVGFontFaceElement**/);
0034     virtual ~SVGFontData();
0035 
0036     // FIXME khtml SVGFontFaceElement* svgFontFaceElement() const { return m_svgFontFaceElement.get(); }
0037 
0038     float horizontalOriginX() const
0039     {
0040         return m_horizontalOriginX;
0041     }
0042     float horizontalOriginY() const
0043     {
0044         return m_horizontalOriginY;
0045     }
0046     float horizontalAdvanceX() const
0047     {
0048         return m_horizontalAdvanceX;
0049     }
0050 
0051     float verticalOriginX() const
0052     {
0053         return m_verticalOriginX;
0054     }
0055     float verticalOriginY() const
0056     {
0057         return m_verticalOriginY;
0058     }
0059     float verticalAdvanceY() const
0060     {
0061         return m_verticalAdvanceY;
0062     }
0063 
0064 private:
0065     //FIXME khtml RefPtr<SVGFontFaceElement> m_svgFontFaceElement;
0066 
0067     float m_horizontalOriginX;
0068     float m_horizontalOriginY;
0069     float m_horizontalAdvanceX;
0070 
0071     float m_verticalOriginX;
0072     float m_verticalOriginY;
0073     float m_verticalAdvanceY;
0074 };
0075 
0076 } // namespace WebCore
0077 
0078 #endif
0079 #endif // SVGFontData_h