2014-02-08 22:37:46 +09:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 yvt
|
2016-12-03 18:23:47 +09:00
|
|
|
|
2014-02-08 22:37:46 +09:00
|
|
|
This file is part of OpenSpades.
|
2016-12-03 18:23:47 +09:00
|
|
|
|
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.
|
2016-12-03 18:23:47 +09:00
|
|
|
|
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.
|
2016-12-03 18:23:47 +09:00
|
|
|
|
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/>.
|
2016-12-03 18:23:47 +09:00
|
|
|
|
2014-02-08 22:37:46 +09:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IFont.h"
|
2016-12-16 05:05:23 +09:00
|
|
|
#include <Core/RefCountedObject.h>
|
2014-02-08 22:37:46 +09:00
|
|
|
|
|
|
|
namespace spades {
|
2016-12-11 23:18:16 +09:00
|
|
|
namespace client {
|
2016-12-16 05:05:23 +09:00
|
|
|
class FontManager : public RefCountedObject {
|
2016-12-11 23:18:16 +09:00
|
|
|
public:
|
2016-12-16 05:05:23 +09:00
|
|
|
FontManager(IRenderer *);
|
|
|
|
|
|
|
|
IFont *GetSquareDesignFont() { return squareDesignFont; }
|
|
|
|
IFont *GetLargeFont() { return largeFont; }
|
2017-01-04 21:30:02 +02:00
|
|
|
IFont *GetMediumFont() { return mediumFont; }
|
2016-12-16 05:05:23 +09:00
|
|
|
IFont *GetHeadingFont() { return headingFont; }
|
|
|
|
IFont *GetGuiFont() { return guiFont; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
~FontManager() override;
|
2016-12-11 23:18:16 +09:00
|
|
|
|
2016-12-16 05:05:23 +09:00
|
|
|
private:
|
|
|
|
Handle<IFont> squareDesignFont;
|
|
|
|
Handle<IFont> largeFont;
|
2017-01-04 21:30:02 +02:00
|
|
|
Handle<IFont> mediumFont;
|
2016-12-16 05:05:23 +09:00
|
|
|
Handle<IFont> headingFont;
|
|
|
|
Handle<IFont> guiFont;
|
2016-12-11 23:18:16 +09:00
|
|
|
};
|
|
|
|
}
|
2014-02-08 22:37:46 +09:00
|
|
|
}
|