root/OpenSceneGraph/trunk/include/osgQt/QFontImplementation @ 13041

Revision 13041, 1.5 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 2009-2010 Mathias Froehlich
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * OpenSceneGraph Public License for more details.
12*/
13#ifndef QFontImplementation_H
14#define QFontImplementation_H
15
16#include <osgText/Font>
17#include <osgQt/Export>
18
19#include <QtGui/QFont>
20
21#include <string>
22
23namespace osgQt {
24
25class OSGQT_EXPORT QFontImplementation : public osgText::Font::FontImplementation
26{
27public:
28    QFontImplementation(const QFont& font);
29    virtual ~QFontImplementation();
30
31    virtual std::string getFileName() const;
32
33    virtual bool supportsMultipleFontResolutions() const { return true; }
34
35    virtual osgText::Glyph* getGlyph(const osgText::FontResolution& fontRes, unsigned int charcode);
36
37    virtual osgText::Glyph3D* getGlyph3D(unsigned int charcode) { return 0; }
38
39    virtual osg::Vec2 getKerning(unsigned int leftcharcode, unsigned int rightcharcode, osgText::KerningType kerningType);
40
41    virtual bool hasVertical() const;
42
43protected:
44
45    std::string             _filename;
46    QFont                   _font;
47};
48
49}
50
51#endif
Note: See TracBrowser for help on using the browser.