50 lines
1.3 KiB
C
Raw Normal View History

2014-02-08 22:37:46 +09:00
/*
Copyright (c) 2013 yvt
2014-02-08 22:37:46 +09:00
This file is part of OpenSpades.
2014-02-08 22:37:46 +09:00
OpenSpades is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2014-02-08 22:37:46 +09:00
OpenSpades is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
2014-02-08 22:37:46 +09:00
You should have received a copy of the GNU General Public License
along with OpenSpades. If not, see <http://www.gnu.org/licenses/>.
2014-02-08 22:37:46 +09:00
*/
#pragma once
#include "IFont.h"
#include <Core/RefCountedObject.h>
2014-02-08 22:37:46 +09:00
namespace spades {
namespace client {
class FontManager : public RefCountedObject {
public:
FontManager(IRenderer *);
IFont *GetSquareDesignFont() { return squareDesignFont; }
IFont *GetLargeFont() { return largeFont; }
2017-01-04 21:30:02 +02:00
IFont *GetMediumFont() { return mediumFont; }
IFont *GetHeadingFont() { return headingFont; }
IFont *GetGuiFont() { return guiFont; }
protected:
~FontManager() override;
private:
Handle<IFont> squareDesignFont;
Handle<IFont> largeFont;
2017-01-04 21:30:02 +02:00
Handle<IFont> mediumFont;
Handle<IFont> headingFont;
Handle<IFont> guiFont;
};
}
2014-02-08 22:37:46 +09:00
}